1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Respect NOPORTEXAMPLES

Reported by:	ionbot
This commit is contained in:
Martin Wilke 2008-05-23 20:51:11 +00:00
parent fe62d801ce
commit 7d01e7820f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=213561
2 changed files with 10 additions and 8 deletions

View File

@ -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}

View File

@ -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%%