aboutsummaryrefslogtreecommitdiffstats
path: root/x11-themes
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2004-05-31 06:17:04 +0800
committerthierry <thierry@FreeBSD.org>2004-05-31 06:17:04 +0800
commit462a956354d07f32b277a24c5d3fc55458218f65 (patch)
treee55a27a0fcefd35730b576c4b74fe019e361db99 /x11-themes
parent8c54c3b3ca392f19cd379b76c8ba1b5ba3aa81d1 (diff)
downloadfreebsd-ports-gnome-462a956354d07f32b277a24c5d3fc55458218f65.tar.gz
freebsd-ports-gnome-462a956354d07f32b277a24c5d3fc55458218f65.tar.zst
freebsd-ports-gnome-462a956354d07f32b277a24c5d3fc55458218f65.zip
Add gtk-qt-engine 0.3, a GTK-QT Theme Engine allowing GTK2 to use
QT widget styles. PR: 63282 Submitted by: Danny Pansters <danny@ricin.com>
Diffstat (limited to 'x11-themes')
-rw-r--r--x11-themes/gtk-qt-engine/Makefile41
-rw-r--r--x11-themes/gtk-qt-engine/distinfo2
-rw-r--r--x11-themes/gtk-qt-engine/files/patch-configure32
-rw-r--r--x11-themes/gtk-qt-engine/files/patch-makefile.in11
-rw-r--r--x11-themes/gtk-qt-engine/files/patch-qt_theme_draw.c9
-rw-r--r--x11-themes/gtk-qt-engine/files/pkg-message.in7
-rw-r--r--x11-themes/gtk-qt-engine/pkg-descr5
-rw-r--r--x11-themes/gtk-qt-engine/pkg-plist7
-rw-r--r--x11-themes/gtk-qt4-engine/Makefile41
-rw-r--r--x11-themes/gtk-qt4-engine/distinfo2
-rw-r--r--x11-themes/gtk-qt4-engine/files/patch-configure32
-rw-r--r--x11-themes/gtk-qt4-engine/files/patch-makefile.in11
-rw-r--r--x11-themes/gtk-qt4-engine/files/patch-qt_theme_draw.c9
-rw-r--r--x11-themes/gtk-qt4-engine/files/pkg-message.in7
-rw-r--r--x11-themes/gtk-qt4-engine/pkg-descr5
-rw-r--r--x11-themes/gtk-qt4-engine/pkg-plist7
16 files changed, 228 insertions, 0 deletions
diff --git a/x11-themes/gtk-qt-engine/Makefile b/x11-themes/gtk-qt-engine/Makefile
new file mode 100644
index 000000000000..990a921af5c4
--- /dev/null
+++ b/x11-themes/gtk-qt-engine/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: gtk-qt-engine
+# Date created: 23 February 2004
+# Whom: Danny Pansters <danny@ricin.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gtk-qt-engine
+PORTVERSION= 0.3
+CATEGORIES= x11-toolkits
+MASTER_SITES= http://www.freedesktop.org/Software/gtk-qt/
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= The GTK-QT Theme Engine allows GTK2 to use QT widget styles
+
+USE_BZIP2= yes
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_LIBTOOL_VER= 13
+WANT_GNOME= no
+USE_GNOME= gnomehack gtk20
+USE_QT_VER= 3
+USE_GCC= 3.3
+USE_REINPLACE= yes
+
+PLIST_SUB= GTK_VER=2.4.0
+
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+pre-configure:
+ @${RM} -f ${WRKSRC}/config.cache
+ @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/configure
+
+post-install:
+ @${ECHO_MSG}
+ @${SED} -e "s:/usr/X11R6:${PREFIX}:" ${FILESDIR}/pkg-message.in \
+ > ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
+
+.include <bsd.port.mk>
diff --git a/x11-themes/gtk-qt-engine/distinfo b/x11-themes/gtk-qt-engine/distinfo
new file mode 100644
index 000000000000..21cd5e7e6047
--- /dev/null
+++ b/x11-themes/gtk-qt-engine/distinfo
@@ -0,0 +1,2 @@
+MD5 (gtk-qt-engine-0.3.tar.bz2) = 0685783bec472b682366f213134a6b3c
+SIZE (gtk-qt-engine-0.3.tar.bz2) = 170845
diff --git a/x11-themes/gtk-qt-engine/files/patch-configure b/x11-themes/gtk-qt-engine/files/patch-configure
new file mode 100644
index 000000000000..f5fb108707f1
--- /dev/null
+++ b/x11-themes/gtk-qt-engine/files/patch-configure
@@ -0,0 +1,32 @@
+--- configure.orig Sun May 30 23:55:02 2004
++++ configure Sun May 30 23:57:33 2004
+@@ -5733,12 +5733,15 @@
+
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+
+ # Always use our own libtool.
+ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+
+-# Prevent multiple expansion
++# We have pkg-config in /usr/local, while gtk stuff is /usr/X11R6
++PKG_CONFIG=%%LOCALBASE%%/bin/pkg-config
+
++# Prevent multiple expansion
+
+
+
+@@ -5790,7 +5793,11 @@
+ echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
+ else
+ PKG_CONFIG_MIN_VERSION=0.9.0
+- if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
++ # This seems to just decide that 0.9.0 > 0.15.0 which is not helpful
++ #if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
++ VER=`$PKG_CONFIG --version | sed s/"\."//g`
++ MINVER=090
++ if [ $VER -ge $MINVER ]; then
+ echo $ac_n "checking for gtk+-2.0 >= 2.0.0""... $ac_c" 1>&6
+ echo "configure:5796: checking for gtk+-2.0 >= 2.0.0" >&5
+
diff --git a/x11-themes/gtk-qt-engine/files/patch-makefile.in b/x11-themes/gtk-qt-engine/files/patch-makefile.in
new file mode 100644
index 000000000000..e46ca6a3751e
--- /dev/null
+++ b/x11-themes/gtk-qt-engine/files/patch-makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Mon Feb 23 16:14:53 2004
++++ Makefile.in Mon Feb 23 16:35:40 2004
+@@ -83,7 +83,7 @@
+
+ SUBDIRS = Theme
+
+-QTDIR = /usr/lib/qt3
++QTDIR = $(PREFIX)
+
+ INCLUDES = $(QTENGINE_CFLAGS) -I$(QTDIR)/include/
+
diff --git a/x11-themes/gtk-qt-engine/files/patch-qt_theme_draw.c b/x11-themes/gtk-qt-engine/files/patch-qt_theme_draw.c
new file mode 100644
index 000000000000..665215cd1b4f
--- /dev/null
+++ b/x11-themes/gtk-qt-engine/files/patch-qt_theme_draw.c
@@ -0,0 +1,9 @@
+--- qt_theme_draw.c.orig Mon Feb 9 19:50:12 2004
++++ qt_theme_draw.c Tue Mar 30 02:09:08 2004
+@@ -1,5 +1,6 @@
+ #include <math.h>
+ #include <string.h>
++#include <gdk/gdk.h>
+ #include <gtk/gtkprogressbar.h>
+ #include <gtk/gtkrange.h>
+ #include <gtk/gtknotebook.h>
diff --git a/x11-themes/gtk-qt-engine/files/pkg-message.in b/x11-themes/gtk-qt-engine/files/pkg-message.in
new file mode 100644
index 000000000000..8ba3b9ec025d
--- /dev/null
+++ b/x11-themes/gtk-qt-engine/files/pkg-message.in
@@ -0,0 +1,7 @@
+=====================================================
+NOTE: Add the following line to your ~/.gtkrc-2.0 :
+
+include "/usr/X11R6/share/themes/Qt/gtk-2.0/gtkrc"
+
+More info: http://www.freedesktop.org/Software/gtk-qt
+=====================================================
diff --git a/x11-themes/gtk-qt-engine/pkg-descr b/x11-themes/gtk-qt-engine/pkg-descr
new file mode 100644
index 000000000000..f43a68afb960
--- /dev/null
+++ b/x11-themes/gtk-qt-engine/pkg-descr
@@ -0,0 +1,5 @@
+The GTK-QT Theme Engine allows GTK2 to use QT widget styles.
+
+WWW: http://www.freedesktop.org/Software/gtk-qt
+
+David Sansome <me@davidsansome.com>
diff --git a/x11-themes/gtk-qt-engine/pkg-plist b/x11-themes/gtk-qt-engine/pkg-plist
new file mode 100644
index 000000000000..c02239dd5d11
--- /dev/null
+++ b/x11-themes/gtk-qt-engine/pkg-plist
@@ -0,0 +1,7 @@
+lib/gtk-2.0/%%GTK_VER%%/engines/libqtengine.so
+libdata/pkgconfig/gtk-qt-engine-2.pc
+share/themes/Qt/ICON.png
+share/themes/Qt/README.html
+share/themes/Qt/gtk-2.0/gtkrc
+@dirrm share/themes/Qt/gtk-2.0
+@dirrm share/themes/Qt
diff --git a/x11-themes/gtk-qt4-engine/Makefile b/x11-themes/gtk-qt4-engine/Makefile
new file mode 100644
index 000000000000..990a921af5c4
--- /dev/null
+++ b/x11-themes/gtk-qt4-engine/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: gtk-qt-engine
+# Date created: 23 February 2004
+# Whom: Danny Pansters <danny@ricin.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gtk-qt-engine
+PORTVERSION= 0.3
+CATEGORIES= x11-toolkits
+MASTER_SITES= http://www.freedesktop.org/Software/gtk-qt/
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= The GTK-QT Theme Engine allows GTK2 to use QT widget styles
+
+USE_BZIP2= yes
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_LIBTOOL_VER= 13
+WANT_GNOME= no
+USE_GNOME= gnomehack gtk20
+USE_QT_VER= 3
+USE_GCC= 3.3
+USE_REINPLACE= yes
+
+PLIST_SUB= GTK_VER=2.4.0
+
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+pre-configure:
+ @${RM} -f ${WRKSRC}/config.cache
+ @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/configure
+
+post-install:
+ @${ECHO_MSG}
+ @${SED} -e "s:/usr/X11R6:${PREFIX}:" ${FILESDIR}/pkg-message.in \
+ > ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
+
+.include <bsd.port.mk>
diff --git a/x11-themes/gtk-qt4-engine/distinfo b/x11-themes/gtk-qt4-engine/distinfo
new file mode 100644
index 000000000000..21cd5e7e6047
--- /dev/null
+++ b/x11-themes/gtk-qt4-engine/distinfo
@@ -0,0 +1,2 @@
+MD5 (gtk-qt-engine-0.3.tar.bz2) = 0685783bec472b682366f213134a6b3c
+SIZE (gtk-qt-engine-0.3.tar.bz2) = 170845
diff --git a/x11-themes/gtk-qt4-engine/files/patch-configure b/x11-themes/gtk-qt4-engine/files/patch-configure
new file mode 100644
index 000000000000..f5fb108707f1
--- /dev/null
+++ b/x11-themes/gtk-qt4-engine/files/patch-configure
@@ -0,0 +1,32 @@
+--- configure.orig Sun May 30 23:55:02 2004
++++ configure Sun May 30 23:57:33 2004
+@@ -5733,12 +5733,15 @@
+
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+
+ # Always use our own libtool.
+ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+
+-# Prevent multiple expansion
++# We have pkg-config in /usr/local, while gtk stuff is /usr/X11R6
++PKG_CONFIG=%%LOCALBASE%%/bin/pkg-config
+
++# Prevent multiple expansion
+
+
+
+@@ -5790,7 +5793,11 @@
+ echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
+ else
+ PKG_CONFIG_MIN_VERSION=0.9.0
+- if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
++ # This seems to just decide that 0.9.0 > 0.15.0 which is not helpful
++ #if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
++ VER=`$PKG_CONFIG --version | sed s/"\."//g`
++ MINVER=090
++ if [ $VER -ge $MINVER ]; then
+ echo $ac_n "checking for gtk+-2.0 >= 2.0.0""... $ac_c" 1>&6
+ echo "configure:5796: checking for gtk+-2.0 >= 2.0.0" >&5
+
diff --git a/x11-themes/gtk-qt4-engine/files/patch-makefile.in b/x11-themes/gtk-qt4-engine/files/patch-makefile.in
new file mode 100644
index 000000000000..e46ca6a3751e
--- /dev/null
+++ b/x11-themes/gtk-qt4-engine/files/patch-makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Mon Feb 23 16:14:53 2004
++++ Makefile.in Mon Feb 23 16:35:40 2004
+@@ -83,7 +83,7 @@
+
+ SUBDIRS = Theme
+
+-QTDIR = /usr/lib/qt3
++QTDIR = $(PREFIX)
+
+ INCLUDES = $(QTENGINE_CFLAGS) -I$(QTDIR)/include/
+
diff --git a/x11-themes/gtk-qt4-engine/files/patch-qt_theme_draw.c b/x11-themes/gtk-qt4-engine/files/patch-qt_theme_draw.c
new file mode 100644
index 000000000000..665215cd1b4f
--- /dev/null
+++ b/x11-themes/gtk-qt4-engine/files/patch-qt_theme_draw.c
@@ -0,0 +1,9 @@
+--- qt_theme_draw.c.orig Mon Feb 9 19:50:12 2004
++++ qt_theme_draw.c Tue Mar 30 02:09:08 2004
+@@ -1,5 +1,6 @@
+ #include <math.h>
+ #include <string.h>
++#include <gdk/gdk.h>
+ #include <gtk/gtkprogressbar.h>
+ #include <gtk/gtkrange.h>
+ #include <gtk/gtknotebook.h>
diff --git a/x11-themes/gtk-qt4-engine/files/pkg-message.in b/x11-themes/gtk-qt4-engine/files/pkg-message.in
new file mode 100644
index 000000000000..8ba3b9ec025d
--- /dev/null
+++ b/x11-themes/gtk-qt4-engine/files/pkg-message.in
@@ -0,0 +1,7 @@
+=====================================================
+NOTE: Add the following line to your ~/.gtkrc-2.0 :
+
+include "/usr/X11R6/share/themes/Qt/gtk-2.0/gtkrc"
+
+More info: http://www.freedesktop.org/Software/gtk-qt
+=====================================================
diff --git a/x11-themes/gtk-qt4-engine/pkg-descr b/x11-themes/gtk-qt4-engine/pkg-descr
new file mode 100644
index 000000000000..f43a68afb960
--- /dev/null
+++ b/x11-themes/gtk-qt4-engine/pkg-descr
@@ -0,0 +1,5 @@
+The GTK-QT Theme Engine allows GTK2 to use QT widget styles.
+
+WWW: http://www.freedesktop.org/Software/gtk-qt
+
+David Sansome <me@davidsansome.com>
diff --git a/x11-themes/gtk-qt4-engine/pkg-plist b/x11-themes/gtk-qt4-engine/pkg-plist
new file mode 100644
index 000000000000..c02239dd5d11
--- /dev/null
+++ b/x11-themes/gtk-qt4-engine/pkg-plist
@@ -0,0 +1,7 @@
+lib/gtk-2.0/%%GTK_VER%%/engines/libqtengine.so
+libdata/pkgconfig/gtk-qt-engine-2.pc
+share/themes/Qt/ICON.png
+share/themes/Qt/README.html
+share/themes/Qt/gtk-2.0/gtkrc
+@dirrm share/themes/Qt/gtk-2.0
+@dirrm share/themes/Qt