aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/gicq/Makefile
diff options
context:
space:
mode:
authorreg <reg@FreeBSD.org>2000-10-05 15:22:56 +0800
committerreg <reg@FreeBSD.org>2000-10-05 15:22:56 +0800
commit05b7017f031a0b7ec77897d1ff4479959829076e (patch)
tree26ae85d09c84baa372a2949e4ad9d1546c408c7e /net-im/gicq/Makefile
parent68dad4980b984b6c03859651af5eefb37c1c9d90 (diff)
downloadfreebsd-ports-gnome-05b7017f031a0b7ec77897d1ff4479959829076e.tar.gz
freebsd-ports-gnome-05b7017f031a0b7ec77897d1ff4479959829076e.tar.zst
freebsd-ports-gnome-05b7017f031a0b7ec77897d1ff4479959829076e.zip
Implement WANT_GNOME.
Diffstat (limited to 'net-im/gicq/Makefile')
-rw-r--r--net-im/gicq/Makefile30
1 files changed, 21 insertions, 9 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>