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 | 78f96422e323c00df8cb0c5b8b771753184008ab (patch) | |
tree | 30236f820705072b752702624ddc822338f072b5 /lang | |
parent | c57a3dc733799edb8de929c9e98080379f10e2c4 (diff) | |
download | pkgsrc-78f96422e323c00df8cb0c5b8b771753184008ab.tar.gz |
Honor ${PKGMANDIR}
Diffstat (limited to 'lang')
-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" |