summaryrefslogtreecommitdiff
path: root/converters/help2man/Makefile
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2015-09-25 15:07:30 +0000
committertnn <tnn@pkgsrc.org>2015-09-25 15:07:30 +0000
commit6fea9cb864a46b4c5a4f7be232c69652b71837a4 (patch)
treedbc8adca65aa7c89a043d3ac7d14a7236bc43aaf /converters/help2man/Makefile
parent34947f7a9213f95c2e3dca545b45ea177b17a56d (diff)
downloadpkgsrc-6fea9cb864a46b4c5a4f7be232c69652b71837a4.tar.gz
use correct platform shared library suffix for bindtextdomain.so
Diffstat (limited to 'converters/help2man/Makefile')
-rw-r--r--converters/help2man/Makefile21
1 files changed, 18 insertions, 3 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