aboutsummaryrefslogtreecommitdiff
path: root/net-im/gicq
diff options
context:
space:
mode:
authorJeremy Lea <reg@FreeBSD.org>2000-10-05 07:22:56 +0000
committerJeremy Lea <reg@FreeBSD.org>2000-10-05 07:22:56 +0000
commit7b4c77811e89d7fc1131ca6e63df3e719bc86b1d (patch)
tree9695733a1620c4c290c86f161a4f1b73160ed39a /net-im/gicq
parentc76cf46929051f9dd322487d888c82f104026e6d (diff)
downloadports-7b4c77811e89d7fc1131ca6e63df3e719bc86b1d.tar.gz
ports-7b4c77811e89d7fc1131ca6e63df3e719bc86b1d.zip
Implement WANT_GNOME.
Notes
Notes: svn path=/head/; revision=33430
Diffstat (limited to 'net-im/gicq')
-rw-r--r--net-im/gicq/Makefile30
-rw-r--r--net-im/gicq/files/patch-ac13
-rw-r--r--net-im/gicq/pkg-plist10
3 files changed, 39 insertions, 14 deletions
diff --git a/net-im/gicq/Makefile b/net-im/gicq/Makefile
index e51496425fda..c51c4e9ec43d 100644
--- a/net-im/gicq/Makefile
+++ b/net-im/gicq/Makefile
@@ -14,18 +14,30 @@ MASTER_SITE_SUBDIR= flathill
MAINTAINER= flathill@FreeBSD.org
-LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
- icq.0:${PORTSDIR}/net/libicq
-
-GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
-GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+LIB_DEPENDS= icq.0:${PORTSDIR}/net/libicq
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --without-gnome --disable-nls
+USE_GTK= yes
+WANT_GNOME= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- GLIB_CONFIG="${GLIB_CONFIG}" \
- GTK_CONFIG="${GTK_CONFIG}" \
LIBS="-L${LOCALBASE}/lib"
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if defined(HAVE_GNOME)
+USE_GNOME= yes
+.else
+CONFIGURE_ARGS+=--without-gnome
+.endif
+
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|-pthread|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
+ s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
+ s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
+ @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
+ 's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g ; \
+ s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|g'
+
+.include <bsd.port.post.mk>
diff --git a/net-im/gicq/files/patch-ac b/net-im/gicq/files/patch-ac
new file mode 100644
index 000000000000..92a26e88bd61
--- /dev/null
+++ b/net-im/gicq/files/patch-ac
@@ -0,0 +1,13 @@
+--- Makefile.in.orig Mon Sep 6 23:36:43 1999
++++ Makefile.in Mon Sep 6 23:37:18 1999
+@@ -116,8 +116,10 @@
+
+ SUBDIRS = macros intl po pixmaps src doc
+
++.ifdef HAVE_GNOME
+ sysdir = $(datadir)/apps/Applications
+ sys_DATA = gicq.desktop
++.endif
+
+ EXTRA_DIST = gicq.desktop
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
diff --git a/net-im/gicq/pkg-plist b/net-im/gicq/pkg-plist
index ec71b337f897..67b051623192 100644
--- a/net-im/gicq/pkg-plist
+++ b/net-im/gicq/pkg-plist
@@ -1,6 +1,6 @@
bin/gicq
-share/gnome/apps/Applications/gicq.desktop
-share/gnome/help/gicq/C/index.html
-share/gnome/help/gicq/C/topic.dat
-@dirrm share/gnome/help/gicq/C
-@dirrm share/gnome/help/gicq
+%%GNOME:%%share/gnome/apps/Applications/gicq.desktop
+%%DATADIR%%/help/gicq/C/index.html
+%%DATADIR%%/help/gicq/C/topic.dat
+@dirrm %%DATADIR%%/help/gicq/C
+@dirrm %%DATADIR%%/help/gicq