ThirdParty-ASL: initial revision
authormayuresh <mayuresh@acm.org>
Sun, 25 Aug 2024 08:45:58 +0000 (14:15 +0530)
committermayuresh <mayuresh@acm.org>
Sun, 25 Aug 2024 08:46:28 +0000 (14:16 +0530)
ThirdParty-ASL/DESCR [new file with mode: 0644]
ThirdParty-ASL/Makefile [new file with mode: 0644]
ThirdParty-ASL/PLIST [new file with mode: 0644]
ThirdParty-ASL/TODO [new file with mode: 0644]
ThirdParty-ASL/buildlink3.mk [new file with mode: 0644]
ThirdParty-ASL/distinfo [new file with mode: 0644]

diff --git a/ThirdParty-ASL/DESCR b/ThirdParty-ASL/DESCR
new file mode 100644 (file)
index 0000000..57bc19d
--- /dev/null
@@ -0,0 +1,2 @@
+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.
diff --git a/ThirdParty-ASL/Makefile b/ThirdParty-ASL/Makefile
new file mode 100644 (file)
index 0000000..53bdb50
--- /dev/null
@@ -0,0 +1,34 @@
+# $NetBSD$
+
+DISTNAME=      2.0.1
+PKGNAME=       ${GITHUB_PROJECT}-${DISTNAME}
+CATEGORIES=    math
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=coin-or-tools/}
+GITHUB_PROJECT=        ThirdParty-ASL
+GITHUB_TAG=    refs/tags/releases/2.0.1
+DIST_SUBDIR=   ${GITHUB_PROJECT}
+
+MAINTAINER=    pkgsrc-users@NetBSD.org
+HOMEPAGE=      https://github.com/coin-or-tools/ThirdParty-ASL/
+COMMENT=       COIN-OR autotools harness to build AMPL Solver Library
+LICENSE=       epl-v1.0
+
+WRKSRC=                ${WRKDIR}/ThirdParty-ASL-releases-2.0.1
+GNU_CONFIGURE= yes
+USE_LIBTOOL=   yes
+USE_TOOLS+=    wget tar
+USE_LANGUAGES= c
+
+PKGCONFIG_OVERRIDE+=   coinasl.pc.in
+
+SOLVER_MASTER_SITE=    https://coin-or-tools.github.io/ThirdParty-ASL
+SOLVER_DISTFILE=       solvers-64919f75f.tgz
+
+# TODO: The SOLVER_DISTFILE needs to be in distinfo, extracted automatically
+# FreeBSD port math/asl creates a soft link to auto-extracted file. How to do that in pkgsrc?
+# Change USE_TOOLS accordingly
+post-extract:
+       cd ${WRKSRC} && wget --no-check-certificate ${SOLVER_MASTER_SITE}/${SOLVER_DISTFILE} && tar xvzf ${SOLVER_DISTFILE}
+
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/ThirdParty-ASL/PLIST b/ThirdParty-ASL/PLIST
new file mode 100644 (file)
index 0000000..c74137f
--- /dev/null
@@ -0,0 +1,15 @@
+@comment $NetBSD$
+include/coin-or/asl/arith.h
+include/coin-or/asl/asl.h
+include/coin-or/asl/asl_pfg.h
+include/coin-or/asl/asl_pfgh.h
+include/coin-or/asl/funcadd.h
+include/coin-or/asl/getstub.h
+include/coin-or/asl/nlp.h
+include/coin-or/asl/nlp2.h
+include/coin-or/asl/opcode.hd
+include/coin-or/asl/psinfo.h
+include/coin-or/asl/r_opn.hd
+include/coin-or/asl/stdio1.h
+lib/libcoinasl.la
+lib/pkgconfig/coinasl.pc
diff --git a/ThirdParty-ASL/TODO b/ThirdParty-ASL/TODO
new file mode 100644 (file)
index 0000000..fe326ef
--- /dev/null
@@ -0,0 +1 @@
+See a TODO in the Makefile
diff --git a/ThirdParty-ASL/buildlink3.mk b/ThirdParty-ASL/buildlink3.mk
new file mode 100644 (file)
index 0000000..222c5a0
--- /dev/null
@@ -0,0 +1,12 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=       ThirdParty-ASL
+
+.if !defined(THIRDPARTY_ASL_BUILDLINK3_MK)
+THIRDPARTY_ASL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ThirdParty-ASL+= ThirdParty-ASL>=2.0.1
+BUILDLINK_PKGSRCDIR.ThirdParty-ASL?=   ../../wip/ThirdParty-ASL
+.endif # THIRDPARTY_ASL_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -ThirdParty-ASL
diff --git a/ThirdParty-ASL/distinfo b/ThirdParty-ASL/distinfo
new file mode 100644 (file)
index 0000000..f1e1900
--- /dev/null
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (ThirdParty-ASL/2.0.1.tar.gz) = 03adc2f580e4d0bf7710b504b16425f377201c3e42e80530c0bf6bea3e242206
+SHA512 (ThirdParty-ASL/2.0.1.tar.gz) = 37c05677ebc82d56228cd80382c37ae44546fd5681063488bd2cd3c35c2155c2f85e6e8fbcbe41913eeafeb3ac12d2972919893de75affade3016e64f75e034b
+Size (ThirdParty-ASL/2.0.1.tar.gz) = 252385 bytes