| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/math/sympol/ |
Upload File : |
PORTNAME= sympol
DISTVERSIONPREFIX= v
DISTVERSION= 0.1.9
PORTREVISION= 5
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= C++ library and tool to work with symmetric polyhedra
WWW= https://www.math.uni-rostock.de/~rehn/software/sympol.html
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/lib/libbliss.a:math/bliss \
permlib>0:math/permlib
LIB_DEPENDS= libboost_program_options.so:devel/boost-libs \
libcddgmp.so:math/cddlib \
libgmp.so:math/gmp
USES= cmake:testing compiler:c++11-lang eigen:3 localbase:ldflags perl5 shebangfix
USE_PERL5= test
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= tremlin
GH_PROJECT= SymPol
SHEBANG_GLOB= *.pl
CMAKE_ARGS= -DBLISS_INCLUDE_DIR=${LOCALBASE}/include/bliss
CMAKE_TESTING_ON= BUILD_TESTS # test 'perltest' fails with 'output format mismatch', see https://github.com/tremlin/SymPol/issues/1
post-install:
@${RM} ${STAGEDIR}${PREFIX}/lib/libcddgmp.so
# fix incorrect subdirectories in #include statements, see https://github.com/tremlin/SymPol/issues/2
@${REINPLACE_CMD} -i '' -e 's|#include "yal/|#include "|' ${STAGEDIR}${PREFIX}/include/sympol/*.h
@${REINPLACE_CMD} -i '' -e 's|#include "\.\./matrix/|#include "|' ${STAGEDIR}${PREFIX}/include/sympol/*.h
@${REINPLACE_CMD} -i '' -e 's|#include "\.\./|#include "|' ${STAGEDIR}${PREFIX}/include/sympol/*.h
pre-test: # correct the build directory path
@${REINPLACE_CMD} -e "s|'\\.\\./build/release'|'${BUILD_WRKSRC}'|" ${WRKSRC}/contrib/test-sympol.pl
.include <bsd.port.mk>