blob: 31c4594c931b49fca505a90d51371945ae5b2271 (
plain)
1 # Description: COIN-OR branch-and-cut mixed integer programming solver
2 # URL: https://projects.coin-or.org/Cbc
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: coin-or-cgl
5
6 name=coin-or-cbc
7 version=2.10.5
8 release=1
9 source=(https://www.coin-or.org/download/source/Cbc/Cbc-${version}.tgz)
10
11 build() {
12 cd Cbc-$version
13 COIN_SKIP_PROJECTS="Sample" \
14 ./configure --prefix=/usr \
15 --with-osi-lib="$(pkg-config --libs osi)" \
16 --with-osi-incdir="/usr/include/coin/" \
17 --with-clp-lib="$(pkg-config --libs clp)" \
18 --with-clp-incdir="/usr/include/coin/" \
19 --with-cgl-lib="$(pkg-config --libs cgl)" \
20 --with-cgl-incdir="/usr/include/coin/" \
21 --with-coinutils-lib="$(pkg-config --libs coinutils)" \
22 --with-coinutils-incdir="/usr/include/coin/" \
23 --enable-dependency-linking \
24 --enable-cbc-parallel
25 make
26 PKG_CONFIG_LIBDIR="$PKG"/usr/lib/pkgconfig/ \
27 make DESTDIR=$PKG install
28 rm -fr $PKG/usr/share/coin/doc
29 }
|