aboutsummaryrefslogtreecommitdiff
path: root/misc/gman
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2014-06-21 02:34:39 +0000
committerCy Schubert <cy@FreeBSD.org>2014-06-21 02:34:39 +0000
commitb597ba8392c20d4a12144ef445982791ac76b64f (patch)
tree68cd21028180f0702c6478a4d739e275862cbdb4 /misc/gman
parent29f15f5a02bc4c7441fc2e740fd45d28b29808c1 (diff)
Fix build as reported by pkg-fallout.
Notes
Notes: svn path=/head/; revision=358659
Diffstat (limited to 'misc/gman')
-rw-r--r--misc/gman/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/gman/Makefile b/misc/gman/Makefile
index 1d45de5fee2b..68f6dbdf4458 100644
--- a/misc/gman/Makefile
+++ b/misc/gman/Makefile
@@ -23,12 +23,14 @@ RUN_DEPENDS= ghostview:${PORTSDIR}/print/ghostview \
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-USES= gettext gmake
+USES= gettext gmake shebangfix
USE_GNOME= gtk12
+USE_GCC= any
CXXFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
+
SHEBANG_LANG+= perlw
perlw_OLD_CMD= /usr/bin/perl -w
perlw_CMD= ${LOCALBASE}/bin/perl -w
@@ -41,6 +43,8 @@ post-patch:
-e 's,= /usr,= ${PREFIX},g' \
-e 's,\-O2,,g' \
-e 's,\-lgtk \-lgdk \-lpthread ,`${GTK_CONFIG} \-\-libs gthread` ,g' ${WRKSRC}/Makefile
+ # XXX - workaround for shebangfix not working
+ @${REINPLACE_CMD} -e "s|/usr/bin/perl|${LOCALBASE}/bin/perl|" ${WRKSRC}/gman.pl
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gman ${STAGEDIR}${PREFIX}/bin