openbsd-ports/math/lrs/Makefile

51 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.2 2011/11/07 12:16:22 edd Exp $
COMMENT = solve vertex enumeration and convex hull problems
DISTNAME = lrslib-042c
PKGNAME = lrs-042
REVISION = 0
CATEGORIES = math
HOMEPAGE = http://cgm.cs.mcgill.ca/~avis/C/lrs.html
MAINTAINER = Edd Barrett <edd@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c gmp
MASTER_SITES = http://cgm.cs.mcgill.ca/~avis/C/lrslib/
MAKE_FILE = makefile
MAKE_FLAGS = CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
ALL_TARGET = gmp # build with arbitrary precision numbers
LIB_DEPENDS = devel/gmp
BINARIES = 2gnash buffer gfourier glrs gnash gredund
do-install:
.for i in ${BINARIES}
${INSTALL_PROGRAM} ${WRKBUILD}/${i} ${PREFIX}/bin/
.endfor
# A simple test to check it works
REGRESS_FILES = test.ine expected_outcome.ine openbsd_regress.sh
do-regress:
.for i in ${REGRESS_FILES}
cp ${FILESDIR}/${i} ${WRKBUILD}
.endfor
cd ${WRKBUILD} && sh openbsd_regress.sh
# resolve conflict with www/gnash and misc/buffer
post-install:
mv ${PREFIX}/bin/gnash ${PREFIX}/bin/lrsgnash
mv ${PREFIX}/bin/buffer ${PREFIX}/bin/lrsbuffer
.include <bsd.port.mk>