pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/objc Honor ${PKGMANDIR}



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8c5334d1b049
branches:  trunk
changeset: 603319:8c5334d1b049
user:      sbd <sbd%pkgsrc.org@localhost>
date:      Fri May 04 06:58:04 2012 +0000

description:
Honor ${PKGMANDIR}

diffstat:

 lang/objc/Makefile |  16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 9b74d6ad2d61 -r 8c5334d1b049 lang/objc/Makefile
--- a/lang/objc/Makefile        Fri May 04 01:49:12 2012 +0000
+++ b/lang/objc/Makefile        Fri May 04 06:58:04 2012 +0000
@@ -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_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 @@
        ${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"



Home | Main Index | Thread Index | Old Index