summaryrefslogtreecommitdiff
path: root/x11-themes
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-08-02 05:03:58 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-08-02 05:03:58 +0000
commit3761e0ffab35c2edd848d1eb45aa8782f00256d4 (patch)
tree0ec724d0500ba5a6f64ae254011393739acb5040 /x11-themes
parentFix a bus error on logout on -CURRENT if one of the panels contained (diff)
Add gtk-industrial-theme, a nice-looking GTK+ theme from Ximian.
PR: 55177 Submitted by: Frank Ruell <stoerte@dreamwarrior.net> Inspired by: x11-toolkits/gtk-bluecurve-theme
Notes
Notes: svn path=/head/; revision=86176
Diffstat (limited to 'x11-themes')
-rw-r--r--x11-themes/gtk-industrial-theme/Makefile84
-rw-r--r--x11-themes/gtk-industrial-theme/distinfo1
-rw-r--r--x11-themes/gtk-industrial-theme/files/Makefile-gtk146
-rw-r--r--x11-themes/gtk-industrial-theme/files/Makefile-gtk243
-rw-r--r--x11-themes/gtk-industrial-theme/pkg-descr3
-rw-r--r--x11-themes/gtk-industrial-theme/pkg-plist29
6 files changed, 206 insertions, 0 deletions
diff --git a/x11-themes/gtk-industrial-theme/Makefile b/x11-themes/gtk-industrial-theme/Makefile
new file mode 100644
index 000000000000..659f38df2258
--- /dev/null
+++ b/x11-themes/gtk-industrial-theme/Makefile
@@ -0,0 +1,84 @@
+# New ports collection makefile for: gtk-industrial-theme
+# Date created: 2 August 2003
+# Whom: Frank Ruell
+#
+# $FreeBSD$
+#
+
+PORTNAME= gtk-industrial-theme
+PORTVERSION= 0.2.26
+CATEGORIES= x11-toolkits
+MASTER_SITES= http://ftp.ximian.com/pub/xd2/redhat-9-i386/source/
+DISTNAME= ximian-artwork-${PORTVERSION}-${XIMIAN_SUBVERSION}.ximian.${XIMIAN_DISTVERSION}.src
+EXTRACT_SUFX= .rpm
+
+MAINTAINER= stoerte@dreamwarrior.net
+COMMENT= Slick theme for GTK1 and GTK2 from Ximian
+
+BUILD_DEPENDS= rpm2cpio:${PORTSDIR}/archivers/rpm2cpio
+
+WRKSRC= ${WRKDIR}/ximian-artwork-${PORTVERSION}
+USE_GMAKE= yes
+USE_X_PREFIX= yes
+USE_GNOME= gdkpixbuf
+USE_REINPLACE= yes
+USE_LIBTOOL= yes
+
+XIMIAN_SUBVERSION= 0
+XIMIAN_DISTVERSION= 6.1
+THEMES_SUBDIRS= ${WRKSRC}/gtk/gtk1-engine/
+
+.if defined(WITH_GTK2)
+USE_GNOME+= gtk20
+THEMES_SUBDIRS+= ${WRKSRC}/gtk/gtk2-engine/
+GTK_VERSION= 2.2.0
+PLIST_SUB+= GTK2="" GTKVERSION=${GTK_VERSION}
+.else
+PLIST_SUB+= GTK2="@comment "
+.endif
+
+pre-everything::
+ @${ECHO} ""
+ @${ECHO} "By default only gtk-1.2 theme engine will be built."
+ @${ECHO} "You may use the following build options:"
+ @${ECHO} ""
+ @${ECHO} " WITH_GTK2=yes Build gtk-2 theme"
+ @${ECHO} ""
+
+do-extract:
+ @${RM} -rf ${WRKDIR}
+ @${MKDIR} ${WRKDIR}
+ @if ! (cd ${WRKDIR} && rpm2cpio ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | cpio -i ximian-artwork-${PORTVERSION}.tar.gz 2>/dev/null && ${GZIP_CMD} -dc ximian-artwork-${PORTVERSION}.tar.gz | tar -xf - && ${RM} ximian-artwork-${PORTVERSION}.tar.gz);\
+ then \
+ exit 1; \
+ fi
+ ${CP} ${FILESDIR}/Makefile-gtk1 ${WRKSRC}/gtk/gtk1-engine/Makefile
+ ${CP} ${FILESDIR}/Makefile-gtk2 ${WRKSRC}/gtk/gtk2-engine/Makefile
+
+post-patch:
+ @${REINPLACE_CMD} -e 's#-O2#${CFLAGS}#' ${WRKSRC}/gtk/gtk1-engine/Makefile
+ @${REINPLACE_CMD} -e 's#-O2#${CFLAGS}#' ${WRKSRC}/gtk/gtk2-engine/Makefile
+
+do-configure:
+ @${DO_NADA}
+
+do-build:
+ @for theme_dir in ${THEMES_SUBDIRS};do \
+ (cd $$theme_dir; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}); \
+ done
+
+do-install:
+ @${MKDIR} ${PREFIX}/share/themes/Industrial && ${CHMOD} a+rx ${PREFIX}/share/themes/Industrial
+.if defined(WITH_GTK2)
+ @${MKDIR} ${PREFIX}/lib/gtk-2.0/${GTK_VERSION}/engines && ${CHMOD} a+rx ${PREFIX}/lib/gtk-2.0/${GTK_VERSION}/engines
+ @${INSTALL_PROGRAM} ${WRKSRC}/gtk/gtk2-engine/.libs/libindustrial.so ${PREFIX}/lib/gtk-2.0/${GTK_VERSION}/engines
+ @${MKDIR} ${PREFIX}/share/themes/Industrial/gtk-2.0 && ${CHMOD} a+rx ${PREFIX}/share/themes/Industrial/gtk-2.0
+ @${INSTALL_DATA} ${WRKSRC}/gtk/gtk2-engine/gtk-2.0/gtkrc ${PREFIX}/share/themes/Industrial/gtk-2.0
+ @${INSTALL_DATA} ${WRKSRC}/gtk/gtk2-engine/gtk-2.0/*.png ${PREFIX}/share/themes/Industrial/gtk-2.0
+.endif
+ @${MKDIR} ${PREFIX}/lib/gtk/themes/engines && ${CHMOD} a+rx ${PREFIX}/lib/gtk/themes/engines
+ @${INSTALL_PROGRAM} ${WRKSRC}/gtk/gtk1-engine/.libs/libindustrial.so ${PREFIX}/lib/gtk/themes/engines
+ @${MKDIR} ${PREFIX}/share/themes/Industrial/gtk && ${CHMOD} a+rx ${PREFIX}/share/themes/Industrial/gtk
+ @${INSTALL_DATA} ${WRKSRC}/gtk/gtk1-engine/gtk/gtkrc ${PREFIX}/share/themes/Industrial/gtk
+
+.include <bsd.port.mk>
diff --git a/x11-themes/gtk-industrial-theme/distinfo b/x11-themes/gtk-industrial-theme/distinfo
new file mode 100644
index 000000000000..ae495ea8a219
--- /dev/null
+++ b/x11-themes/gtk-industrial-theme/distinfo
@@ -0,0 +1 @@
+MD5 (ximian-artwork-0.2.26-0.ximian.6.1.src.rpm) = 40a4b551cab97860eead3cff519e7278
diff --git a/x11-themes/gtk-industrial-theme/files/Makefile-gtk1 b/x11-themes/gtk-industrial-theme/files/Makefile-gtk1
new file mode 100644
index 000000000000..d42a6d8f8da0
--- /dev/null
+++ b/x11-themes/gtk-industrial-theme/files/Makefile-gtk1
@@ -0,0 +1,46 @@
+CC = cc
+CPP = cc -E
+CXX = c++
+CXXCPP = c++ -E
+GDK_PIXBUF_CFLAGS = `$(GDK_PIXBUF_CONFIG) --cflags`
+GDK_PIXBUF_CONFIG = /usr/X11R6/bin/gdk-pixbuf-config
+GDK_PIXBUF_LIBS = `$(GDK_PIXBUF_CONFIG) --libs`
+GTK_CFLAGS = `$(GTK_CONFIG) --cflags`
+GTK_CONFIG = /usr/X11R6/bin/gtk12-config
+GTK_LIBS = `$(GTK_CONFIG) --libs`
+LIBTOOL = libtool
+LN_S = ln -s
+INCLUDES = $(GTK_CFLAGS) $(GDK_PIXBUF_CFLAGS)
+libdir=/usr/X11R6/lib
+enginedir = $(libdir)/gtk/themes/engines
+engine_LTLIBRARIES = libindustrial.la
+libindustrial_la_LDFLAGS = -module -avoid-version
+libindustrial_la_LIBADD = $(GTK_LIBS) $(GDK_PIXBUF_LIBS)
+EXTRA_DIST = raleigh_dot.c
+LTLIBRARIES = $(engine_LTLIBRARIES)
+CPPFLAGS = -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include -D_GETOPT_H -D_THREAD_SAFE
+LDFLAGS =
+LIBS = -Wl,-export-dynamic -L/usr/local/lib -L/usr/X11R6/lib
+libindustrial_la_DEPENDENCIES =
+libindustrial_la_OBJECTS = industrial1_theme_main.lo \
+industrial_style.lo
+CFLAGS = -O2
+COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
+all: all-am
+.SUFFIXES:
+.SUFFIXES: .S .c .lo .o .obj .s
+.c.o:
+ $(COMPILE) -c $<
+.c.lo:
+ $(LIBTOOL) --mode=compile $(COMPILE) -c $<
+.s.lo:
+ $(LIBTOOL) --mode=compile $(COMPILE) -c $<
+.S.lo:
+ $(LIBTOOL) --mode=compile $(COMPILE) -c $<
+libindustrial.la: $(libindustrial_la_OBJECTS) $(libindustrial_la_DEPENDENCIES)
+ $(LINK) -rpath $(enginedir) $(libindustrial_la_LDFLAGS) $(libindustrial_la_OBJECTS) $(libindustrial_la_LIBADD) $(LIBS)
+all-am: $(LTLIBRARIES)
+.NOEXPORT:
diff --git a/x11-themes/gtk-industrial-theme/files/Makefile-gtk2 b/x11-themes/gtk-industrial-theme/files/Makefile-gtk2
new file mode 100644
index 000000000000..052bb0de0c12
--- /dev/null
+++ b/x11-themes/gtk-industrial-theme/files/Makefile-gtk2
@@ -0,0 +1,43 @@
+libdir = ${exec_prefix}/lib
+CC = cc
+CPP = cc -E
+CXX = c++
+CXXCPP = c++ -E
+GTK2_CFLAGS = `$(PKG_CONFIG) gtk+-2.0 --cflags`
+GTK2_LIBS = `$(PKG_CONFIG) gtk+-2.0 --libs`
+LN_S = ln -s
+PKG_CONFIG = /usr/local/bin/pkg-config
+INCLUDES = $(GTK2_CFLAGS)
+enginedir = /usr/X11R6/lib/gtk-2.0/2.0.0/engines
+engine_LTLIBRARIES = libindustrial.la
+libindustrial_la_LDFLAGS = -module -avoid-version
+libindustrial_la_LIBADD = $(GTK2_LIBS)
+EXTRA_DIST = bits.c
+LTLIBRARIES = $(engine_LTLIBRARIES)
+CPPFLAGS = -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include -D_GETOPT_H -D_THREAD_SAFE
+LDFLAGS =
+LIBS = -Wl,-export-dynamic -L/usr/local/lib -L/usr/X11R6/lib
+libindustrial_la_DEPENDENCIES =
+libindustrial_la_OBJECTS = industrial_rc_style.lo industrial_style.lo \
+industrial_theme_main.lo
+CFLAGS = -O2
+LIBTOOL = libtool
+COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@
+all: all-am
+.SUFFIXES:
+.SUFFIXES: .S .c .lo .o .obj .s
+.c.o:
+ $(COMPILE) -c $<
+.c.lo:
+ $(LIBTOOL) --mode=compile $(COMPILE) -c $<
+.s.lo:
+ $(LIBTOOL) --mode=compile $(COMPILE) -c $<
+.S.lo:
+ $(LIBTOOL) --mode=compile $(COMPILE) -c $<
+libindustrial.la: $(libindustrial_la_OBJECTS) $(libindustrial_la_DEPENDENCIES)
+ $(LINK) -rpath $(enginedir) $(libindustrial_la_LDFLAGS) $(libindustrial_la_OBJECTS) $(libindustrial_la_LIBADD) $(LIBS)
+all-am: $(LTLIBRARIES)
+.NOEXPORT:
diff --git a/x11-themes/gtk-industrial-theme/pkg-descr b/x11-themes/gtk-industrial-theme/pkg-descr
new file mode 100644
index 000000000000..2ef04b79e60d
--- /dev/null
+++ b/x11-themes/gtk-industrial-theme/pkg-descr
@@ -0,0 +1,3 @@
+Ximians Industrial theme for GTK1 and GTK2.
+
+Frank Ruell <stoerte@dreamwarrior.net>
diff --git a/x11-themes/gtk-industrial-theme/pkg-plist b/x11-themes/gtk-industrial-theme/pkg-plist
new file mode 100644
index 000000000000..f015700f75d1
--- /dev/null
+++ b/x11-themes/gtk-industrial-theme/pkg-plist
@@ -0,0 +1,29 @@
+lib/gtk/themes/engines/libindustrial.so
+%%GTK2%%lib/gtk-2.0/%%GTKVERSION%%/engines/libindustrial.so
+share/themes/Industrial/gtk/gtkrc
+%%GTK2%%share/themes/Industrial/gtk-2.0/gtkrc
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_apply.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_bottom-16.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_bottom.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_cancel-16.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_cancel.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_down-16.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_down.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_first-16.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_first.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_last-16.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_last.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_left-16.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_left.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_ok.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_refresh-16.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_refresh.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_right-16.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_right.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_top-16.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_top.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_up-16.png
+%%GTK2%%share/themes/Industrial/gtk-2.0/stock_up.png
+@dirrm share/themes/Industrial/gtk
+%%GTK2%%@dirrm share/themes/Industrial/gtk-2.0
+@dirrm share/themes/Industrial