[Default-Icon-Theme] Autoconfiscation of default-icon-theme

Thom May thom at planetarytramp.net
Wed Feb 11 16:12:44 EET 2004


Hi,
Please don't hurt me :-)
Attached is a patch to autoconfiscate default-icon-theme, primarily to make
it installable with jhbuild and other automated build systems.
Required is this patch and install-sh.
I agree that autoconf is probably way overkill for doing this, but I didn't
want to go and reinvent the wheel for a configure-like system just to set
the prefix.
Cheers,
-Thom
-------------- next part --------------
diff -x install-sh -x CVS -urN default-icon-theme/Makefile default-icon-theme.autoconf/Makefile
--- default-icon-theme/Makefile	2004-02-10 13:38:12.000000000 +0000
+++ default-icon-theme.autoconf/Makefile	1970-01-01 01:00:00.000000000 +0100
@@ -1,26 +0,0 @@
-VERSION=0.3
-PREFIX=/usr/local
-DATADIR=$(PREFIX)/share
-DESTDIR=
-INSTALL=install
-
-FILES=index.theme  Makefile README ChangeLog COPYING
-
-install:
-	mkdir -p $(DESTDIR)$(DATADIR)/icons/hicolor
-	$(INSTALL) index.theme $(DESTDIR)$(DATADIR)/icons/hicolor
-	for dir in 16x16 22x22 32x32 36x36 48x48 64x64 72x72 96x96 128x128 192x192 scalable; do \
-	  for ctxt in actions apps devices filesystems mimetypes; do \
-	    mkdir -p $(DESTDIR)$(DATADIR)/icons/hicolor/$$dir/$$ctxt; \
-	  done \
-        done
-
-dist:
-	rm -rf hicolor-icon-theme-$(VERSION)
-	mkdir hicolor-icon-theme-$(VERSION)
-	cp $(FILES) hicolor-icon-theme-$(VERSION)
-	tar czvf hicolor-icon-theme-$(VERSION).tar.gz hicolor-icon-theme-$(VERSION)
-	rm -rf hicolor-icon-theme-$(VERSION)
-
-tag:
-	cvs tag DEFAULT_ICON_THEME_`echo $(VERSION)|sed "s/\./_/"`
diff -x install-sh -x CVS -urN default-icon-theme/Makefile.in default-icon-theme.autoconf/Makefile.in
--- default-icon-theme/Makefile.in	1970-01-01 01:00:00.000000000 +0100
+++ default-icon-theme.autoconf/Makefile.in	2004-02-11 13:13:52.000000000 +0000
@@ -0,0 +1,35 @@
+VERSION=0.3
+SHELL=@SHELL@
+prefix=@prefix@
+DATADIR=@datadir@
+DESTDIR=
+INSTALL=@INSTALL@
+mkinstalldirs = $(SHELL) ./mkinstalldirs
+
+FILES=index.theme  Makefile README ChangeLog COPYING
+
+install:
+	$(mkinstalldirs) $(DESTDIR)$(DATADIR)/icons/hicolor
+	$(INSTALL) index.theme $(DESTDIR)$(DATADIR)/icons/hicolor
+	for dir in 16x16 22x22 32x32 36x36 48x48 64x64 72x72 96x96 128x128 192x192 scalable; do \
+	  for ctxt in actions apps devices filesystems mimetypes; do \
+	    $(mkinstalldirs) $(DESTDIR)$(DATADIR)/icons/hicolor/$$dir/$$ctxt; \
+	  done \
+        done
+
+dist:
+	rm -rf hicolor-icon-theme-$(VERSION)
+	mkdir hicolor-icon-theme-$(VERSION)
+	cp $(FILES) hicolor-icon-theme-$(VERSION)
+	tar czvf hicolor-icon-theme-$(VERSION).tar.gz hicolor-icon-theme-$(VERSION)
+	rm -rf hicolor-icon-theme-$(VERSION)
+
+distclean:
+	rm -f Makefile configure config.cache config.log
+	rm -rf autom4te.cache
+	
+maintainer-clean: distclean
+	rm -f config.sub config.guess aclocal.m4 config.status mkinstalldirs missing
+
+tag:
+	cvs tag DEFAULT_ICON_THEME_`echo $(VERSION)|sed "s/\./_/"`
diff -x install-sh -x CVS -urN default-icon-theme/README default-icon-theme.autoconf/README
--- default-icon-theme/README	2003-07-09 15:14:43.000000000 +0100
+++ default-icon-theme.autoconf/README	2004-02-11 13:00:46.000000000 +0000
@@ -5,7 +5,8 @@
 http://www.freedesktop.org/standards/icon-theme-spec/
 
 To install this package in /usr just run:
-make PREFIX=/usr
+./configure --prefix=/usr
+make
 
 The canonical location for this package is in the cvs repository for
 freedesktop.org. If you add translations, please send them to
diff -x install-sh -x CVS -urN default-icon-theme/autogen.sh default-icon-theme.autoconf/autogen.sh
--- default-icon-theme/autogen.sh	1970-01-01 01:00:00.000000000 +0100
+++ default-icon-theme.autoconf/autogen.sh	2004-02-11 13:08:53.000000000 +0000
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+set -e
+autoreconf -v --install || exit 1
+./configure "$@"
+
+exit 0
diff -x install-sh -x CVS -urN default-icon-theme/configure.in default-icon-theme.autoconf/configure.in
--- default-icon-theme/configure.in	1970-01-01 01:00:00.000000000 +0100
+++ default-icon-theme.autoconf/configure.in	2004-02-11 11:37:45.000000000 +0000
@@ -0,0 +1,3 @@
+AC_INIT(index.theme)
+AC_PROG_INSTALL
+AC_OUTPUT(Makefile)


More information about the xdg mailing list