diff options
Diffstat (limited to 'textproc/gtkdiff/Makefile')
-rw-r--r-- | textproc/gtkdiff/Makefile | 21 |
1 files changed, 10 insertions, 11 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> |