summaryrefslogtreecommitdiff
path: root/coin-or-mp/Pkgfile
blob: 8c49e47c4aee8f389715b13716fffbec8a9d1bda (plain)
    1 # 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
    2 # URL: https://projects.coin-or.org/CoinMP
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: coin-or-cbc
    5 
    6 name=coin-or-mp
    7 version=1.8.4
    8 release=4
    9 source=(https://www.coin-or.org/download/source/CoinMP/CoinMP-$version.tgz)
   10 
   11 build() {
   12   cd CoinMP-$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-cbc-lib="$(pkg-config --libs cbc)" \
   22     --with-cbc-incdir="/usr/include/coin/" \
   23     --with-coinutils-lib="$(pkg-config --libs coinutils)" \
   24     --with-coinutils-incdir="/usr/include/coin/"
   25   make
   26   make DESTDIR=$PKG install-exec
   27   mkdir -p $PKG/usr/{include/coin,lib/pkgconfig}
   28   install -c -m 644 CoinMP/src/CoinMP.h $PKG/usr/include/coin/CoinMP.h
   29   install -c -m 644 CoinMP/coinmp.pc $PKG/usr/lib/pkgconfig/coinmp.pc
   30   rm -fr $PKG/usr/share
   31 }

Generated by cgit