svn commit: r339382 - head/security/gnutls
John Marino
marino at FreeBSD.org
Fri Jan 10 20:33:46 UTC 2014
Author: marino
Date: Fri Jan 10 20:33:45 2014
New Revision: 339382
URL: http://svnweb.freebsd.org/changeset/ports/339382
Log:
security/gnutls: Fix hardcoded perl paths
Perl was recently added as a build tool for gnutls, and immediately the
port fails to build on systems that do not have the /usr/bin/perl
symlink. The cause is harded perl path of "/usr/bin/perl". Shebangfix
will fix a couple of these, REINPLACE_CMD will fix the other. Committed
under the new "Just fix it" blanket, but it was tested in redports.
Modified:
head/security/gnutls/Makefile
Modified: head/security/gnutls/Makefile
==============================================================================
--- head/security/gnutls/Makefile Fri Jan 10 19:02:59 2014 (r339381)
+++ head/security/gnutls/Makefile Fri Jan 10 20:33:45 2014 (r339382)
@@ -19,7 +19,7 @@ LIB_DEPENDS= nettle:${PORTSDIR}/security
CONFLICTS= gnutls-devel-[0-9]*
-USES= pathfix pkgconfig iconv gmake perl5
+USES= pathfix pkgconfig iconv gmake perl5 shebangfix
USE_PERL5= build
USE_BZIP2= yes
USE_GNOME= ltverhack
@@ -27,6 +27,7 @@ GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_AUTOTOOLS= libtool
LIBTOOLFILES= configure lib/configure libextra/configure
+SHEBANG_FILES= doc/scripts/gdoc doc/scripts/sort2.pl
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CPPFLAGS+= -fPIC
@@ -79,6 +80,8 @@ PORTEXAMPLES= *.c
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" -type f |\
${XARGS} ${REINPLACE_CMD} -e 's|[$$][(]LTLIBPTHREAD[)]||g'
+ @${REINPLACE_CMD} -e 's|/usr/bin/perl|${PREFIX}/bin/perl|g' \
+ ${WRKSRC}/doc/doxygen/Doxyfile.in
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
More information about the svn-ports-all
mailing list