math/nauty: Update 27r1 -> 27r3

PR:		258237
Approved by:	moritz@schmi.tt (maintainer)
This commit is contained in:
Yuri Victorovich 2021-09-20 14:31:13 -07:00
parent 242d3697fd
commit ec6283ede7
12 changed files with 95 additions and 36 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= casadi
DISTVERSION= 3.5.5
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org

View File

@ -1,7 +1,7 @@
PORTNAME= cbc
DISTVERSIONPREFIX= releases/
DISTVERSION= 2.10.5
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= math
PKGNAMEPREFIX= coin-or-

View File

@ -1,7 +1,7 @@
PORTNAME= couenne
DISTVERSIONPREFIX= releases/
DISTVERSION= 0.5.8
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= math
PKGNAMEPREFIX= coin-or-
@ -11,7 +11,6 @@ COMMENT= Convex Over and Under Envelopes for NonliNear Estimation
LICENSE= EPL
LICENSE_FILE= ${WRKSRC}/Couenne/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/lib/libnauty.a:math/nauty
LIB_DEPENDS= libbonmin.so:math/bonmin \
libCbc.so:math/cbc \
libCgl.so:math/cgl \
@ -19,7 +18,9 @@ LIB_DEPENDS= libbonmin.so:math/bonmin \
libcoinasl.so:math/asl \
libCoinUtils.so:math/coinutils \
libipopt.so:math/ipopt \
libopenblas.so:math/openblas
libnauty.so:math/nauty \
libopenblas.so:math/openblas \
libOsi.so:math/osi
USES= blaslapack:netlib fortran gmake libtool pkgconfig
USE_LDCONFIG= yes
@ -29,7 +30,7 @@ GH_ACCOUNT= coin-or
GH_PROJECT= Couenne
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-nauty-incdir=${LOCALBASE}/include/nauty --with-nauty-lib=${LOCALBASE}/lib/libnauty.a
CONFIGURE_ARGS= --with-nauty-incdir=${LOCALBASE}/include/nauty --with-nauty-lib=${LOCALBASE}/lib/libnauty.so # see https://github.com/coin-or/Couenne/issues/58
INSTALL_TARGET= install-strip

View File

@ -1,6 +1,7 @@
PORTNAME= disco
DISTVERSIONPREFIX= releases/
DISTVERSION= 1.0.0-33
PORTREVISION= 1
DISTVERSIONSUFFIX= -g68720be
CATEGORIES= math
PKGNAMEPREFIX= coin-or-

View File

@ -1,6 +1,7 @@
# PORTNAME block
PORTNAME= libnormaliz
DISTVERSION= 3.9.0
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= https://github.com/Normaliz/Normaliz/releases/download/v${PORTVERSION}/
DISTNAME= normaliz-${PORTVERSION}

View File

