summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodney Dawes <dobey@gnome.org>2008-09-05 10:49:22 -0400
committerRodney Dawes <dobey@gnome.org>2008-09-05 10:49:22 -0400
commit9bdc9b9688195b901b1879e2d784be16296b9f0e (patch)
tree9c85a15c96b9db70f076a5dd54b1445d75db7267
parent4c408f096f1eafef6fd67b7d5d274ddf14b49e47 (diff)
2008-08-05 Rodney Dawes <dobey.pwns@gmail.com>
* AUTHORS, COPYING, ChangeLog, NEWS, README: Add files required by automake * autogen.sh: Add a script to bootstrap the build system with gnome-common * configure.ac: Add a basic configure script setup to get the build system working * Makefile.am: * svg/Makefile.am: Add some makefiles with necessary mechanics to do automagic work * index.theme.in.in: Add a basic index.theme.in.in from which the final will be generated * po/POTFILES.in: Add the POTFILES.in list of translatable files
-rw-r--r--AUTHORS2
-rw-r--r--COPYING0
-rw-r--r--ChangeLog0
-rw-r--r--Makefile.am101
-rw-r--r--NEWS0
-rw-r--r--README0
-rwxr-xr-xautogen.sh22
-rw-r--r--configure.ac75
-rw-r--r--index.theme.in.in25
-rw-r--r--po/POTFILES.in2
-rw-r--r--svg/Makefile.am61
11 files changed, 288 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..f4f7c50
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,2 @@
+Rodney Dawes <dobey.pwns@gmail.com>
+
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/COPYING
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ChangeLog
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..20b38d9
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,101 @@
+DISTCHECK_CONFIGURE_FLAGS = --disable-rendering --disable-icon-mapping
+
+SUBDIRS = po svg
+
+theme_in_files = index.theme.in.in
+theme_DATA = $(theme_in_files:.theme.in.in=.theme)
+
+THEME_DIRS=$(shell SIZES="$(icon_sizes)"; for size in $$SIZES; do for dir in `find $$size/* -type d`; do printf "$$dir,"; done; done | sed -e "s/,$$//g")
+
+%.theme.in: %.theme.in.in
+ for size in $(icon_sizes); do \
+ make -C svg $$size; \
+ done
+ dirs="$(THEME_DIRS)"; \
+ sed -e "s|\@THEME_DIRS\@|$$dirs|g" < $< > $@; \
+ for dir in `echo $$dirs | sed -e "s/,/ /g"`; do \
+ size="`dirname $$dir`"; \
+ context="`basename $$dir`"; \
+ echo "[$$dir]" >> $@; \
+ echo "Size=$$size" >> $@; \
+ if test "$$context" = "actions"; then \
+ echo "Context=Actions" >> $@; \
+ fi; \
+ if test "$$context" = "animations"; then \
+ echo "Context=Animations" >> $@; \
+ fi; \
+ if test "$$context" = "apps"; then \
+ echo "Context=Applications" >> $@; \
+ fi; \
+ if test "$$context" = "categories"; then \
+ echo "Context=Categories" >> $@; \
+ fi; \
+ if test "$$context" = "devices"; then \
+ echo "Context=Devices" >> $@; \
+ fi; \
+ if test "$$context" = "emblems"; then \
+ echo "Context=Emblems" >> $@; \
+ fi; \
+ if test "$$context" = "emotes"; then \
+ echo "Context=Emotes" >> $@; \
+ fi; \
+ if test "$$context" = "mimetypes"; then \
+ echo "Context=MimeTypes" >> $@; \
+ fi; \
+ if test "$$context" = "places"; then \
+ echo "Context=Places" >> $@; \
+ fi; \
+ if test "$$context" = "status"; then \
+ echo "Context=Status" >> $@; \
+ fi; \
+ echo "Type=Threshold" >> $@; \
+ echo "" >> $@; \
+ done
+
+@INTLTOOL_THEME_RULE@
+
+render_in_files = render-bitmaps.pl.in
+render_script = $(render_in_files:.pl.in=.pl)
+
+if ENABLE_RENDERING
+%.pl: %.pl.in
+ sed -e "s#\@PERL\@#$(PERL)#g" \
+ -e "s#\@INKSCAPE\@#$(INKSCAPE)#g" < $< > $@
+ chmod +x $@
+endif
+
+# we don't want to install mo files, all translations are already stored
+# in theme files
+install-data-local:
+ $(MAKE) -C po uninstall
+ if [ -h $(DESTDIR)$(themedir) ]; then \
+ rm -f $(DESTDIR)$(themedir); \
+ fi
+ if [ -d $(DESTDIR)$(themedir) ]; then \
+ touch $(DESTDIR)$(themedir); \
+ fi
+
+EXTRA_DIST= \
+ $(theme_in_files) \
+ $(render_in_files)
+
+CLEANFILES = \
+ $(theme_DATA) \
+ $(render_script)
+
+MAINTAINERCLEANFILES = \
+ Makefile.in \
+ aclocal.m4 \
+ config.guess \
+ config.h.in \
+ config.sub \
+ configure \
+ depcomp \
+ install-sh \
+ intltool-*.in \
+ libtool \
+ ltmain.sh \
+ missing \
+ mkinstalldirs \
+ po/Makefile.in.in \
+ po/$(GETTEXT_PACKAGE).pot
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/NEWS
diff --git a/README b/README
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/README
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..52ef3aa
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+PKG_NAME="tango-theme"
+REQUIRED_AUTOMAKE_VERSION=1.9
+
+(test -f $srcdir/configure.ac \
+ && test -f $srcdir/index.theme.in.in \
+ && test -d $srcdir/svg) || {
+ echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
+ echo " top-level $PKG_NAME directory"
+ exit 1
+}
+
+which gnome-autogen.sh || {
+ echo "You need to install gnome-common from the GNOME CVS"
+ exit 1
+}
+USE_GNOME2_MACROS=1 . gnome-autogen.sh
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..6a95ff3
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,75 @@
+dnl Process this file with autoconf to produce a configure script.
+AC_PREREQ(2.53)
+
+AC_INIT([tango-icon-theme], [0.0.0],
+ [https://bugs.freedesktop.org/enter_bug.cgi?product=tango])
+AC_CONFIG_SRCDIR([index.theme.in.in])
+
+AM_INIT_AUTOMAKE([1.9 tar-ustar])
+
+PKG_PROG_PKG_CONFIG([0.19])
+IT_PROG_INTLTOOL([0.40.0])
+
+# Workaround to make aclocal get the right flags
+AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
+
+# Define the toplevel path here
+AC_SUBST(themedir, "\${datadir}/icons/Tango")
+
+# Icon sizes we want to install
+AC_SUBST([icon_sizes], [8x8 16x16 22x22 32x32 48x48])
+
+# Allow icon mapping to be disabled
+AC_ARG_ENABLE([icon-mapping],
+ AC_HELP_STRING([--enable-icon-mapping],
+ [Enable compatibility symlinks [default=auto]]),
+ enable_mapping=$enableval,
+ enable_mapping=yes)
+
+ICONMAP="true"
+if test "x$enable_mapping" != "xno"; then
+ UTILS_REQUIRED=0.8.7
+
+ AC_MSG_CHECKING([icon-naming-utils >= $UTILS_REQUIRED])
+ PKG_CHECK_EXISTS(icon-naming-utils >= $UTILS_REQUIRED,
+ have_utils=yes, have_utils=no)
+ if test "x$have_utils" = "xyes"; then
+ UTILS_PATH="`$PKG_CONFIG --variable=program_path icon-naming-utils`"
+ ICONMAP="$UTILS_PATH/icon-name-mapping"
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([icon-naming-utils >= $UTILS_REQUIRED is required to build
+ and install gnome-icon-theme])
+ fi
+fi
+AC_SUBST(ICONMAP)
+
+# PERL and Inkscape for render-pixmaps.pl
+AC_ARG_ENABLE([rendering],
+ AC_HELP_STRING([--disable-rendering], [disable icon rendering]),
+ [enable_rendering=$enableval], [enable_rendering=yes])
+
+if test "x$enable_rendering" = "xyes"; then
+ AC_PATH_PROG([INKSCAPE], [inkscape])
+ AC_PATH_PROG([PERL], [perl])
+ if test -z "`$PERL -v | fgrep 'v5.' 2> /dev/null`" -a -z "`$PERL -v | fgrep 'version 5.' 2> /dev/null`"; then
+ AC_MSG_RESULT([perl 5.x required for render-pixmaps.pl])
+ fi
+ AC_MSG_CHECKING([for XML::Parser])
+ if `$PERL -e "require XML::Parser" 2>/dev/null`; then
+ AC_MSG_RESULT([ok])
+ else
+ AC_MSG_RESULT([XML::Parser perl module is required for render-pixmaps.pl])
+ fi
+fi
+AM_CONDITIONAL(ENABLE_RENDERING, test "x$enable_rendering" = "xyes")
+
+
+AC_CONFIG_FILES([
+Makefile
+po/Makefile.in
+svg/Makefile
+])
+
+AC_OUTPUT
diff --git a/index.theme.in.in b/index.theme.in.in
new file mode 100644
index 0000000..41d4af6
--- /dev/null
+++ b/index.theme.in.in
@@ -0,0 +1,25 @@
+[Icon Theme]
+_Name=Tango
+_Comment=Tango Icon Theme
+Inherits=gnome,crystalsvg
+Example=folder
+
+# KDE Specific Stuff
+DisplayDepth=32
+LinkOverlay=link_overlay
+LockOverlay=lock_overlay
+ZipOverlay=zip_overlay
+DesktopDefault=48
+DesktopSizes=16,22,32,48,64,72,96,128
+ToolbarDefault=22
+ToolbarSizes=16,22,32,48
+MainToolbarDefault=22
+MainToolbarSizes=16,22,32,48
+SmallDefault=16
+SmallSizes=16
+PanelDefault=32
+PanelSizes=16,22,32,48,64,72,96,128
+
+# Directory list
+Directories=@THEME_DIRS@
+
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 0000000..06709fe
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1,2 @@
+index.theme.in
+
diff --git a/svg/Makefile.am b/svg/Makefile.am
new file mode 100644
index 0000000..f7ad734
--- /dev/null
+++ b/svg/Makefile.am
@@ -0,0 +1,61 @@
+
+icon_in_files =
+icon_files = $(icon_in_files:.svg=.png)
+
+if ENABLE_RENDERING
+$(top_builddir)/render-bitmaps.pl:
+ (cd $(top_builddir) && make render-bitmaps.pl)
+
+$(icon_sizes):
+ for size in $(icon_sizes); do \
+ for file in $(icon_in_files); do \
+ $(top_builddir)/render-bitmaps.pl -s $$size -o $(top_builddir) $(srcdir)/$$file; \
+ done; \
+ done
+
+dist-hook: $(top_builddir)/render-bitmaps.pl
+ for size in $(icon_sizes); do \
+ for file in $(icon_in_files); do \
+ $(top_builddir)/render-bitmaps.pl -s $$size -o $(top_builddir) $(srcdir)/$$file; \
+ done; \
+ cp -a $(top_builddir)/$$size $(distdir)/$$size; \
+ done
+else
+dist-hook:
+ for size in $(icon_sizes); do \
+ for file in $(icon_files); do \
+ for context in $(top_builddir)/$$size/*; do \
+ if [ ! -f $(top_builddir)/$$size/$$context/$$file ]; then \
+ echo "ERROR: Icon $$file not rendered at size $$size."; \
+ exit 1; \
+ fi; \
+ done; \
+ done; \
+ cp -a $(top_builddir)/$$size $(distdir)/$$size; \
+ done
+endif
+
+install-data-local:
+ for size in $(icon_sizes); do \
+ for file in $(icon_files); do \
+ for context in $(top_srcdir)/$$size/*; do \
+ $(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \
+ $(install_sh_DATA) $(top_srcdir)/$$size/$$context/$$file $(DESTDIR)$(themedir)/$$size/$$context/$$file; \
+ done; \
+ done; \
+ done
+
+uninstall-local:
+ for size in $(icon_sizes); do \
+ for file in $(icon_files); do \
+ for context in $(top_srcdir)/$$size/*; do \
+ rm -f $(DESTDIR)$(themedir)/$$size/$$context/$$file; \
+ done; \
+ done; \
+ done
+
+EXTRA_DIST = \
+ $(icon_in_files)
+
+MAINTAINERCLEANFILES = \
+ Makefile.in