diff --git a/math/palp/Makefile b/math/palp/Makefile index ad94c555b671..b00d7a5b72a8 100644 --- a/math/palp/Makefile +++ b/math/palp/Makefile @@ -1,50 +1,29 @@ PORTNAME= palp -PORTVERSION= 2.20 +PORTVERSION= 2.21 CATEGORIES= math MASTER_SITES= http://hep.itp.tuwien.ac.at/~kreuzer/CY/palp/ MAINTAINER= thierry@FreeBSD.org COMMENT= Package for Analyzing Lattice Polytopes WWW= http://hep.itp.tuwien.ac.at/~kreuzer/CY/CYpalp.html LICENSE= GPLv3 USES= gmake MAKEFILE= GNUmakefile +ALL_TARGET= all-dims +TEST_TARGET= check 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) + ${INSTALL_PROGRAM} ${WRKSRC}/${prog}.x ${STAGEDIR}${PREFIX}/bin +. for dim in ${DIMENSIONS} + ${INSTALL_PROGRAM} ${WRKSRC}/${prog}-${dim}d.x ${STAGEDIR}${PREFIX}/bin +. endfor .endfor -test: - # To be completed - ${ECHO_CMD} "24 3 3 4 4 10" | ${RESDIR}/class-6d.x -f -po zbin - .include diff --git a/math/palp/distinfo b/math/palp/distinfo index 4be521898d8a..cd6d6d8e4072 100644 --- a/math/palp/distinfo +++ b/math/palp/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1603211915 -SHA256 (palp-2.20.tar.gz) = 723e89e78b2d3d94a720dd770c11b932b3e6b56f8a49e0bf3621c776f7a02ce0 -SIZE (palp-2.20.tar.gz) = 237664 +TIMESTAMP = 1710269167 +SHA256 (palp-2.21.tar.gz) = 7e4a7bf219998a844c0bcce0a176e49d0743cb4b505a0e195329bf2ec196ddd7 +SIZE (palp-2.21.tar.gz) = 262681 diff --git a/math/palp/pkg-descr b/math/palp/pkg-descr index b7c48192e160..63166a6bd9ea 100644 --- a/math/palp/pkg-descr +++ b/math/palp/pkg-descr @@ -1,16 +1,18 @@ A Package for Analyzing Lattice Polytopes (PALP) is a set of C programs for calculations with lattice polytopes and applications to toric geometry. It contains routines for vertex and facet enumeration, computation of incidences and symmetries, as well as completion of the set of lattice points in the convex hull of a given set of points. In addition, there are procedures specialised to reflexive polytopes such as the enumeration of reflexive subpolytopes, and applications to toric geometry and string theory, like the computation of Hodge data and fibration structures for toric Calabi-Yau varieties. The package is well tested and optimised in speed as it was used for time consuming tasks such as the classification of reflexive polyhedra in 4 dimensions and the creation and manipulation of very large lists of 5-dimensional polyhedra. While originally intended for low-dimensional applications, the algorithms work in any dimension and our key routine for vertex and facet enumeration compares well with existing packages. + +See also .