31 lines
765 B
Plaintext
31 lines
765 B
Plaintext
# Description: COIN-OR Open Solver Interface
|
|
# URL: https://github.com/coin-or/Osi
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: coin-or-coinutils
|
|
|
|
name=coin-or-osi
|
|
version=0.108.9
|
|
release=1
|
|
source=(https://github.com/coin-or/Osi/archive/releases/$version/$name-$version.tar.gz
|
|
libtool.patch
|
|
rpath.patch)
|
|
|
|
build() {
|
|
cd Osi-releases-$version
|
|
|
|
patch -Np1 -i $SRC/libtool.patch
|
|
patch -Np1 -i $SRC/rpath.patch
|
|
|
|
COIN_SKIP_PROJECTS="Sample" \
|
|
./configure --prefix=/usr \
|
|
--enable-dependency-linking \
|
|
--with-coinutils-lib="$(pkg-config --libs coinutils)" \
|
|
--with-coinutils-incdir="/usr/include/coin/"
|
|
make
|
|
|
|
PKG_CONFIG_LIBDIR="${PKG}/usr/lib/pkgconfig/" \
|
|
make DESTDIR="$PKG" install
|
|
|
|
rm -fr $PKG/usr/share/coin/doc
|
|
}
|