2019-08-11 11:13:54 +02:00
# Description: C-API library that supports most of the functionality of CLP (Coin LP), CBC (Coin Branch-and-Cut), and CGL (Cut Generation Library) projects
2023-05-28 10:54:00 +02:00
# URL: https://github.com/coin-or/CoinMP
2019-08-11 11:13:54 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: coin-or-cbc
name=coin-or-mp
version=1.8.4
2023-05-28 10:54:00 +02:00
release=6
source=(https://github.com/coin-or/CoinMP/archive/refs/tags/releases/$version.tar.gz
2023-01-28 14:41:04 +01:00
libtool.patch)
2023-05-28 10:54:00 +02:00
renames=($name-$version.tar.gz SKIP SKIP SKIP)
2019-08-11 11:13:54 +02:00
build() {
2023-05-28 10:54:00 +02:00
cd CoinMP-releases-$version/CoinMP
2023-01-28 14:41:04 +01:00
patch -Np1 -i $SRC/libtool.patch
2019-08-11 11:13:54 +02:00
COIN_SKIP_PROJECTS="Sample" \
./configure --prefix=/usr \
--with-osi-lib="$(pkg-config --libs osi)" \
--with-osi-incdir="/usr/include/coin/" \
--with-clp-lib="$(pkg-config --libs clp)" \
--with-clp-incdir="/usr/include/coin/" \
--with-cgl-lib="$(pkg-config --libs cgl)" \
--with-cgl-incdir="/usr/include/coin/" \
--with-cbc-lib="$(pkg-config --libs cbc)" \
--with-cbc-incdir="/usr/include/coin/" \
--with-coinutils-lib="$(pkg-config --libs coinutils)" \
--with-coinutils-incdir="/usr/include/coin/"
make
make DESTDIR=$PKG install-exec
2023-01-28 14:41:04 +01:00
2019-08-11 11:13:54 +02:00
mkdir -p $PKG/usr/{include/coin,lib/pkgconfig}
2023-05-28 10:54:00 +02:00
install -c -m 644 src/CoinMP.h $PKG/usr/include/coin/CoinMP.h
install -c -m 644 coinmp.pc $PKG/usr/lib/pkgconfig/coinmp.pc
2023-01-28 14:41:04 +01:00
2019-08-11 11:13:54 +02:00
rm -fr $PKG/usr/share
}