diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2002-10-17 18:18:59 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2002-10-17 18:18:59 +0000 |
commit | b351230a03b9dcfa5fe07e411ed7b33fd0a89265 (patch) | |
tree | f6ce4cd11cc9d3ff367444573d8f19bd3829d9f3 /x11-themes | |
parent | . Make the instructions for downloading the various source bits clearer. (diff) |
Add gtk-bluecurve-theme, a port of the RedHat 8.0 unified QT/GTK theme
for GTK and GTK 2.
PR: 43640
Submitted by: Ryzhyk Eugeney <evgeni67@bezeqint.net>
Notes
Notes:
svn path=/head/; revision=68218
Diffstat (limited to 'x11-themes')
-rw-r--r-- | x11-themes/gtk-bluecurve-theme/Makefile | 78 | ||||
-rw-r--r-- | x11-themes/gtk-bluecurve-theme/distinfo | 1 | ||||
-rw-r--r-- | x11-themes/gtk-bluecurve-theme/files/Makefile-gtk1 | 46 | ||||
-rw-r--r-- | x11-themes/gtk-bluecurve-theme/files/Makefile-gtk2 | 43 | ||||
-rw-r--r-- | x11-themes/gtk-bluecurve-theme/pkg-comment | 1 | ||||
-rw-r--r-- | x11-themes/gtk-bluecurve-theme/pkg-descr | 6 | ||||
-rw-r--r-- | x11-themes/gtk-bluecurve-theme/pkg-plist | 7 |
7 files changed, 182 insertions, 0 deletions
diff --git a/x11-themes/gtk-bluecurve-theme/Makefile b/x11-themes/gtk-bluecurve-theme/Makefile new file mode 100644 index 000000000000..e0eaffd9bb3f --- /dev/null +++ b/x11-themes/gtk-bluecurve-theme/Makefile @@ -0,0 +1,78 @@ +# New ports collection makefile for: bluecurve-unified +# Date created: 3 October 2002 +# Whom: Eugeney Ryzhyk +# +# $FreeBSD$ +# + +PORTNAME= gtk-bluecurve-theme +PORTVERSION= 0.47 +CATEGORIES= x11-toolkits +MASTER_SITES= ${MASTER_SITE_REDHAT_LINUX} +MASTER_SITE_SUBDIR= 8.0/en/os/i386/SRPMS +DISTFILES= redhat-artwork-${PORTVERSION}-${RH_SUBVERSION}.src.rpm + +MAINTAINER= rzheka@users.sourceforge.net + +BUILD_DEPENDS= rpm2cpio:${PORTSDIR}/archivers/rpm2cpio \ + libtool:${PORTSDIR}/devel/libtool + +WRKSRC= ${WRKDIR}/redhat-artwork-${PORTVERSION} +USE_GMAKE= yes +USE_X_PREFIX= yes +USE_GNOMENG= yes +USE_GNOME= gdkpixbuf +USE_REINPLACE= yes + +RH_SUBVERSION= 3 +THEMES_SUBDIRS= ${WRKSRC}/art/gtk/Bluecurve1 + +.if defined(WITH_GTK2) +LIB_DEPENDS+= gtk-x11-2.0.0:${PORTSDIR}/x11-toolkits/gtk20 +THEMES_SUBDIRS+= ${WRKSRC}/art/gtk/Bluecurve +PLIST_SUB+= GTK2="" GTKVERSION="2.0.0" +.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}/${DISTFILES} | cpio -i redhat-artwork-${PORTVERSION}.tar.gz 2>/dev/null && ${GZIP_CMD} -dc redhat-artwork-${PORTVERSION}.tar.gz | tar -xf - && ${RM} redhat-artwork-${PORTVERSION}.tar.gz);\ + then \ + exit 1; \ + fi + ${CP} ${FILESDIR}/Makefile-gtk1 ${WRKSRC}/art/gtk/Bluecurve1/Makefile + ${CP} ${FILESDIR}/Makefile-gtk2 ${WRKSRC}/art/gtk/Bluecurve/Makefile + +post-patch: + @${REINPLACE_CMD} -e 's#-O2#${CFLAGS}#' ${WRKSRC}/art/gtk/Bluecurve1/Makefile + @${REINPLACE_CMD} -e 's#-O2#${CFLAGS}#' ${WRKSRC}/art/gtk/Bluecurve/Makefile + +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/Bluecurve && ${CHMOD} a+rx ${PREFIX}/share/themes/Bluecurve +.if defined(WITH_GTK2) + @${MKDIR} ${PREFIX}/lib/gtk-2.0/2.0.0/engines && ${CHMOD} a+rx ${PREFIX}/lib/gtk-2.0/2.0.0/engines + @${MKDIR} ${PREFIX}/share/themes/Bluecurve/gtk-2.0 && ${CHMOD} a+rx ${PREFIX}/share/themes/Bluecurve/gtk-2.0 + @${INSTALL_PROGRAM} ${WRKSRC}/art/gtk/Bluecurve/.libs/libbluecurve.so ${PREFIX}/lib/gtk-2.0/2.0.0/engines + @${INSTALL_DATA} ${WRKSRC}/art/gtk/Bluecurve/gtk-2.0/gtkrc ${PREFIX}/share/themes/Bluecurve/gtk-2.0 +.endif + @${MKDIR} ${PREFIX}/lib/gtk/themes/engines && ${CHMOD} a+rx ${PREFIX}/lib/gtk/themes/engines + @${INSTALL_PROGRAM} ${WRKSRC}/art/gtk/Bluecurve1/.libs/libbluecurve.so ${PREFIX}/lib/gtk/themes/engines + @${MKDIR} ${PREFIX}/share/themes/Bluecurve/gtk && ${CHMOD} a+rx ${PREFIX}/share/themes/Bluecurve/gtk + @${INSTALL_DATA} ${WRKSRC}/art/gtk/Bluecurve1/gtk/gtkrc ${PREFIX}/share/themes/Bluecurve/gtk + +.include <bsd.port.mk> diff --git a/x11-themes/gtk-bluecurve-theme/distinfo b/x11-themes/gtk-bluecurve-theme/distinfo new file mode 100644 index 000000000000..9620f1139526 --- /dev/null +++ b/x11-themes/gtk-bluecurve-theme/distinfo @@ -0,0 +1 @@ +MD5 (redhat-artwork-0.47-3.src.rpm) = dba00c3881499d5e7060aa6a3f33affe diff --git a/x11-themes/gtk-bluecurve-theme/files/Makefile-gtk1 b/x11-themes/gtk-bluecurve-theme/files/Makefile-gtk1 new file mode 100644 index 000000000000..d1df167fe446 --- /dev/null +++ b/x11-themes/gtk-bluecurve-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 = libbluecurve.la +libbluecurve_la_LDFLAGS = -module -avoid-version +libbluecurve_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 +libbluecurve_la_DEPENDENCIES = +libbluecurve_la_OBJECTS = bluecurve1_theme_main.lo \ +bluecurve1_theme_draw.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 $< +libbluecurve.la: $(libbluecurve_la_OBJECTS) $(libbluecurve_la_DEPENDENCIES) + $(LINK) -rpath $(enginedir) $(libbluecurve_la_LDFLAGS) $(libbluecurve_la_OBJECTS) $(libbluecurve_la_LIBADD) $(LIBS) +all-am: $(LTLIBRARIES) +.NOEXPORT: diff --git a/x11-themes/gtk-bluecurve-theme/files/Makefile-gtk2 b/x11-themes/gtk-bluecurve-theme/files/Makefile-gtk2 new file mode 100644 index 000000000000..5e99070a92ef --- /dev/null +++ b/x11-themes/gtk-bluecurve-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 = libbluecurve.la +libbluecurve_la_LDFLAGS = -module -avoid-version +libbluecurve_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 +libbluecurve_la_DEPENDENCIES = +libbluecurve_la_OBJECTS = bluecurve_rc_style.lo bluecurve_style.lo \ +bluecurve_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 $< +libbluecurve.la: $(libbluecurve_la_OBJECTS) $(libbluecurve_la_DEPENDENCIES) + $(LINK) -rpath $(enginedir) $(libbluecurve_la_LDFLAGS) $(libbluecurve_la_OBJECTS) $(libbluecurve_la_LIBADD) $(LIBS) +all-am: $(LTLIBRARIES) +.NOEXPORT: diff --git a/x11-themes/gtk-bluecurve-theme/pkg-comment b/x11-themes/gtk-bluecurve-theme/pkg-comment new file mode 100644 index 000000000000..b0be17a6a92c --- /dev/null +++ b/x11-themes/gtk-bluecurve-theme/pkg-comment @@ -0,0 +1 @@ +Bluecurve unified-look theme for GTK1 and GTK2 from RedHat 8.0 diff --git a/x11-themes/gtk-bluecurve-theme/pkg-descr b/x11-themes/gtk-bluecurve-theme/pkg-descr new file mode 100644 index 000000000000..823cb48bb867 --- /dev/null +++ b/x11-themes/gtk-bluecurve-theme/pkg-descr @@ -0,0 +1,6 @@ +This is a port of RedHat 8.0 "Bluecurve" theme for GTK/GNOME. +It won't install RedHat logos and pixmaps, but only the required +theme engines. + +- Ryzhyk Eugeney +rzheka@users.sourceforge.net diff --git a/x11-themes/gtk-bluecurve-theme/pkg-plist b/x11-themes/gtk-bluecurve-theme/pkg-plist new file mode 100644 index 000000000000..cdae50e88ebf --- /dev/null +++ b/x11-themes/gtk-bluecurve-theme/pkg-plist @@ -0,0 +1,7 @@ +lib/gtk/themes/engines/libbluecurve.so +%%GTK2%%lib/gtk-2.0/%%GTKVERSION%%/engines/libbluecurve.so +share/themes/Bluecurve/gtk/gtkrc +%%GTK2%%share/themes/Bluecurve/gtk-2.0/gtkrc +@dirrm share/themes/Bluecurve/gtk +%%GTK2%%@dirrm share/themes/Bluecurve/gtk-2.0 +@dirrm share/themes/Bluecurve |