freebsd-ports/math/cvc3/Makefile
Vanilla I. Shu 26b131e57b Stagify.
Approved by:	lwhsu@ (maintainer)
2014-07-16 03:25:07 +00:00

34 lines
984 B
Makefile

# Created by: Li-Wen Hsu <lwhsu@lwhsu.org>
# $FreeBSD$
PORTNAME= cvc3
PORTVERSION= 2.4.1
CATEGORIES= math
MASTER_SITES= http://www.cs.nyu.edu/acsys/cvc3/download/${PORTVERSION}/
MAINTAINER= lwhsu@FreeBSD.org
COMMENT= Automatic theorem prover for the SMT problem
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp
CONFIGURE_ARGS= --enable-dynamic \
--with-arith=gmp \
--with-build=optimized \
--with-extra-includes=${LOCALBASE}/include \
--with-extra-libs=${LOCALBASE}/lib
CXXFLAGS+= -fPIC
GNU_CONFIGURE= yes
USES= bison gmake perl5
USE_GCC= any
USE_LDCONFIG= yes
post-patch:
${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' ${WRKSRC}/Makefile.std
${REINPLACE_CMD} -e 's,.*$$(LDCONFIG).*,,' ${WRKSRC}/src/Makefile
${REINPLACE_CMD} -e 's,$$(libdir)/pkgconfig,${PREFIX}/libdata/pkgconfig,' ${WRKSRC}/src/Makefile
post-install:
${INSTALL_PROGRAM} `readlink ${WRKSRC}/bin/cvc3` ${STAGEDIR}${PREFIX}/bin
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcvc3.so.5.0.0
.include <bsd.port.mk>