diff options
-rw-r--r-- | converters/help2man/Makefile | 21 | ||||
-rw-r--r-- | converters/help2man/PLIST | 4 |
2 files changed, 20 insertions, 5 deletions
diff --git a/converters/help2man/Makefile b/converters/help2man/Makefile index ad0e26a26c8..2c1b2e23147 100644 --- a/converters/help2man/Makefile +++ b/converters/help2man/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.36 2015/09/07 12:06:45 jperkin Exp $ +# $NetBSD: Makefile,v 1.37 2015/09/25 15:07:30 tnn Exp $ DISTNAME= help2man-1.47.1 +PKGREVISION= 1 CATEGORIES= converters MASTER_SITES= ${MASTER_SITE_GNU:=help2man/} EXTRACT_SUFX= .tar.xz @@ -27,14 +28,28 @@ INFO_FILES= yes .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "Darwin" +SOEXT= dylib SUBST_CLASSES+= shlibarg SUBST_STAGE.shlibarg= pre-configure SUBST_FILES.shlibarg= Makefile.in -SUBST_SED.shlibarg= -e 's, -shared , -dynamiclib -install_name ${PREFIX}/lib/bindtextdomain.so ,g' +SUBST_SED.shlibarg= -e 's, -shared , -dynamiclib -install_name ${PREFIX}/lib/bindtextdomain.${SOEXT} ,g' +.elif ${OBJECT_FMT} == "SOM" +SOEXT= sl +.else +SOEXT= so .endif -PLIST_VARS+= nls +SUBST_CLASSES+= soext +SUBST_MESSAGE.soext= Fixing shared library suffix +SUBST_STAGE.soext= pre-configure +SUBST_FILES.soext= bindtextdomain.c +SUBST_FILES.soext+= Makefile.in +SUBST_SED.soext+= -e 's,bindtextdomain\.so,bindtextdomain.${SOEXT},g' +SUBST_SED.soext+= -e 's,$$(preload)\.so,$$(preload).${SOEXT},g' + +PLIST_SUBST+= SOEXT=${SOEXT} +PLIST_VARS+= nls USE_PKGLOCALEDIR= yes PLIST.nls= yes diff --git a/converters/help2man/PLIST b/converters/help2man/PLIST index b9bdf83534a..46ba96aee3f 100644 --- a/converters/help2man/PLIST +++ b/converters/help2man/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.11 2015/06/30 10:54:34 ryoon Exp $ +@comment $NetBSD: PLIST,v 1.12 2015/09/25 15:07:30 tnn Exp $ bin/help2man ${PLIST.nls}info/help2man-de.info ${PLIST.nls}info/help2man-es.info @@ -6,7 +6,7 @@ ${PLIST.nls}info/help2man-fr.info ${PLIST.nls}info/help2man-pl.info ${PLIST.nls}info/help2man-uk.info info/help2man.info -${PLIST.nls}lib/bindtextdomain.so +${PLIST.nls}lib/bindtextdomain.${SOEXT} ${PLIST.nls}man/da/man1/help2man.1 ${PLIST.nls}man/de/man1/help2man.1 ${PLIST.nls}man/el/man1/help2man.1 |