contrib/coin-or-clp/Pkgfile

37 lines
1000 B
Plaintext

# Description: COIN-OR linear programming solver
# URL: https://github.com/coin-or/Clp
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: coin-or-osi suitesparse
name=coin-or-clp
version=1.17.9
release=2
source=(https://github.com/coin-or/Clp/archive/releases/$version/$name-$version.tar.gz
configure-exit.patch
libtool.patch
rpath.patch)
build() {
cd Clp-releases-$version/Clp
patch -Np1 -i $SRC/configure-exit.patch
patch -Np1 -i $SRC/libtool.patch
patch -Np1 -i $SRC/rpath.patch
COIN_SKIP_PROJECTS="Sample" \
./configure --prefix=/usr \
--with-osi-lib="$(pkg-config --libs osi)" \
--with-osi-incdir="/usr/include/coin/" \
--with-coinutils-lib="$(pkg-config --libs coinutils)" \
--with-coinutils-incdir="/usr/include/coin/" \
--with-cholmod-lib='-lcholmod' \
--with-cholmod-incdir=/usr/include/suitesparse
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
make DESTDIR=$PKG install
rm -fr $PKG/usr/share/coin/doc
}