diff options
author | garga <garga@FreeBSD.org> | 2009-04-14 21:37:15 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2009-04-14 21:37:15 +0800 |
commit | 1192e176d9262f951f8f5ee5e35c51895066c596 (patch) | |
tree | a1af6d98fbf126ff3aedbc23a296f2d402142687 /net-p2p/teknap/Makefile | |
parent | 647523f39548822563e277a5ff2db6ba2086702d (diff) | |
download | freebsd-ports-gnome-1192e176d9262f951f8f5ee5e35c51895066c596.tar.gz freebsd-ports-gnome-1192e176d9262f951f8f5ee5e35c51895066c596.tar.zst freebsd-ports-gnome-1192e176d9262f951f8f5ee5e35c51895066c596.zip |
- Install all docs under ${DOCSDIR}
- Use PORTDOCS
- Use %%DOCSDIR%% on pkg-message instead of %%PREFIX%%
- Remove 2 lines left pkg-plist in favor of PLIST_FILES
- Unbreak PLIST when NOPORTDOCS is set
Reported by: QAT
Approved by: portmgr (erwin)
Diffstat (limited to 'net-p2p/teknap/Makefile')
-rw-r--r-- | net-p2p/teknap/Makefile | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/net-p2p/teknap/Makefile b/net-p2p/teknap/Makefile index c1e3a2cc914d..f4828666df05 100644 --- a/net-p2p/teknap/Makefile +++ b/net-p2p/teknap/Makefile @@ -7,7 +7,7 @@ PORTNAME= TekNap PORTVERSION= 1.3.g -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net-p2p MASTER_SITES= http://got.net/~brian/teknap/ \ ftp://ftp.arnes.si/packages2/OpenBSD/distfiles/ @@ -25,11 +25,14 @@ BUILD_DEPENDS= xmms:${PORTSDIR}/multimedia/xmms WRKSRC= ${WRKDIR}/TekNap -PLIST_SUB+= PORTVERSION="${PORTVERSION}" +PLIST_FILES= bin/TekNap \ + bin/TekNap-1.3g USE_GMAKE= yes WANT_GNOME= yes GNU_CONFIGURE= yes +DOCSDIR= ${PREFIX}/share/doc/TekNap +PORTDOCS= * CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib" @@ -60,14 +63,18 @@ pre-extract: pre-configure: @${REINPLACE_CMD} -e "s:-lc_r:${PTHREAD_LIBS}:g" ${WRKSRC}/configure +post-patch: + @${REINPLACE_CMD} -e '/mkinstalldirs/ s,$$(HELPDIR) $$(NAPLIB),,g' \ + ${WRKSRC}/Makefile.in + post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/TekNap + ${MKDIR} ${DOCSDIR}/help ${TAR} --directory ${WRKSRC}/teknap-help -cf - . | \ - ${TAR} --directory ${PREFIX}/share/TekNap/help -xf - - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/TekNap + ${TAR} --directory ${DOCSDIR}/help -xf - + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} @${ECHO} - @${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g" + @${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%DOCSDIR%%:${DOCSDIR}:g" @${ECHO} .endif |