diff options
author | sbd <sbd@pkgsrc.org> | 2012-05-04 06:58:04 +0000 |
---|---|---|
committer | sbd <sbd@pkgsrc.org> | 2012-05-04 06:58:04 +0000 |
commit | 82965b35a37d4c4c041a0ca8aceb227c2b0956b9 (patch) | |
tree | 30236f820705072b752702624ddc822338f072b5 /lang/objc | |
parent | 8df98da2f5ece2373973389f91f53672c0791748 (diff) | |
download | pkgsrc-82965b35a37d4c4c041a0ca8aceb227c2b0956b9.tar.gz |
Honor ${PKGMANDIR}
Diffstat (limited to 'lang/objc')
-rw-r--r-- | lang/objc/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lang/objc/Makefile b/lang/objc/Makefile index 8a98d613c86..9dd94f6e7a9 100644 --- a/lang/objc/Makefile +++ b/lang/objc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2012/04/30 02:51:50 dholland Exp $ +# $NetBSD: Makefile,v 1.14 2012/05/04 06:58:04 sbd Exp $ DISTNAME= objc-3.2.6 CATEGORIES= lang @@ -34,6 +34,12 @@ SUBST_SED.mflags= -e 's,MFLAGS,MMFLAGS,g' SUBST_FILES.mflags= configure configure.in manual.html \ */Makefile* src/*/Makefile* +SUBST_CLASSES+= mandir +SUBST_STAGE.mandir= post-configure +SUBST_MESSAGE.mandir= Making mandir=${PKGMANDIR} +SUBST_SED.mandir= -e '/$$(TAR)/s,man,${PKGMANDIR},' +SUBST_FILES.mandir= Makefile + pre-configure: ${ECHO} >> ${WRKSRC_BS}/configure \ '${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} -f ${MAKE_FILE} ${BUILD_TARGET}' @@ -45,4 +51,12 @@ post-configure: ${MV} ${WRKDIR}/oc.tmp ${WRKSRC_BS}/objc ${CHMOD} +x ${WRKSRC_BS}/objc +.include "../../mk/bsd.prefs.mk" + +.if !empty(PKGMANDIR:M*/*) +post-build: + ${MKDIR} ${WRKSRC}/${PKGMANDIR:H} + ${MV} ${WRKSRC}/man ${WRKSRC}/${PKGMANDIR} +.endif + .include "../../mk/bsd.pkg.mk" |