diff options
-rw-r--r-- | devel/bglibs/Makefile | 17 | ||||
-rw-r--r-- | devel/bglibs/files/patch-Makefile | 9 |
2 files changed, 18 insertions, 8 deletions
diff --git a/devel/bglibs/Makefile b/devel/bglibs/Makefile index 29e3de3dd067..53b7ebf25222 100644 --- a/devel/bglibs/Makefile +++ b/devel/bglibs/Makefile @@ -1,13 +1,9 @@ -# New ports collection makefile for: bglibs -# Date created: 03 Mar 2003 -# Whom: Sergei Kolobov <sergei@kolobov.com> -# +# Created by: Sergei Kolobov <sergei@kolobov.com> # $FreeBSD$ -# PORTNAME= bglibs PORTVERSION= 1.106 -PORTREVISION= 1 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= http://untroubled.org/${PORTNAME}/archive/ \ @@ -20,7 +16,8 @@ LICENSE= LGPL21 NOT_FOR_ARCHS= alpha -USE_PERL5= yes +USES= perl5 +USE_PERL5= run USE_AUTOTOOLS= libtool:env BGLIBS_INC= ${PREFIX}/include/${PORTNAME} BGLIBS_LIB= ${PREFIX}/lib/${PORTNAME} @@ -29,6 +26,10 @@ USE_LDCONFIG= ${BGLIBS_LIB} DOCS= NEWS README TODO doc/html/* MAN1= cli-generate.1 +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> + post-patch: ${REINPLACE_CMD} '/main/s/^void/int/' ${WRKSRC}/sys/try*.c @@ -41,7 +42,7 @@ do-configure: ${ECHO_CMD} "${BGLIBS_INC}" > ${WRKSRC}/conf-include ${ECHO_CMD} "${BGLIBS_LIB}" > ${WRKSRC}/conf-lib -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} post-install: @${MKDIR} ${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} diff --git a/devel/bglibs/files/patch-Makefile b/devel/bglibs/files/patch-Makefile index 297833ea4fd3..f0c0b9401e5d 100644 --- a/devel/bglibs/files/patch-Makefile +++ b/devel/bglibs/files/patch-Makefile @@ -9,3 +9,12 @@ base64/asc2bin.lo: libcompile base64/asc2bin.c base64/base64.h str/str.h ./libcompile base64/asc2bin.c +@@ -877,7 +877,7 @@ + + perl-head.pl: + ( set -e; PATH="/bin:/usr/bin:/usr/local/bin:$$PATH"; export PATH; \ +- perl=`which perl`; \ ++ perl=`which perl` || perl="/usr/local/bin/perl"; \ + echo "#! $$perl"; \ + echo "# WARNING: This file was auto-generated. Do not edit!"; \ + echo ) >perl-head.pl |