1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/math/palp/Makefile
2021-04-06 16:31:07 +02:00

52 lines
1.2 KiB
Makefile

# Created by: thierry@pompo.net
PORTNAME= palp
PORTVERSION= 2.20
CATEGORIES= math
MASTER_SITES= http://hep.itp.tuwien.ac.at/~kreuzer/CY/palp/
MAINTAINER= thierry@FreeBSD.org
COMMENT= Package for Analyzing Lattice Polytopes
LICENSE= GPLv3
USES= gmake
MAKEFILE= GNUmakefile
DIMENSIONS= 4 5 6 11
RESDIR= ${WRKDIR}/result
PROGS= class cws mori nef poly
pre-build:
${MV} ${WRKSRC}/Global.h ${WRKSRC}/Global.h-template
${MKDIR} ${RESDIR}
do-build:
.for dim in ${DIMENSIONS}
${SED} "s/^#define[^a-zA-Z]*POLY_Dmax.*/#define POLY_Dmax ${dim}/" \
${WRKSRC}/Global.h-template > ${WRKSRC}/Global.h
(cd ${BUILD_WRKSRC} && ${DO_MAKE_BUILD} ${ALL_TARGET})
. for prog in ${PROGS}
${CP} ${WRKSRC}/${prog}.x ${RESDIR}/${prog}-${dim}d.x
. endfor
(cd ${BUILD_WRKSRC} && ${DO_MAKE_BUILD} cleanall)
.endfor
do-install:
.for dim in ${DIMENSIONS}
. for prog in ${PROGS}
${INSTALL_PROGRAM} ${RESDIR}/${prog}-${dim}d.x ${STAGEDIR}${PREFIX}/bin
. endfor
.endfor
# symlinks for the default dimension
.for prog in ${PROGS}
(cd ${STAGEDIR}${PREFIX}/bin && \
${LN} -sf ${prog}-6d.x ${STAGEDIR}${PREFIX}/bin/${prog}.x)
.endfor
test:
# To be completed
${ECHO_CMD} "24 3 3 4 4 10" | ${RESDIR}/class-6d.x -f -po zbin
.include <bsd.port.mk>