Tue Apr 12 22:04:31 2016 UTC ()
Fix build when coinmp is already installed and using pkgconf.

Reported by tnn@
Fix by bapt@FreeBSD.org, thanks!


(wiz)
diff -r1.5 -r1.6 pkgsrc/math/coinmp/distinfo
diff -r0 -r1.1 pkgsrc/math/coinmp/patches/patch-Cbc-configure
diff -r0 -r1.1 pkgsrc/math/coinmp/patches/patch-Cgl-configure
diff -r0 -r1.1 pkgsrc/math/coinmp/patches/patch-Clp-configure
diff -r0 -r1.1 pkgsrc/math/coinmp/patches/patch-CoinMP-configure
diff -r0 -r1.1 pkgsrc/math/coinmp/patches/patch-CoinUtils-configure
diff -r0 -r1.1 pkgsrc/math/coinmp/patches/patch-Osi-configure

cvs diff -r1.5 -r1.6 pkgsrc/math/coinmp/distinfo (expand / switch to unified diff)

--- pkgsrc/math/coinmp/distinfo 2015/11/03 23:33:31 1.5
+++ pkgsrc/math/coinmp/distinfo 2016/04/12 22:04:30 1.6
@@ -1,6 +1,12 @@ @@ -1,6 +1,12 @@
1$NetBSD: distinfo,v 1.5 2015/11/03 23:33:31 agc Exp $ 1$NetBSD: distinfo,v 1.6 2016/04/12 22:04:30 wiz Exp $
2 2
3SHA1 (CoinMP-1.8.3.tgz) = e7831d46414f1c0067664dcfd6cea600043e489d 3SHA1 (CoinMP-1.8.3.tgz) = e7831d46414f1c0067664dcfd6cea600043e489d
4RMD160 (CoinMP-1.8.3.tgz) = fea560407773a4d4eaa3b13afa5827f924de6f33 4RMD160 (CoinMP-1.8.3.tgz) = fea560407773a4d4eaa3b13afa5827f924de6f33
5SHA512 (CoinMP-1.8.3.tgz) = 4cfec5ed973d6cf2325500fbc8d5640530004e4c99cf9a6446bae2906970fdc9aff3c72533d68b5bb2aed75fea6cbc916523e3f1676a2b046990c458186ef5c9 5SHA512 (CoinMP-1.8.3.tgz) = 4cfec5ed973d6cf2325500fbc8d5640530004e4c99cf9a6446bae2906970fdc9aff3c72533d68b5bb2aed75fea6cbc916523e3f1676a2b046990c458186ef5c9
6Size (CoinMP-1.8.3.tgz) = 10535972 bytes 6Size (CoinMP-1.8.3.tgz) = 10535972 bytes
 7SHA1 (patch-Cbc-configure) = 952f46ebdfe030cbea90ba89293185f3ffd95cd0
 8SHA1 (patch-Cgl-configure) = 1515dd0c0e806e87586f115acb3c827bf5531a6d
 9SHA1 (patch-Clp-configure) = 2b25360a39089abd9570db1255e785a721e85af0
 10SHA1 (patch-CoinMP-configure) = 13fdf4d38d328029dbe8e3525b8b7c5cb1974e9b
 11SHA1 (patch-CoinUtils-configure) = 2fad81415b80a5b3b302e43a679f897ba98a370c
 12SHA1 (patch-Osi-configure) = 1d31ad1af50976ee6f865aa6e7d146ad6e690961

File Added: pkgsrc/math/coinmp/patches/patch-Cbc-configure
$NetBSD: patch-Cbc-configure,v 1.1 2016/04/12 22:04:30 wiz Exp $

Fix build with pkgconf.

--- Cbc/configure.orig	2015-09-22 16:20:00.000000000 +0000
+++ Cbc/configure
@@ -20686,33 +20686,6 @@ fi
 
 
 
-# assemble pkg-config search path for installed projects
-COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
-
-# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
-# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
-# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
-if test "x${prefix}" = xNONE ; then
-  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-else
-  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-fi
-
-
-# Check whether --with-coin-instdir or --without-coin-instdir was given.
-if test "${with_coin_instdir+set}" = set; then
-  withval="$with_coin_instdir"
-  if test -d "$withval"; then : ; else
-     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
-echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
-   { (exit 1); exit 1; }; }
-   fi
-   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-
-fi;
-
-
-
 # assemble additional pkg-config search paths for uninstalled projects
 if test x$coin_projectdir = xyes ; then
   # if we are in a project setup, then in a classic setup, we want to find uninstalled projects

File Added: pkgsrc/math/coinmp/patches/patch-Cgl-configure
$NetBSD: patch-Cgl-configure,v 1.1 2016/04/12 22:04:30 wiz Exp $

Fix build with pkgconf.

--- Cgl/configure.orig	2015-09-22 15:01:33.000000000 +0000
+++ Cgl/configure
@@ -20652,33 +20652,6 @@ fi
 
 
 
