1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Support stage

This commit is contained in:
Baptiste Daroussin 2014-03-24 23:17:20 +00:00
parent 7890b49181
commit 362d680e01
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349093
3 changed files with 20 additions and 21 deletions

View File

@ -12,37 +12,22 @@ COMMENT= Dynamic Adaptive Compression Tool
LIB_DEPENDS= libmcrypt.so:${PORTSDIR}/security/libmcrypt \
liblzo2.so:${PORTSDIR}/archivers/lzo2
NO_STAGE= yes
USES= gmake
USES= gmake desthack
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/lib
CPPFLAGS+= ${CXXFLAGS} -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ARGS= TOBUILD="dact libdact.so dact.conf"
MAN1= dact.1
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e "s|prefix = @prefix@|prefix = ${PREFIX}|" \
-e "s|libdir = @libdir@|libdir = ${PREFIX}/lib|" \
${WRKSRC}/Makefile.in
pre-install:
@${RM} -f ${WRKSRC}/libdact.a
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
${CP} -n ${WRKSRC}/dact.conf ${EXAMPLESDIR} || ${TRUE}
.endif
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Docs/dact.txt ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/dact.conf ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Docs/dact.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,13 @@
--- ./Makefile.in.orig 2006-03-25 14:15:04.000000000 +0100
+++ ./Makefile.in 2014-03-25 00:16:17.000000000 +0100
@@ -24,8 +24,8 @@
prefix = @prefix@
exec_prefix = @exec_prefix@
-libdir = @libdir@
-bindir = @bindir@
+libdir = @prefix@/lib
+bindir = @prefix@/bin
sysconfdir = @sysconfdir@
mandir = @mandir@
datadir = @datadir@

View File

@ -1,6 +1,7 @@
bin/dact
etc/dact.conf
lib/libdact.so
man/man1/dact.1.gz
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/dact.txt
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dact.conf