diff options
author | miwi <miwi@FreeBSD.org> | 2008-05-24 04:51:11 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-05-24 04:51:11 +0800 |
commit | f18b07cf6729bb251748d4a4c4132db839f7ca53 (patch) | |
tree | e934c24d5a7e535cf3876bac485010851c92be59 /archivers/dact | |
parent | 847f32094fc7d4e61e5f8894437a0a52f1dec58a (diff) | |
download | freebsd-ports-gnome-f18b07cf6729bb251748d4a4c4132db839f7ca53.tar.gz freebsd-ports-gnome-f18b07cf6729bb251748d4a4c4132db839f7ca53.tar.zst freebsd-ports-gnome-f18b07cf6729bb251748d4a4c4132db839f7ca53.zip |
- Respect NOPORTEXAMPLES
Reported by: ionbot
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%% |