forked from ports/contrib
lpsolve: use our CFLAGS, use https for source, clean up build
This commit is contained in:
parent
da33f2cead
commit
ba93dc4172
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3+8UaSM88KERjaD3JSc6dgMY7Bs+qoqgxEVbhmQ0qgUD1/uuItTpdbhp1VUPkKdFrWHtowYU7JXI/nzUwyYrTgo=
|
||||
SHA256 (Pkgfile) = 6f188b4d1f13ee8c53773d955a47a7df2a6efa133bf86c2286806d5e3cc0e5d8
|
||||
RWSagIOpLGJF33c5KYui1B2MMN/bWshQqzxi5DGZo3FB2wixvWRHsElEM2H+gOig7clZhL4ZPmPCPJfzNK80Vz+2fLA3+lrXGA8=
|
||||
SHA256 (Pkgfile) = 0c5a5b2a55b3e5e56079a37bac636056d4d0b0782726b3c2d4e908952003e25f
|
||||
SHA256 (.footprint) = b8cd5cff2918f0486c1bca11e7de996153b71a9452c465d604eed5c40281c1ae
|
||||
SHA256 (lp_solve_5.5.2.11_source.tar.gz) = 6d4abff5cc6aaa933ae8e6c17a226df0fc0b671c438f69715d41d09fe81f902f
|
||||
|
@ -1,22 +1,25 @@
|
||||
# Description: a Mixed Integer Linear Programming (MILP) solver
|
||||
# Description: A Mixed Integer Linear Programming (MILP) solver
|
||||
# URL: http://lpsolve.sourceforge.net/
|
||||
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||
# Depends on:
|
||||
|
||||
name=lpsolve
|
||||
version=5.5.2.11
|
||||
release=1
|
||||
source=(http://downloads.sourceforge.net/project/lpsolve/lpsolve/$version/lp_solve_"$version"_source.tar.gz)
|
||||
release=2
|
||||
source=(https://downloads.sourceforge.net/project/lpsolve/lpsolve/$version/lp_solve_"$version"_source.tar.gz)
|
||||
|
||||
build() {
|
||||
cd lp_solve_${version:0:3}
|
||||
cd lpsolve55
|
||||
sh -x ccc
|
||||
cd ../lp_solve
|
||||
sh -x ccc
|
||||
cd ..
|
||||
|
||||
sed -e "s|^\(opts=\).*|\1'$CFLAGS'|" -i lpsolve55/ccc lp_solve/ccc
|
||||
|
||||
( cd lpsolve55
|
||||
sh -x ccc )
|
||||
|
||||
( cd lp_solve
|
||||
sh -x ccc )
|
||||
|
||||
install -dm755 $PKG/usr/{bin,lib,include/lpsolve}
|
||||
install -m755 lp_solve/bin/ux*/lp_solve $PKG/usr/bin/
|
||||
install -m755 lpsolve55/bin/ux*/liblpsolve55.so $PKG/usr/lib/
|
||||
install -m644 lp*.h $PKG/usr/include/lpsolve/
|
||||
install -m755 -t $PKG/usr/bin lp_solve/bin/ux*/lp_solve
|
||||
install -m755 -t $PKG/usr/lib lpsolve55/bin/ux*/liblpsolve55.so
|
||||
install -m644 -t $PKG/usr/include/lpsolve lp*.h
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user