@ -1,51 +1,67 @@
# Created by: bremner@unb.ca
PORTNAME= nauty
PORTVERSION= 27r1
PORTREVISION= 3
PORTVERSION= 27r3
CATEGORIES= math
MASTER_SITES= https://users.cecs.anu.edu.au/~bdm/nauty/
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= moritz@schmi.tt
COMMENT= Nauty & Traces are programs for computing graph automorphisms
COMMENT= Nauty & Traces are programs for computing graph automorphism
LICENSE= APACHE20
USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-tls # math/libnormaliz requires nauty with tls
CONFIGURE_ARGS= --enable-tls # this makes nauty thread-safe, math/libnormaliz requires nauty with tls
MAKEFILE= makefile
MAKE_ARGS= includedir=${PREFIX}/include/${PORTNAME} # place headers into a dedicated directory
TEST_TARGET= check
CFLAGS+= -fPIC
OPTIONS_DEFINE= DOCS NATIVE
OPTIONS_DEFINE= DOCS
NATIVE_DESC= Build with native optimizations (-march=native, etc)
NATIVE_CONFIGURE_ON= --disable-generic --enable-clz --enable-popcnt
NATIVE_CONFIGURE_OFF= --enable-generic --disable-clz --disable-popcnt
post-build:
@cd ${WRKSRC} && ${CC} ${LDFLAGS} -shared -o libnauty.so \
gtnauty.o gtools.o gutil1.o gutil2.o naugraph.o naugroup.o naurng.o nausparse.o nautil.o nautinv.o \
naututil.o nauty.o nautycliquer.o schreier.o traces.o
post-build: # build shared libraries: based on how static libraries are created
# rebuild .o files with -fPIC
@cd ${WRKSRC} ; \
objects=$$(ls *.o) ; \
${RM} $${objects} ; \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${_MAKE_JOBS} ${MAKE_ARGS} FREEBSD_EXTRA_CFLAGS="-fPIC" $${objects}
# build libraries
cd ${WRKSRC} && ${CC} ${LDFLAGS} -shared -o libnauty.so -Wl,-soname,libnauty.so \
nauty.o nautil.o nausparse.o naugraph.o schreier.o naurng.o traces.o gtools.o naututil.o \
nautinv.o gutil1.o gutil2.o gtnauty.o naugroup.o nautycliquer.o
cd ${WRKSRC} && ${CC} ${LDFLAGS} -shared -o libnauty1.so -Wl,-soname,libnauty1.so \
nauty1.o nautil1.o nausparse.o naugraph1.o schreier.o naurng.o traces.o gtools.o naututil1.o \
nautinv1.o gutil1.o gutil2.o gtnauty.o naugroup.o nautycliquer.o
cd ${WRKSRC} && ${CC} ${LDFLAGS} -shared -o libnautyW.so -Wl,-soname,libnautyW.so \
nautyW.o nautilW.o nausparseW.o naugraphW.o schreierW.o naurng.o traces.o gtoolsW.o naututilW.o \
nautinvW.o gutil1W.o gutil2W.o gtnautyW.o naugroupW.o nautycliquerW.o
cd ${WRKSRC} && ${CC} ${LDFLAGS} -shared -o libnautyW1.so -Wl,-soname,libnautyW1.so \
nautyW1.o nautilW1.o nausparseW.o naugraphW1.o schreierW.o naurng.o traces.o gtoolsW.o naututilW1.o \
nautinvW1.o gutil1W1.o gutil2W1.o gtnautyW1.o naugroupW.o nautycliquerW.o
cd ${WRKSRC} && ${CC} ${LDFLAGS} -shared -o libnautyL.so -Wl,-soname,libnautyL.so \
nautyL.o nautilL.o nausparseL.o naugraphL.o schreierL.o naurng.o traces.o gtoolsL.o naututilL.o \
nautinvL.o gutil1L.o gutil2L.o gtnautyL.o naugroupL.o nautycliquerL.o
cd ${WRKSRC} && ${CC} ${LDFLAGS} -shared -o libnautyL1.so -Wl,-soname,libnautyL1.so \
nautyL1.o nautilL1.o nausparseL.o naugraphL1.o schreierL.o naurng.o traces.o gtoolsL.o naututilL1.o \
nautinvL1.o gutil1L1.o gutil2L1.o gtnautyL1.o naugroupL.o nautycliquerL.o
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/nauty
.for h in nauty.h nautycliquer.h nausparse.h traces.h naugroup.h
${INSTALL_DATA} ${WRKSRC}/${h} ${STAGEDIR}${PREFIX}/include/nauty
.endfor
# Do not use ${INSTALL_LIB} to strip the library!
${INSTALL_DATA} ${WRKSRC}/nauty.a ${STAGEDIR}${PREFIX}/lib/libnauty.a
${INSTALL_LIB} ${WRKSRC}/libnauty.so ${STAGEDIR}${PREFIX}/lib
.for e in \
NRswitchg addedgeg amtog assembleg biplabg catg complg converseg copyg countg \
cubhamg deledgeg delptg directg dreadnaut dretodot dretog edgetransg genbg genbgL \
geng gengL genquarticg genrang genspecialg gentourng gentreeg hamheuristic labelg linegraphg \
listg multig newedgeg pickg planarg ranlabg shortg showg subdivideg twohamg \
underlyingg vcolg watercluster2
${INSTALL_PROGRAM} ${WRKSRC}/${e} ${STAGEDIR}${PREFIX}/bin
post-install:
# install shared libraries
.for l in libnauty.so libnauty1.so libnautyW.so libnautyW1.so libnautyL.so libnautyL1.so
${INSTALL_LIB} ${WRKSRC}/${l} ${STAGEDIR}${PREFIX}/lib
.endfor
# correct the include path in .pc files
@${REINPLACE_CMD} -i '' -e 's|-I$${includedir}|&/${PORTNAME}|' ${STAGEDIR}${PREFIX}/libdata/pkgconfig/*.pc
# strip executables
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1601648114
SHA256 (nauty27r1.tar.gz) = 76ca5d196e402c83a987f90c28ff706bcc5a333bb4a8fbb979a62d3b99c34e77
SIZE (nauty27r1.tar.gz) = 3428473
TIMESTAMP = 1630783130
SHA256 (nauty27r3.tar.gz) = 4f0665b716a53f7a14ea2ae30059f23d064ce3fe4c12c013404ef6e1ee0b88c2
SIZE (nauty27r3.tar.gz) = 1721200

View File

@ -0,0 +1,13 @@
- allow to add additional CFLAGS to build shared libraries
--- makefile.in.orig 2021-09-03 17:45:35 UTC
+++ makefile.in
@@ -3,7 +3,7 @@
SHELL=@SHELL@
CC=@CC@
-CFLAGS=@CFLAGS@ @MORECFLAGS@
+CFLAGS=@CFLAGS@ @MORECFLAGS@ ${FREEBSD_EXTRA_CFLAGS}
SAFECFLAGS=@CFLAGS@
LDFLAGS=@LDFLAGS@ @LIBS@
THREADLIB=@threadlib@

View File

@ -30,6 +30,7 @@ bin/labelg
bin/linegraphg
bin/listg
bin/multig
bin/nbrhoodg
bin/newedgeg
bin/pickg
bin/planarg
@ -41,11 +42,36 @@ bin/twohamg
bin/underlyingg
bin/vcolg
bin/watercluster2
include/nauty/gtools.h
include/nauty/gutils.h
include/nauty/naugroup.h
include/nauty/naugstrings.h
include/nauty/naurng.h
include/nauty/nausparse.h
include/nauty/nautinv.h
include/nauty/naututil.h
include/nauty/nauty.h
include/nauty/nautycliquer.h
include/nauty/planarity.h
include/nauty/quarticirred28.h
include/nauty/schreier.h
include/nauty/traces.h
lib/libnauty.a
lib/libnauty.so
lib/libnauty1.a
lib/libnauty1.so
lib/libnautyL.a
lib/libnautyL.so
lib/libnautyL1.a
lib/libnautyL1.so
lib/libnautyW.a
lib/libnautyW.so
lib/libnautyW1.a
lib/libnautyW1.so
libdata/pkgconfig/nauty.pc
libdata/pkgconfig/nauty1.pc
libdata/pkgconfig/nautyL.pc
libdata/pkgconfig/nautyL1.pc
libdata/pkgconfig/nautyW.pc
libdata/pkgconfig/nautyW1.pc
%%PORTDOCS%%%%DOCSDIR%%/nug27.pdf

View File

@ -1,6 +1,7 @@
PORTNAME= or-tools
DISTVERSIONPREFIX= v
DISTVERSION= 9.0
PORTREVISION= 1
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org

View File

@ -2,7 +2,7 @@
PORTNAME= polymake
DISTVERSION= 4.4
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= https://polymake.org/lib/exe/fetch.php/download/
DISTNAME= ${PORTNAME}-${DISTVERSION}-minimal

View File

@ -2,7 +2,7 @@
PORTNAME= sage
PORTVERSION= 9.2
PORTREVISION= 18
PORTREVISION= 19
CATEGORIES= math
MASTER_SITES= https://mirrors.xmission.com/sage/src/ \
http://mirrors.xmission.com/sage/src/ \