diff options
author | reg <reg@FreeBSD.org> | 2000-10-05 15:22:56 +0800 |
---|---|---|
committer | reg <reg@FreeBSD.org> | 2000-10-05 15:22:56 +0800 |
commit | 05b7017f031a0b7ec77897d1ff4479959829076e (patch) | |
tree | 26ae85d09c84baa372a2949e4ad9d1546c408c7e /net/gicq | |
parent | 68dad4980b984b6c03859651af5eefb37c1c9d90 (diff) | |
download | freebsd-ports-gnome-05b7017f031a0b7ec77897d1ff4479959829076e.tar.gz freebsd-ports-gnome-05b7017f031a0b7ec77897d1ff4479959829076e.tar.zst freebsd-ports-gnome-05b7017f031a0b7ec77897d1ff4479959829076e.zip |
Implement WANT_GNOME.
Diffstat (limited to 'net/gicq')
-rw-r--r-- | net/gicq/Makefile | 30 | ||||
-rw-r--r-- | net/gicq/files/patch-ac | 13 | ||||
-rw-r--r-- | net/gicq/pkg-plist | 10 |
3 files changed, 39 insertions, 14 deletions
diff --git a/net/gicq/Makefile b/net/gicq/Makefile index e51496425fda..c51c4e9ec43d 100644 --- a/net/gicq/Makefile +++ b/net/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/gicq/files/patch-ac b/net/gicq/files/patch-ac new file mode 100644 index 000000000000..92a26e88bd61 --- /dev/null +++ b/net/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/gicq/pkg-plist b/net/gicq/pkg-plist index ec71b337f897..67b051623192 100644 --- a/net/gicq/pkg-plist +++ b/net/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 |