summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorJeremy Lea <reg@FreeBSD.org>2000-10-05 07:17:31 +0000
committerJeremy Lea <reg@FreeBSD.org>2000-10-05 07:17:31 +0000
commitc76cf46929051f9dd322487d888c82f104026e6d (patch)
treef415aeddadc6782b1474ebd88710bfa86cf08711 /textproc
parentImplement USE_GNOME, part 1. (diff)
Implement USE_GNOME, part 2.
Notes
Notes: svn path=/head/; revision=33429
Diffstat (limited to 'textproc')
-rw-r--r--textproc/gtkdiff/Makefile21
-rw-r--r--textproc/gtkdiff/pkg-plist4
2 files changed, 12 insertions, 13 deletions
diff --git a/textproc/gtkdiff/Makefile b/textproc/gtkdiff/Makefile
index 4b88115d61fe..2e2f66548c54 100644
--- a/textproc/gtkdiff/Makefile
+++ b/textproc/gtkdiff/Makefile
@@ -12,20 +12,19 @@ MASTER_SITES= http://www.ainet.or.jp/~inoue/software/gtkdiff/
MAINTAINER= sobomax@FreeBSD.org
-LIB_DEPENDS= gnome.4:${PORTSDIR}/x11/gnomelibs
-RUN_DEPENDS= panel:${PORTSDIR}/x11/gnomecore
-
-GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
-GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
-
-CONFIGURE_ENV= GLIB_CONFIG="${GLIB_CONFIG}" \
- GTK_CONFIG="${GTK_CONFIG}" \
- CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib"
-
USE_X_PREFIX= yes
+USE_GNOME= yes
GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
MAN1= gtkdiff.1
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|-pthread|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|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.mk>
diff --git a/textproc/gtkdiff/pkg-plist b/textproc/gtkdiff/pkg-plist
index 265405ee8be7..371b3802497a 100644
--- a/textproc/gtkdiff/pkg-plist
+++ b/textproc/gtkdiff/pkg-plist
@@ -1,8 +1,8 @@
bin/gtkdiff
bin/gtkdiff-rcs
share/gnome/apps/Utilities/gtkdiff.desktop
-share/gtkdiff/gtkdiffrc
+share/gnome/gtkdiff/gtkdiffrc
share/locale/es/LC_MESSAGES/gtkdiff.mo
share/locale/fr/LC_MESSAGES/gtkdiff.mo
share/locale/ja/LC_MESSAGES/gtkdiff.mo
-@dirrm share/gtkdiff
+@dirrm share/gnome/gtkdiff