diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2008-05-23 20:51:11 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2008-05-23 20:51:11 +0000 |
commit | 7d01e7820f845b5a8c26ca458faa89599962785e (patch) | |
tree | 7d19627fd6a2b8610277e9e1175b09b0d5d64ea2 /archivers/dact | |
parent | Fix plist if building with NOPORTDOCS. (diff) |
- Respect NOPORTEXAMPLES
Reported by: ionbot
Notes
Notes:
svn path=/head/; revision=213561
Diffstat (limited to 'archivers/dact')
-rw-r--r-- | archivers/dact/Makefile | 14 | ||||
-rw-r--r-- | archivers/dact/pkg-plist | 4 |
2 files changed, 10 insertions, 8 deletions
diff --git a/archivers/dact/Makefile b/archivers/dact/Makefile index 57e4cfd471b3..7637ed94bf21 100644 --- a/archivers/dact/Makefile +++ b/archivers/dact/Makefile @@ -8,6 +8,7 @@ PORTNAME= dact PORTVERSION= 0.8.41 +PORTREVISION= 1 CATEGORIES= archivers MASTER_SITES= http://www.rkeene.org/files/oss/dact/release/ @@ -23,23 +24,24 @@ CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \ --libdir=${PREFIX}/lib CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" -MAKE_ARGS= CONF=${EXAMPLESDIR}/dact.conf \ - TOBUILD="dact libdact.so dact.conf" +MAKE_ARGS= TOBUILD="dact libdact.so dact.conf" MAN1= dact.1 USE_LDCONFIG= yes post-patch: @${REINPLACE_CMD} -e "s|prefix = @prefix@|prefix = ${PREFIX}|" \ - -e "s|libdir = @libdir@|libdir = ${PREFIX}/lib|" \ - ${WRKSRC}/Makefile.in + -e "s|libdir = @libdir@|libdir = ${PREFIX}/lib|" \ + ${WRKSRC}/Makefile.in pre-install: - @${MKDIR} ${EXAMPLESDIR} @${RM} -f ${WRKSRC}/libdact.a post-install: - @${CP} -n ${EXAMPLESDIR}/dact.conf ${PREFIX}/etc +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + ${CP} -n ${WRKSRC}/dact.conf ${EXAMPLESDIR} +.endif .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/Docs/dact.txt ${DOCSDIR} diff --git a/archivers/dact/pkg-plist b/archivers/dact/pkg-plist index de8ac031ce29..12c230f682bd 100644 --- a/archivers/dact/pkg-plist +++ b/archivers/dact/pkg-plist @@ -3,7 +3,7 @@ etc/dact.conf lib/libdact.so %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/dact.txt -%%PORTDOCS%%%%EXAMPLESDIR%%/dact.conf -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dact.conf +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm %%DATADIR%% |