summaryrefslogtreecommitdiffstats
path: root/lpsolve/Pkgfile
blob: 68096b76ebf5df96570921022f398e1bda55b9eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Description: a Mixed Integer Linear Programming (MILP) solver 
# URL: http://lpsolve.sourceforge.net/
# Maintainer: NuTyX core team
# Packager: lesibel at free dot fr

name=lpsolve
_origname=lp_solve
version=5.5.2.0
release=1
_mainver=5.5

source=(http://sourceforge.net/projects/lpsolve/files/lpsolve/5.5.2.0/lp_solve_5.5.2.0_source.tar.gz \
	http://nutyx.meticul.eu/files/patchs/$name/cflags.patch)

build() {
  cd ${_origname}_${_mainver}
  patch -Np1 -i ../cflags.patch

 # taken from Fedora spec
 cd lpsolve55
 sh -x ccc
 rm bin/ux*/liblpsolve55.a
 cd ../lp_solve
 sh -x ccc
 cd ..
 
 # install
 install -d $PKG/usr/{bin,lib,include/lpsolve}
 install -m 755 lp_solve/bin/ux*/lp_solve $PKG/usr/bin/
 install -m 755 lpsolve55/bin/ux*/liblpsolve55.so $PKG/usr/lib/
 install -m 644 lp*.h $PKG/usr/include/lpsolve/
}