| @@ -1,53 +1,53 @@ | | | @@ -1,53 +1,53 @@ |
1 | # $NetBSD: Makefile,v 1.26 2014/10/01 12:12:28 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.27 2014/10/12 15:21:28 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= help2man-1.46.3 | | 3 | DISTNAME= help2man-1.46.4 |
4 | CATEGORIES= converters | | 4 | CATEGORIES= converters |
5 | MASTER_SITES= ${MASTER_SITE_GNU:=help2man/} | | 5 | MASTER_SITES= ${MASTER_SITE_GNU:=help2man/} |
6 | EXTRACT_SUFX= .tar.xz | | 6 | EXTRACT_SUFX= .tar.xz |
7 | | | 7 | |
8 | MAINTAINER= arved@arved.at | | 8 | MAINTAINER= arved@arved.at |
9 | HOMEPAGE= http://www.gnu.org/software/help2man/ | | 9 | HOMEPAGE= http://www.gnu.org/software/help2man/ |
10 | COMMENT= Generate simple manual pages from program output | | 10 | COMMENT= Generate simple manual pages from program output |
11 | LICENSE= gnu-gpl-v3 | | 11 | LICENSE= gnu-gpl-v3 |
12 | | | 12 | |
13 | DEPENDS+= p5-gettext>=1.01:../../devel/p5-gettext | | 13 | DEPENDS+= p5-gettext>=1.01:../../devel/p5-gettext |
14 | | | 14 | |
15 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} | | 15 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} |
16 | GNU_CONFIGURE= yes | | 16 | GNU_CONFIGURE= yes |
17 | USE_TOOLS+= perl:run msgfmt gmake | | 17 | USE_TOOLS+= perl:run msgfmt gmake |
18 | | | 18 | |
19 | SUBST_CLASSES+= paths | | 19 | SUBST_CLASSES+= paths |
20 | SUBST_MESSAGE.paths= Fixing install lib paths. | | 20 | SUBST_MESSAGE.paths= Fixing install lib paths. |
21 | SUBST_STAGE.paths= pre-configure | | 21 | SUBST_STAGE.paths= pre-configure |
22 | SUBST_FILES.paths= Makefile.in | | 22 | SUBST_FILES.paths= Makefile.in |
23 | SUBST_SED.paths= -e 's,(libdir)/help2man,(libdir),g' | | 23 | SUBST_SED.paths= -e 's,(libdir)/help2man,(libdir),g' |
24 | | | 24 | |
25 | INFO_FILES= yes | | 25 | INFO_FILES= yes |
26 | | | 26 | |
27 | .include "../../mk/bsd.prefs.mk" | | 27 | .include "../../mk/bsd.prefs.mk" |
28 | | | 28 | |
29 | # XXX: will undoubtedly include more versions | | 29 | # XXX: will undoubtedly include more versions |
30 | .if ${OPSYS} == "Darwin" && !empty(OS_VERSION:M9.*) | | 30 | .if ${OPSYS} == "Darwin" && !empty(OS_VERSION:M9.*) |
31 | SUBST_CLASSES+= shlibarg | | 31 | SUBST_CLASSES+= shlibarg |
32 | SUBST_STAGE.shlibarg= pre-configure | | 32 | SUBST_STAGE.shlibarg= pre-configure |
33 | SUBST_FILES.shlibarg= Makefile.in | | 33 | SUBST_FILES.shlibarg= Makefile.in |
34 | SUBST_SED.shlibarg= -e 's, -shared , -dynamiclib ,g' | | 34 | SUBST_SED.shlibarg= -e 's, -shared , -dynamiclib ,g' |
35 | .endif | | 35 | .endif |
36 | | | 36 | |
37 | PLIST_VARS+= nls | | 37 | PLIST_VARS+= nls |
38 | | | 38 | |
39 | .if ${OPSYS} == "Darwin" && ${OS_VERSION:M8.*} != "" | | 39 | .if ${OPSYS} == "Darwin" && ${OS_VERSION:M8.*} != "" |
40 | CONFIGURE_ARGS+= --disable-nls | | 40 | CONFIGURE_ARGS+= --disable-nls |
41 | .else | | 41 | .else |
42 | . if ${OPSYS} == "Darwin" | | 42 | . if ${OPSYS} == "Darwin" |
43 | _STRIPFLAG_INSTALL= | | 43 | _STRIPFLAG_INSTALL= |
44 | . endif | | 44 | . endif |
45 | USE_PKGLOCALEDIR= yes | | 45 | USE_PKGLOCALEDIR= yes |
46 | PLIST.nls= yes | | 46 | PLIST.nls= yes |
47 | .endif | | 47 | .endif |
48 | | | 48 | |
49 | post-patch: | | 49 | post-patch: |
50 | ${TOUCH} -r ${WRKSRC}/help2man.PL.orig ${WRKSRC}/help2man.PL | | 50 | ${TOUCH} -r ${WRKSRC}/help2man.PL.orig ${WRKSRC}/help2man.PL |
51 | | | 51 | |
52 | .include "../../devel/gettext-lib/buildlink3.mk" | | 52 | .include "../../devel/gettext-lib/buildlink3.mk" |
53 | .include "../../mk/bsd.pkg.mk" | | 53 | .include "../../mk/bsd.pkg.mk" |