From fb6359eddd21b3d7fed535248a9b977eda346e43 Mon Sep 17 00:00:00 2001 From: miwi Date: Tue, 13 Mar 2007 10:31:41 +0000 Subject: - Improved handling of WITH_TK84_MAN - Fixed pkg-plist if no manpages are installed - Bump PORTREVSION PR: 110256 Submitted by: Martin Matuska (maintainer) --- x11-toolkits/tk84/Makefile | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'x11-toolkits/tk84/Makefile') diff --git a/x11-toolkits/tk84/Makefile b/x11-toolkits/tk84/Makefile index bb756817daac..7d5260548d28 100644 --- a/x11-toolkits/tk84/Makefile +++ b/x11-toolkits/tk84/Makefile @@ -7,7 +7,7 @@ PORTNAME= tk PORTVERSION= 8.4.14 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 2 CATEGORIES= x11-toolkits tk84 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} @@ -69,7 +69,14 @@ CONFLICTS= tk-threads-8.4* RUN_DEPENDS+= wish:${PORTSDIR}/lang/tcl-tk-wrapper .endif -.if !defined(NO_INSTALL_MANPAGES) && !defined(WITHOUT_TK84_MAN) +.if defined(NO_INSTALL_MANPAGES) || !defined(WITH_TK84_MAN) + +PLIST_SUB+= INSTMAN='@comment ' + +.else + +DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} +PLIST_SUB+= INSTMAN='' MAN1= wish.1 MAN3= 3DBorder.3 AddOption.3 BindTable.3 CanvPsY.3 CanvTkwin.3 \ @@ -382,24 +389,23 @@ pre-everything:: pre-configure: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ ${WRKSRC}/configure -.for mp in ${MAN1} ${MAN3} ${MANN} - @${REINPLACE_CMD} -e 's|^.so man.macros|.so ${DATADIR}/man.macros|' \ - ${WRKSRC}/../doc/${mp} -.endfor post-configure: ${REINPLACE_CMD} \ -e 's|${WRKDIRPREFIX}${.CURDIR}|$${WRKDIRPREFIX}${TKBASE}|' \ ${WRKSRC}/tkConfig.sh -.if defined(NO_INSTALL_MANPAGES) || defined(WITHOUT_TK84_MAN) - ${REINPLACE_CMD} -e 's|^MAN_INSTALL_DIR.*$$|MAN_INSTALL_DIR = ${WRKDIR}|' \ - ${WRKSRC}/Makefile -.endif post-install: ${INSTALL_DATA} ${FILESDIR}/pkgIndex.tcl ${PREFIX}/lib/tk${TK_VER}/ ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/../doc/man.macros ${DATADIR} +.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TK84_MAN) +.for mp in ${MAN1} ${MAN3} ${MANN} + @${REINPLACE_CMD} -e 's|^.so man.macros|.so ${DATADIR}/man.macros|' \ + ${WRKSRC}/../doc/${mp} +.endfor + @cd ${WRKSRC} && ${MAKE} install-doc ${MAKE_ENV} +.endif regression-test: build cd ${WRKSRC}; ${MAKE} test -- cgit