diff options
author | Hunter Sezen <orbea@fredslev.dk> | 2018-06-25 19:55:27 +0100 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2018-06-25 20:07:03 +0100 |
commit | 38a69179546d314cac3427a01aae69281b29a519 (patch) | |
tree | 353f0b612e21b63e3281378a5525114c0fa13569 /libraries | |
parent | 252cd359784c4b635900876f40f1dd8350df4de1 (diff) | |
download | slackbuilds-38a69179546d314cac3427a01aae69281b29a519.tar.gz |
libraries/CoinMP: Fixed building in sandbox.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/CoinMP/CoinMP-build.diff | 154 | ||||
-rw-r--r-- | libraries/CoinMP/CoinMP.SlackBuild | 11 | ||||
-rw-r--r-- | libraries/CoinMP/destdir.diff | 16 | ||||
-rw-r--r-- | libraries/CoinMP/destdir.diff.gz | bin | 264 -> 0 bytes |
4 files changed, 177 insertions, 4 deletions
diff --git a/libraries/CoinMP/CoinMP-build.diff b/libraries/CoinMP/CoinMP-build.diff new file mode 100644 index 0000000000..14f38760e5 --- /dev/null +++ b/libraries/CoinMP/CoinMP-build.diff @@ -0,0 +1,154 @@ +diff -ur CoinMP-1.8.3.orig/Cbc/Makefile.am CoinMP-1.8.3/Cbc/Makefile.am +--- CoinMP-1.8.3.orig/Cbc/Makefile.am 2015-02-07 11:56:19.000000000 -0800 ++++ CoinMP-1.8.3/Cbc/Makefile.am 2018-06-25 08:31:55.590319068 -0700 +@@ -158,4 +158,4 @@ + # Files that are generated and should be cleaned with make distclean + DISTCLEANFILES = + +-include BuildTools/Makemain.inc ++include ../BuildTools/Makemain.inc +diff -ur CoinMP-1.8.3.orig/Cbc/configure.ac CoinMP-1.8.3/Cbc/configure.ac +--- CoinMP-1.8.3.orig/Cbc/configure.ac 2015-09-22 09:20:00.000000000 -0700 ++++ CoinMP-1.8.3/Cbc/configure.ac 2018-06-25 08:24:16.591742973 -0700 +@@ -13,6 +13,7 @@ + AC_PREREQ(2.59) + + AC_INIT([Cbc],[2.9.6],[cbc@lists.coin-or.org]) ++m4_include([../BuildTools/coin.m4]) + + AC_COPYRIGHT([ + Copyright 2006 International Business Machines and others. +diff -ur CoinMP-1.8.3.orig/Cgl/Makefile.am CoinMP-1.8.3/Cgl/Makefile.am +--- CoinMP-1.8.3.orig/Cgl/Makefile.am 2015-02-07 11:56:21.000000000 -0800 ++++ CoinMP-1.8.3/Cgl/Makefile.am 2018-06-25 08:32:03.454397372 -0700 +@@ -96,4 +96,4 @@ + # Files that are generated and should be cleaned with make distclean + DISTCLEANFILES = + +-include BuildTools/Makemain.inc ++include ../BuildTools/Makemain.inc +diff -ur CoinMP-1.8.3.orig/Cgl/configure.ac CoinMP-1.8.3/Cgl/configure.ac +--- CoinMP-1.8.3.orig/Cgl/configure.ac 2015-09-22 08:01:33.000000000 -0700 ++++ CoinMP-1.8.3/Cgl/configure.ac 2018-06-25 08:24:22.583802788 -0700 +@@ -13,6 +13,7 @@ + AC_PREREQ(2.59) + + AC_INIT([Cgl],[0.59.7],[cgl@list.coin-or.org]) ++m4_include([../BuildTools/coin.m4]) + + AC_COPYRIGHT([ + Copyright 2006 International Business Machines and others. +diff -ur CoinMP-1.8.3.orig/Clp/Makefile.am CoinMP-1.8.3/Clp/Makefile.am +--- CoinMP-1.8.3.orig/Clp/Makefile.am 2015-03-09 08:16:55.000000000 -0700 ++++ CoinMP-1.8.3/Clp/Makefile.am 2018-06-25 08:32:36.001721419 -0700 +@@ -146,4 +146,4 @@ + # Files that are generated and should be cleaned with make distclean + DISTCLEANFILES = + +-include BuildTools/Makemain.inc ++include ../BuildTools/Makemain.inc +diff -ur CoinMP-1.8.3.orig/Clp/configure.ac CoinMP-1.8.3/Clp/configure.ac +--- CoinMP-1.8.3.orig/Clp/configure.ac 2015-09-21 11:52:13.000000000 -0700 ++++ CoinMP-1.8.3/Clp/configure.ac 2018-06-25 08:24:33.811914865 -0700 +@@ -13,6 +13,7 @@ + AC_PREREQ(2.59) + + AC_INIT([Clp],[1.16.8],[clp@list.coin-or.org]) ++m4_include([../BuildTools/coin.m4]) + + AC_COPYRIGHT([ + Copyright 2006 International Business Machines and others. +diff -ur CoinMP-1.8.3.orig/CoinMP/Makefile.am CoinMP-1.8.3/CoinMP/Makefile.am +--- CoinMP-1.8.3.orig/CoinMP/Makefile.am 2015-01-27 22:55:44.000000000 -0800 ++++ CoinMP-1.8.3/CoinMP/Makefile.am 2018-06-25 08:32:53.339896167 -0700 +@@ -88,4 +88,4 @@ + # Files that are generated and should be cleaned with make distclean + DISTCLEANFILES = + +-include BuildTools/Makemain.inc ++include ../BuildTools/Makemain.inc +diff -ur CoinMP-1.8.3.orig/CoinMP/configure.ac CoinMP-1.8.3/CoinMP/configure.ac +--- CoinMP-1.8.3.orig/CoinMP/configure.ac 2015-09-22 12:52:20.000000000 -0700 ++++ CoinMP-1.8.3/CoinMP/configure.ac 2018-06-25 08:24:54.666123010 -0700 +@@ -13,6 +13,7 @@ + AC_PREREQ(2.59) + + AC_INIT([CoinMP],[1.8.3],[coinmp@list.coin-or.org]) ++m4_include([../BuildTools/coin.m4]) + + AC_COPYRIGHT([ + Copyright 2006 International Business Machines and others. +diff -ur CoinMP-1.8.3.orig/CoinUtils/Makefile.am CoinMP-1.8.3/CoinUtils/Makefile.am +--- CoinMP-1.8.3.orig/CoinUtils/Makefile.am 2015-02-06 16:02:10.000000000 -0800 ++++ CoinMP-1.8.3/CoinUtils/Makefile.am 2018-06-25 08:32:42.258783881 -0700 +@@ -93,4 +93,4 @@ + # Files that are generated and should be cleaned with make distclean + DISTCLEANFILES = + +-include BuildTools/Makemain.inc ++include ../BuildTools/Makemain.inc +diff -ur CoinMP-1.8.3.orig/CoinUtils/configure.ac CoinMP-1.8.3/CoinUtils/configure.ac +--- CoinMP-1.8.3.orig/CoinUtils/configure.ac 2015-09-11 10:04:38.000000000 -0700 ++++ CoinMP-1.8.3/CoinUtils/configure.ac 2018-06-25 08:24:39.825974894 -0700 +@@ -13,6 +13,7 @@ + AC_PREREQ(2.59) + + AC_INIT([CoinUtils],[2.10.10],[http://projects.coin-or.org/CoinUtils]) ++m4_include([../BuildTools/coin.m4]) + + AC_COPYRIGHT([ + Copyright 2006 International Business Machines and others. +diff -ur CoinMP-1.8.3.orig/Data/Sample/Makefile.am CoinMP-1.8.3/Data/Sample/Makefile.am +--- CoinMP-1.8.3.orig/Data/Sample/Makefile.am 2012-11-21 10:57:40.000000000 -0800 ++++ CoinMP-1.8.3/Data/Sample/Makefile.am 2018-06-25 08:31:42.277186499 -0700 +@@ -22,7 +22,7 @@ + pkgconfiglibdir = $(libdir)/pkgconfig + pkgconfiglib_DATA = coindatasample.pc + +-include BuildTools/Makemain.inc ++include ../../BuildTools/Makemain.inc + + test: + @echo "No test available." +diff -ur CoinMP-1.8.3.orig/Data/Sample/configure.ac CoinMP-1.8.3/Data/Sample/configure.ac +--- CoinMP-1.8.3.orig/Data/Sample/configure.ac 2015-01-04 18:29:43.000000000 -0800 ++++ CoinMP-1.8.3/Data/Sample/configure.ac 2018-06-25 08:24:01.621593527 -0700 +@@ -13,6 +13,7 @@ + AC_PREREQ(2.59) + + AC_INIT([DataSample],[1.2.10],[https://projects.coin-or.org/BuildTools/]) ++m4_include([../../BuildTools/coin.m4]) + + AC_COPYRIGHT([ + Copyright 2006 International Business Machines and others. +diff -ur CoinMP-1.8.3.orig/Osi/Makefile.am CoinMP-1.8.3/Osi/Makefile.am +--- CoinMP-1.8.3.orig/Osi/Makefile.am 2015-02-07 11:56:33.000000000 -0800 ++++ CoinMP-1.8.3/Osi/Makefile.am 2018-06-25 08:32:26.888630693 -0700 +@@ -126,4 +126,4 @@ + # Files that are generated and should be cleaned with make distclean + DISTCLEANFILES = + +-include BuildTools/Makemain.inc ++include ../BuildTools/Makemain.inc +diff -ur CoinMP-1.8.3.orig/Osi/configure.ac CoinMP-1.8.3/Osi/configure.ac +--- CoinMP-1.8.3.orig/Osi/configure.ac 2015-09-21 15:51:25.000000000 -0700 ++++ CoinMP-1.8.3/Osi/configure.ac 2018-06-25 08:24:28.184858698 -0700 +@@ -13,6 +13,7 @@ + AC_PREREQ(2.59) + + AC_INIT([Osi],[0.107.6],[osi@list.coin-or.org]) ++m4_include([../BuildTools/coin.m4]) + + AC_COPYRIGHT([ + Copyright 2006 International Business Machines and others. +diff -ur CoinMP-1.8.3.orig/configure.ac CoinMP-1.8.3/configure.ac +--- CoinMP-1.8.3.orig/configure.ac 2015-09-22 12:52:20.000000000 -0700 ++++ CoinMP-1.8.3/configure.ac 2018-06-25 08:24:48.602062487 -0700 +@@ -13,6 +13,7 @@ + AC_PREREQ(2.59) + + AC_INIT([CoinMP],[1.8.3],[coinmp@list.coin-or.org]) ++m4_include([BuildTools/coin.m4]) + + AC_COPYRIGHT([ + Copyright 2006 International Business Machines and others. diff --git a/libraries/CoinMP/CoinMP.SlackBuild b/libraries/CoinMP/CoinMP.SlackBuild index 45774667f7..4d6d5f3e7e 100644 --- a/libraries/CoinMP/CoinMP.SlackBuild +++ b/libraries/CoinMP/CoinMP.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for CoinMP -# Copyright 2015, 2017 Hunter Sezen California, USA +# Copyright 2015, 2017-2018 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=CoinMP VERSION=${VERSION:-1.8.3} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -69,8 +69,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Fix the $DESTDIR -zcat $CWD/destdir.diff.gz | patch -p1 +# Fix autoreconf and $DESTDIR +patch -p1 < $CWD/$PRGNAM-build.diff +patch -p1 < $CWD/destdir.diff + +autoreconf -fi CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ diff --git a/libraries/CoinMP/destdir.diff b/libraries/CoinMP/destdir.diff new file mode 100644 index 0000000000..a20399fd30 --- /dev/null +++ b/libraries/CoinMP/destdir.diff @@ -0,0 +1,16 @@ +diff -ur CoinMP-1.8.3.orig/CoinMP/Makefile.am CoinMP-1.8.3/CoinMP/Makefile.am +--- CoinMP-1.8.3.orig/CoinMP/Makefile.am 2015-01-27 22:55:44.000000000 -0800 ++++ CoinMP-1.8.3/CoinMP/Makefile.am 2018-06-25 09:44:47.242918098 -0700 +@@ -57,9 +57,10 @@ + pkgconfiglibdir = $(libdir)/pkgconfig + pkgconfiglib_DATA = coinmp.pc + +-addlibsdir = $(DESTDIR)$(datadir)/coin/doc/CoinMP ++datacoindir = $(datadir)/coin/doc/CoinMP ++datacoin_DATA = examples/Makefile examples/example.c + +-addlibs_DATA = examples/Makefile examples/example.c ++addlibsdir = $(DESTDIR)$(datadir)/coin/doc/CoinMP + + install-data-hook: + @$(mkdir_p) "$(addlibsdir)" diff --git a/libraries/CoinMP/destdir.diff.gz b/libraries/CoinMP/destdir.diff.gz Binary files differdeleted file mode 100644 index 42e330790b..0000000000 --- a/libraries/CoinMP/destdir.diff.gz +++ /dev/null |