summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2015-12-08 17:15:01 +0000
committerjoerg <joerg@pkgsrc.org>2015-12-08 17:15:01 +0000
commitc4c2eaf20c1c29203f628215909f0a7e06aa4499 (patch)
tree712586fca7eb2771b6fae1f427c5dbba42ce53f5 /math
parentce6f3b87e9afbe53f54fba3afe678aae87ffe948 (diff)
downloadpkgsrc-c4c2eaf20c1c29203f628215909f0a7e06aa4499.tar.gz
Link shared library against libdl, when necessary. It's an unnecessary
imeplementation detail for consumers. Bump revision.
Diffstat (limited to 'math')
-rw-r--r--math/lp_solve/Makefile3
-rw-r--r--math/lp_solve/distinfo3
-rw-r--r--math/lp_solve/patches/patch-lpsolve55_ccc13
3 files changed, 17 insertions, 2 deletions
diff --git a/math/lp_solve/Makefile b/math/lp_solve/Makefile
index 47825c9fc47..85203812654 100644
--- a/math/lp_solve/Makefile
+++ b/math/lp_solve/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.8 2015/12/07 17:40:27 joerg Exp $
+# $NetBSD: Makefile,v 1.9 2015/12/08 17:15:01 joerg Exp $
#
DISTNAME= lp_solve_5.5.2.0_source
PKGNAME= ${DISTNAME:S/_source//:S/_5/-5/}
+PKGREVISION= 1
CATEGORIES= math devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lpsolve/}
diff --git a/math/lp_solve/distinfo b/math/lp_solve/distinfo
index 0b4f4eac775..306c847e785 100644
--- a/math/lp_solve/distinfo
+++ b/math/lp_solve/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2015/12/07 17:40:27 joerg Exp $
+$NetBSD: distinfo,v 1.4 2015/12/08 17:15:01 joerg Exp $
SHA1 (lp_solve_5.5.2.0_source.tar.gz) = e2830053cf079839b9ce21662cbc886ac6d31c80
RMD160 (lp_solve_5.5.2.0_source.tar.gz) = 23a69c71062747ddf4cbc57120cd7db5f9378ac2
@@ -7,3 +7,4 @@ SHA1 (patch-aa) = a77ec29e056252b3b82c1a1acdd463b5ff7f6f6b
SHA1 (patch-demo_ccc) = 6262975fdcc61e94390060425a79e8bbc5f4554b
SHA1 (patch-lp__solve_ccc) = b70bbaedc56c04e3d2dad14050c0278142f382bd
SHA1 (patch-lp__utils.c) = b0774bd7b323f12c97c7bc78c26f64a75c841f34
+SHA1 (patch-lpsolve55_ccc) = ce334b85675ca0018cd19bcc828bb8e2cad38829
diff --git a/math/lp_solve/patches/patch-lpsolve55_ccc b/math/lp_solve/patches/patch-lpsolve55_ccc
new file mode 100644
index 00000000000..ba053ab72d6
--- /dev/null
+++ b/math/lp_solve/patches/patch-lpsolve55_ccc
@@ -0,0 +1,13 @@
+$NetBSD: patch-lpsolve55_ccc,v 1.1 2015/12/08 17:15:01 joerg Exp $
+
+--- lpsolve55/ccc.orig 2009-03-25 00:27:18.000000000 +0000
++++ lpsolve55/ccc
+@@ -44,7 +44,7 @@ ranlib bin/$PLATFORM/liblpsolve55.a
+ if [ "$so" != "" ]
+ then
+ $c -fpic -s -c -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -I. $opts $NOISNAN -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src
+- $c -shared -Wl,-Bsymbolic -Wl,-soname,liblpsolve55.so -o bin/$PLATFORM/liblpsolve55.so `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'` -lc -lm -ldl
++ $c -shared -Wl,-Bsymbolic -Wl,-soname,liblpsolve55.so -o bin/$PLATFORM/liblpsolve55.so `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'` -lc -lm $DL_LDADD
+ fi
+
+ rm *.o 2>/dev/null