Skip to content

Commit

Permalink
math/palp: upgrade to 2.21
Browse files Browse the repository at this point in the history
Use the new target all-dims to simplify Makefile.
  • Loading branch information
thierry-FreeBSD committed Mar 12, 2024
1 parent 438d1dd commit 6fe53f2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 31 deletions.
35 changes: 7 additions & 28 deletions math/palp/Makefile
@@ -1,5 +1,5 @@
PORTNAME= palp
PORTVERSION= 2.20
PORTVERSION= 2.21
CATEGORIES= math
MASTER_SITES= http://hep.itp.tuwien.ac.at/~kreuzer/CY/palp/

Expand All @@ -11,40 +11,19 @@ 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 <bsd.port.mk>
6 changes: 3 additions & 3 deletions 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
2 changes: 2 additions & 0 deletions math/palp/pkg-descr
Expand Up @@ -14,3 +14,5 @@ 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 <https://gitlab.com/stringstuwien/PALP/>.

0 comments on commit 6fe53f2

Please sign in to comment.