-# assemble pkg-config search path for installed projects
-COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
-
-# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
-# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
-# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
-if test "x${prefix}" = xNONE ; then
-  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-else
-  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-fi
-
-
-# Check whether --with-coin-instdir or --without-coin-instdir was given.
-if test "${with_coin_instdir+set}" = set; then
-  withval="$with_coin_instdir"
-  if test -d "$withval"; then : ; else
-     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
-echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
-   { (exit 1); exit 1; }; }
-   fi
-   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-
-fi;
-
-
-
 # assemble additional pkg-config search paths for uninstalled projects
 if test x$coin_projectdir = xyes ; then
   # if we are in a project setup, then in a classic setup, we want to find uninstalled projects

File Added: pkgsrc/math/coinmp/patches/patch-Clp-configure
$NetBSD: patch-Clp-configure,v 1.1 2016/04/12 22:04:30 wiz Exp $

Fix build with pkgconf.

--- Clp/configure.orig	2015-09-21 18:52:13.000000000 +0000
+++ Clp/configure
@@ -20682,33 +20682,6 @@ fi
 
 
 
-# assemble pkg-config search path for installed projects
-COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
-
-# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
-# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
-# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
-if test "x${prefix}" = xNONE ; then
-  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-else
-  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-fi
-
-
-# Check whether --with-coin-instdir or --without-coin-instdir was given.
-if test "${with_coin_instdir+set}" = set; then
-  withval="$with_coin_instdir"
-  if test -d "$withval"; then : ; else
-     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
-echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
-   { (exit 1); exit 1; }; }
-   fi
-   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-
-fi;
-
-
-
 # assemble additional pkg-config search paths for uninstalled projects
 if test x$coin_projectdir = xyes ; then
   # if we are in a project setup, then in a classic setup, we want to find uninstalled projects

File Added: pkgsrc/math/coinmp/patches/patch-CoinMP-configure
$NetBSD: patch-CoinMP-configure,v 1.1 2016/04/12 22:04:30 wiz Exp $

Fix build with pkgconf.

--- CoinMP/configure.orig	2015-09-22 19:52:20.000000000 +0000
+++ CoinMP/configure
@@ -20624,33 +20624,6 @@ fi
 
 
 
-# assemble pkg-config search path for installed projects
-COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
-
-# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
-# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
-# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
-if test "x${prefix}" = xNONE ; then
-  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-else
-  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-fi
-
-
-# Check whether --with-coin-instdir or --without-coin-instdir was given.
-if test "${with_coin_instdir+set}" = set; then
-  withval="$with_coin_instdir"
-  if test -d "$withval"; then : ; else
-     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
-echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
-   { (exit 1); exit 1; }; }
-   fi
-   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-
-fi;
-
-
-
 # assemble additional pkg-config search paths for uninstalled projects
 if test x$coin_projectdir = xyes ; then
   # if we are in a project setup, then in a classic setup, we want to find uninstalled projects

File Added: pkgsrc/math/coinmp/patches/patch-CoinUtils-configure
$NetBSD: patch-CoinUtils-configure,v 1.1 2016/04/12 22:04:30 wiz Exp $

Fix build with pkgconf.

--- CoinUtils/configure.orig	2015-09-11 17:04:38.000000000 +0000
+++ CoinUtils/configure
@@ -29625,33 +29625,6 @@ fi
 
 
 
-# assemble pkg-config search path for installed projects
-COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
-
-# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
-# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
-# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
-if test "x${prefix}" = xNONE ; then
-  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-else
-  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-fi
-
-
-# Check whether --with-coin-instdir or --without-coin-instdir was given.
-if test "${with_coin_instdir+set}" = set; then
-  withval="$with_coin_instdir"
-  if test -d "$withval"; then : ; else
-     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
-echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
-   { (exit 1); exit 1; }; }
-   fi
-   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-
-fi;
-
-
-
 # assemble additional pkg-config search paths for uninstalled projects
 if test x$coin_projectdir = xyes ; then
   # if we are in a project setup, then in a classic setup, we want to find uninstalled projects

File Added: pkgsrc/math/coinmp/patches/patch-Osi-configure
$NetBSD: patch-Osi-configure,v 1.1 2016/04/12 22:04:30 wiz Exp $

Fix build with pkgconf.

--- Osi/configure.orig	2015-09-21 22:51:25.000000000 +0000
+++ Osi/configure
@@ -20650,33 +20650,6 @@ fi
 
 
 
-# assemble pkg-config search path for installed projects
-COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
-
-# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
-# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
-# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
-if test "x${prefix}" = xNONE ; then
-  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-else
-  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-fi
-
-
-# Check whether --with-coin-instdir or --without-coin-instdir was given.
-if test "${with_coin_instdir+set}" = set; then
-  withval="$with_coin_instdir"
-  if test -d "$withval"; then : ; else
-     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
-echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
-   { (exit 1); exit 1; }; }
-   fi
-   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
-
-fi;
-
-
-
 # assemble additional pkg-config search paths for uninstalled projects
 if test x$coin_projectdir = xyes ; then
   # if we are in a project setup, then in a classic setup, we want to find uninstalled projects