aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-05-03 19:24:37 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2021-05-03 19:30:18 +0000
commit8d90630db62de687b68f042d5bab78f23ea5b062 (patch)
tree47d9a74c0ba007dea023345c330dd61558f4d62f
parent23b639c49a32e3047f8906eb5569b24af0a2d3cb (diff)
New port: math/asl: COIN-OR autotools harness to build AMPL Solver Library
-rw-r--r--math/Makefile1
-rw-r--r--math/asl/Makefile33
-rw-r--r--math/asl/distinfo5
-rw-r--r--math/asl/pkg-descr4
-rw-r--r--math/asl/pkg-plist16
5 files changed, 59 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index c8a77c380365..1ad2d0db85e0 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -150,6 +150,7 @@
SUBDIR += arpack++
SUBDIR += arpack-ng
SUBDIR += ascent
+ SUBDIR += asl
SUBDIR += aspcud
SUBDIR += asymptote
SUBDIR += atlas
diff --git a/math/asl/Makefile b/math/asl/Makefile
new file mode 100644
index 000000000000..21fc5597d253
--- /dev/null
+++ b/math/asl/Makefile
@@ -0,0 +1,33 @@
+PORTNAME= asl
+DISTVERSIONPREFIX= releases/
+DISTVERSION= 1.4.3
+CATEGORIES= math
+MASTER_SITES= https://coin-or-tools.github.io/ThirdParty-ASL/:solvers
+PKGNAMEPREFIX= coin-or-
+DISTFILES= solvers-64919f75f.tgz:solvers
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= COIN-OR autotools harness to build AMPL Solver Library
+
+LICENSE= EPL
+
+USES= gmake libtool pkgconfig
+USE_LDCONFIG= yes
+
+USE_GITHUB= yes
+GH_ACCOUNT= coin-or-tools
+GH_PROJECT= ThirdParty-ASL
+
+GNU_CONFIGURE= yes
+
+BINARY_ALIAS= make=${GMAKE}
+
+post-extract:
+ @cd ${WRKSRC} && ${LN} -s ../solvers .
+
+post-patch: # patch the side project
+ @cd ${WRKSRC} && \
+ (${ECHO} "#include <sys/stat.h>" && cat solvers/funcadd1.c) > solvers/funcadd1.c.new && \
+ ${MV} solvers/funcadd1.c.new solvers/funcadd1.c
+
+.include <bsd.port.mk>
diff --git a/math/asl/distinfo b/math/asl/distinfo
new file mode 100644
index 000000000000..5abe1edf1624
--- /dev/null
+++ b/math/asl/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1620069173
+SHA256 (solvers-64919f75f.tgz) = e212926d1d797701adc901ef18eaab6b15edd13f9281dd8c9266e3cdaf8c2dd3
+SIZE (solvers-64919f75f.tgz) = 360043
+SHA256 (coin-or-tools-ThirdParty-ASL-releases-1.4.3_GH0.tar.gz) = 0a4cfa7c6c5df72d8e1c4c3ce74633421f807115a679e85cb5569c41df9a9aaf
+SIZE (coin-or-tools-ThirdParty-ASL-releases-1.4.3_GH0.tar.gz) = 254263
diff --git a/math/asl/pkg-descr b/math/asl/pkg-descr
new file mode 100644
index 000000000000..a233aa1012dc
--- /dev/null
+++ b/math/asl/pkg-descr
@@ -0,0 +1,4 @@
+This is an autotools-based build system to build and install the Ampl Solver
+Library (ASL) as it is used by some COIN-OR projects.
+
+WWW: https://github.com/coin-or-tools/ThirdParty-ASL
diff --git a/math/asl/pkg-plist b/math/asl/pkg-plist
new file mode 100644
index 000000000000..132ba137124d
--- /dev/null
+++ b/math/asl/pkg-plist
@@ -0,0 +1,16 @@
+include/coin/ThirdParty/arith.h
+include/coin/ThirdParty/asl.h
+include/coin/ThirdParty/asl_pfg.h
+include/coin/ThirdParty/asl_pfgh.h
+include/coin/ThirdParty/funcadd.h
+include/coin/ThirdParty/getstub.h
+include/coin/ThirdParty/nlp.h
+include/coin/ThirdParty/nlp2.h
+include/coin/ThirdParty/opcode.hd
+include/coin/ThirdParty/psinfo.h
+include/coin/ThirdParty/r_opn.hd
+include/coin/ThirdParty/stdio1.h
+lib/libcoinasl.so
+lib/libcoinasl.so.1
+lib/libcoinasl.so.1.4.3
+libdata/pkgconfig/coinasl.pc