freebsd-ports/archivers/dact/Makefile

49 lines
1.1 KiB
Makefile
Raw Normal View History

# Created by: ijliao
# $FreeBSD$
PORTNAME= dact
2010-06-05 18:20:50 +02:00
PORTVERSION= 0.8.42
CATEGORIES= archivers
MASTER_SITES= http://www.rkeene.org/files/oss/dact/release/
MAINTAINER= miwi@FreeBSD.org
2003-02-20 18:07:10 +01:00
COMMENT= Dynamic Adaptive Compression Tool
LIB_DEPENDS= libmcrypt.so:${PORTSDIR}/security/libmcrypt \
liblzo2.so:${PORTSDIR}/archivers/lzo2
NO_STAGE= yes
USES= gmake
GNU_CONFIGURE= yes
2008-08-21 08:18:49 +02:00
CONFIGURE_ARGS= --libdir=${PREFIX}/lib
CPPFLAGS+= ${CXXFLAGS} -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ARGS= TOBUILD="dact libdact.so dact.conf"
2003-01-27 23:36:08 +01:00
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
.include <bsd.port.mk>