mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
5ac18767d1
changed cp to exit with a non-zero exit code if the file exists and is not overwritten thus causing ports to fail installing when e.g. trying to cp .default -> .conf files that already exist. We just ignore the error and continue, as we used to. Reported by: jaset Approved by: portmgr (bapt)
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
# ex:ts=8
|
|
# New ports collection makefile for: dact
|
|
# Date created: May 2, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dact
|
|
PORTVERSION= 0.8.42
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= http://www.rkeene.org/files/oss/dact/release/
|
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
|
COMMENT= Dynamic Adaptive Compression Tool
|
|
|
|
LIB_DEPENDS= mcrypt.8:${PORTSDIR}/security/libmcrypt \
|
|
lzo2.2:${PORTSDIR}/archivers/lzo2
|
|
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
MAKE_JOBS_SAFE= 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
|
|
|
|
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 !defined(NOPORTEXAMPLES)
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${CP} -n ${WRKSRC}/dact.conf ${EXAMPLESDIR} || ${TRUE}
|
|
.endif
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/Docs/dact.txt ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|