summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--deskutils/yank/Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/deskutils/yank/Makefile b/deskutils/yank/Makefile
index f0df83d97972..fcc2dbe77bcc 100644
--- a/deskutils/yank/Makefile
+++ b/deskutils/yank/Makefile
@@ -18,20 +18,17 @@ PLIST_SUB= PORTVERSION=${PORTVERSION}
USE_BZIP2= yes
USE_X_PREFIX= yes
+USE_REINPLACE= yes
USE_GMAKE= yes
-USE_GNOME= yes
+USE_GNOME= gnomelibs gnomehack gnomeprefix
USE_LIBTOOL= yes
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib"
-pre-patch:
- @${PERL} -pi -e 's^-l(pthread|c_r)^${PTHREAD_LIBS}^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'
+post-patch:
+ @${REINPLACE_CMD} -E 's^-l(pthread|c_r)^${PTHREAD_LIBS}^g' ${WRKSRC}/configure
@${FIND} ${WRKSRC}/src/Plugins -name "Makefile.in" | \
- ${XARGS} ${PERL} -pi -e \
- 's|_la_LDFLAGS =|_la_LDFLAGS = -avoid-version|g'
+ ${XARGS} ${REINPLACE_CMD} -e \
+ 's|_la_LDFLAGS =|& -avoid-version|g'
.include <bsd.port.mk>