# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # libnormaliz # libnormaliz/pkg-help # libnormaliz/Makefile # libnormaliz/pkg-plist # libnormaliz/distinfo # libnormaliz/pkg-descr # libnormaliz/files # libnormaliz/files/patch-source_libnormaliz_Makefile.classic # libnormaliz/files/patch-source_libnormaliz_nmz__integral.cpp # echo c - libnormaliz mkdir -p libnormaliz > /dev/null 2>&1 echo x - libnormaliz/pkg-help sed 's/^X//' >libnormaliz/pkg-help << '1f1555d1ba513fe20f61037d7f905540' XLibnormaliz has an optional dependency on CoCoALib, which in turns has Xan optional dependency on libnormaliz. You can use flavors to decide Xhow to solve the (optional) circular dependency: X- if you set FLAVOR=cocoa (default) then libnormaliz will not be Xlinked with CoCoALib, even if you set the appropriate option; X- if you set FLAVOR=normaliz then libnormaliz will be linked with the Xinstalled flavor of CoCoALib or with a "normaliz" flavor of XCoCoALib - i.e. with a version that is not linked to libnormaliz -, Xthat will be built as a dependency (if you select the appropriate Xoption). X XIf you want you can solve the cicular dependency with both libraries Xlinked to each other by using either of the following solutions: X- install libnormaliz@cocoa and cocoalib@cocoa (in this order), then Xremove libnormaliz@cocoa and install libnormaliz@normaliz; X- install cocoalib@normaliz and libnormaliz@normaliz (in this order), then Xremove cocoalib@normaliz and install cocoalib@cocoa. 1f1555d1ba513fe20f61037d7f905540 echo x - libnormaliz/Makefile sed 's/^X//' >libnormaliz/Makefile << 'a7b3e3a83f7a55f9e56417dacf99f7a2' X# Created by Lorenzo Salvadore X# $FreeBSD$ X XPORTNAME= libnormaliz XDISTVERSIONPREFIX= v XDISTVERSION= 3.6.3 XCATEGORIES= math X XMAINTAINER= phascolarctos@protonmail.ch XCOMMENT= Computations in affin monoids, vector configurations etc X XLICENSE= GPLv3+ XLICENSE_FILE= ${WRKSRC}/COPYING X XBUILD_DEPENDS= ${LOCALBASE}/include/boost/dynamic_bitset.hpp:devel/boost-libs \ X ${LOCALBASE}/include/gmpxx.h:math/gmp X XFLAVORS= cocoa normaliz XFLAVOR?= ${FLAVORS:[1]} Xcocoa_PKGNAMESUFFIX= -cocoa Xnormaliz_PKGNAMESUFFIX= -normaliz X XUSES= gmake XUSE_GITHUB= yes X XGH_ACCOUNT= Normaliz XGH_PROJECT= Normaliz X XOPTIONS_DEFINE= COCOA DOCS FLINT OPENMP XCOCOA_DESC= Link with libcocoa.a (works only with FLAVOR=normaliz) XFLINT_DESC= Link with libflint.a X.if ${FLAVOR} == normaliz XCOCOA_BUILD_DEPENDS= ${LOCALBASE}/lib/libcocoa.a:math/cocoalib@normaliz XCOCOA_CXXFLAGS= -DNMZ_COCOA -DCoCoA_THREADSAFE_HACK XCOCOA_LDFLAGS= ${LOCALBASE}/lib -lcocoa X.endif XFLINT_BUILD_DEPENDS= ${LOCALBASE}/lib/libflint.so:math/flint2 XFLINT_CXXFLAGS= -DNMZ_FLINT XFLINT_LDFLAGS= -L ${LOCALBASE}/lib -lflint -lmpfr XOPENMP_BUILD_DEPENDS= ${LOCALBASE}/lib/libomp.so:devel/openmp XOPENMP_CXXFLAGS= -fopenmp X XBUILD_WRKSRC= ${WRKSRC}/source/libnormaliz XINSTALL_WRKSRC= ${WRKSRC}/source/libnormaliz X XCXXFLAGS+= -I ${LOCALBASE}/include XMAKEFILE= Makefile.classic X XHEADERSDIR= ${PREFIX}/include/libnormaliz X Xdo-install: X ${MKDIR} ${STAGEDIR}${HEADERSDIR} X ${INSTALL_DATA} ${INSTALL_WRKSRC}/libnormaliz.a ${STAGEDIR}${PREFIX}/lib X for x in cone.h cone_property.h convert.h general.h HilbertSeries.h integer.h libnormaliz.h map_operations.h matrix.h my_omp.h normaliz_exception.h sublattice_representation.h vector_operations.h version.h nmz_integrate.h; do ${INSTALL_DATA} ${INSTALL_WRKSRC}/$$x ${STAGEDIR}${HEADERSDIR}; done X Xpost-install-DOCS-on: X ${MKDIR} ${STAGEDIR}${DOCSDIR} X ${INSTALL_MAN} ${WRKSRC}/doc/Normaliz.pdf ${STAGEDIR}${DOCSDIR} X X.include a7b3e3a83f7a55f9e56417dacf99f7a2 echo x - libnormaliz/pkg-plist sed 's/^X//' >libnormaliz/pkg-plist << '528f91314a568ed6ed59dec773a48aa8' X%%PORTDOCS%%%%DOCSDIR%%/Normaliz.pdf Xinclude/libnormaliz/HilbertSeries.h Xinclude/libnormaliz/cone.h Xinclude/libnormaliz/cone_property.h Xinclude/libnormaliz/convert.h Xinclude/libnormaliz/general.h Xinclude/libnormaliz/integer.h Xinclude/libnormaliz/libnormaliz.h Xinclude/libnormaliz/map_operations.h Xinclude/libnormaliz/matrix.h Xinclude/libnormaliz/my_omp.h Xinclude/libnormaliz/nmz_integrate.h Xinclude/libnormaliz/normaliz_exception.h Xinclude/libnormaliz/sublattice_representation.h Xinclude/libnormaliz/vector_operations.h Xinclude/libnormaliz/version.h Xlib/libnormaliz.a 528f91314a568ed6ed59dec773a48aa8 echo x - libnormaliz/distinfo sed 's/^X//' >libnormaliz/distinfo << 'a11da464be42ea896e633c422ce17a23' XTIMESTAMP = 1536314303 XSHA256 (Normaliz-Normaliz-v3.6.3_GH0.tar.gz) = 1c3dad1f5256c92dde21b0eea1423afe95d98863c90f5e4cb429ffa71ba57f54 XSIZE (Normaliz-Normaliz-v3.6.3_GH0.tar.gz) = 9923720 a11da464be42ea896e633c422ce17a23 echo x - libnormaliz/pkg-descr sed 's/^X//' >libnormaliz/pkg-descr << 'c9ddaf45fd074be18b86fd5f114d2148' XNormaliz is an open source tool for computations in affine monoids, Xvector configurations, lattice polytopes, and rational cones. X XComputation goals: X- convex hulls and dual cones; X- conversion from generators to constraints and vice versa; X- projections of cones and polyhedra; X- triangulations, disjoint decompositions and Stanley decompositions; X- Hilbert basis of rational, not necessarily pointed cones; X- normalization of affine monoids; X- lattice points of rational polytopes and (unbounded) polyhedra; X- Euclidean and lattice normalized volumes of polytopes; X- Hilbert (or Ehrhart) series and (quasi) polynomials under Z-gradings X(for example, for rational polytopes); X- generalized (or weighted) Ehrhart series and Lebesgue integrals of Xpolynomials over rational polytopes. X XThis port provides only the static library libnormaliz.a and related Xfiles (headers, documentation). For the executable Normaliz see Xmath/normaliz. X XWWW: https://www.normaliz.uni-osnabrueck.de c9ddaf45fd074be18b86fd5f114d2148 echo c - libnormaliz/files mkdir -p libnormaliz/files > /dev/null 2>&1 echo x - libnormaliz/files/patch-source_libnormaliz_Makefile.classic sed 's/^X//' >libnormaliz/files/patch-source_libnormaliz_Makefile.classic << 'd901e76b5d88b6db791d19a4005a91f4' X--- source/libnormaliz/Makefile.classic.orig 2018-08-21 13:25:10 UTC X+++ source/libnormaliz/Makefile.classic X@@ -1,7 +1,6 @@ X ## X ## Makefile for libnormaliz X ## X-include ../Makefile.configuration X X INSTALLHDRS = cone.h cone_property.h convert.h general.h HilbertSeries.h integer.h libnormaliz.h map_operations.h matrix.h my_omp.h normaliz_exception.h sublattice_representation.h vector_operations.h version.h nmz_integrate.h X d901e76b5d88b6db791d19a4005a91f4 echo x - libnormaliz/files/patch-source_libnormaliz_nmz__integral.cpp sed 's/^X//' >libnormaliz/files/patch-source_libnormaliz_nmz__integral.cpp << '02de7acee0e5a515b77bcf7583e922e6' X--- source/libnormaliz/nmz_integral.cpp.orig 2018-09-25 05:50:07 UTC X+++ source/libnormaliz/nmz_integral.cpp X@@ -403,7 +403,7 @@ try{ X vector test_grading=C.getSublattice().to_sublattice_dual_no_div(C.getGrading()); X Integer corr_factor=v_gcd(test_grading); X mpz_class corr_mpz=convertTo(corr_factor); X- I*=BigInt(corr_mpz.get_mpz_t()); X+ I*=BigIntFromMPZ(corr_mpz.get_mpz_t()); X X string result="Integral"; X if(do_virt_mult) 02de7acee0e5a515b77bcf7583e922e6 exit