aboutsummaryrefslogtreecommitdiff
path: root/math/dcdflib
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2008-11-18 17:09:37 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2008-11-18 17:09:37 +0000
commit6dd0f82ce758cc55e9f108b47e40c845584b682b (patch)
treec139f87dd0a9135d316ebebe0fd6de695e5a39b7 /math/dcdflib
parent1bcca1ace32973377c4ac0b53b50d767a7f65043 (diff)
downloadports-6dd0f82ce758cc55e9f108b47e40c845584b682b.tar.gz
ports-6dd0f82ce758cc55e9f108b47e40c845584b682b.zip
Notes
Diffstat (limited to 'math/dcdflib')
-rw-r--r--math/dcdflib/Makefile9
-rw-r--r--math/dcdflib/pkg-plist8
2 files changed, 10 insertions, 7 deletions
diff --git a/math/dcdflib/Makefile b/math/dcdflib/Makefile
index 47a5d518a494..d2c0f6d3b2ec 100644
--- a/math/dcdflib/Makefile
+++ b/math/dcdflib/Makefile
@@ -7,6 +7,7 @@
PORTNAME= dcdflib.c
PORTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= ftp://odin.mda.uth.tmc.edu/pub/source/
@@ -17,15 +18,17 @@ WRKSRC= ${WRKDIR}/dcdflib.c/src
USE_LDCONFIG= yes
+DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:S/.c//}
+
post-extract:
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/dcdflib
- @${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.chs ${PREFIX}/share/doc/dcdflib
- @${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.fdoc ${PREFIX}/share/doc/dcdflib
- @${INSTALL_DATA} ${WRKSRC}/../README ${PREFIX}/share/doc/dcdflib
+ @${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.chs ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.fdoc ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/../README ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/math/dcdflib/pkg-plist b/math/dcdflib/pkg-plist
index 98b6e6d58cbb..35c1d167fc55 100644
--- a/math/dcdflib/pkg-plist
+++ b/math/dcdflib/pkg-plist
@@ -3,7 +3,7 @@ lib/libdcdflib.a
lib/libdcdflib_p.a
lib/libdcdflib.so
lib/libdcdflib.so.1
-share/doc/dcdflib/README
-share/doc/dcdflib/dcdflib.chs
-share/doc/dcdflib/dcdflib.fdoc
-@dirrm share/doc/dcdflib
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/dcdflib.chs
+%%PORTDOCS%%%%DOCSDIR%%/dcdflib.fdoc
+%%PORTDOCS%%@dirrm %%DOCSDIR%%