From 0ebe1b30e7b93d74e4e6bb0ec9bf91be9a18f03b Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 7 Oct 2014 10:30:22 +0200 Subject: [PATCH] New package: lpsolve-5.5.2.0 --- common/shlibs | 1 + srcpkgs/lpsolve-devel | 1 + srcpkgs/lpsolve/template | 45 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 120000 srcpkgs/lpsolve-devel create mode 100644 srcpkgs/lpsolve/template diff --git a/common/shlibs b/common/shlibs index fd62f8f588d..ca5a19d8356 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1777,3 +1777,4 @@ libwpg-0.3.so.3 libwpg-0.3.0_1 libvigraimpex.so.5 vigra-1.10.0_1 libhyphen.so.0 hyphen-2.8.8_1 libmythes-1.2.so.0 mythes-1.2.4_1 +liblpsolve55.so lpsolve-5.5.2.0_1 diff --git a/srcpkgs/lpsolve-devel b/srcpkgs/lpsolve-devel new file mode 120000 index 00000000000..20d5e497233 --- /dev/null +++ b/srcpkgs/lpsolve-devel @@ -0,0 +1 @@ +lpsolve \ No newline at end of file diff --git a/srcpkgs/lpsolve/template b/srcpkgs/lpsolve/template new file mode 100644 index 00000000000..1876160bbe7 --- /dev/null +++ b/srcpkgs/lpsolve/template @@ -0,0 +1,45 @@ +# Template file for 'lpsolve' +pkgname=lpsolve +version=5.5.2.0 +revision=1 +wrksrc=lp_solve_${version%.*.*} +short_desc="Mixed Integer Linear Programming (MILP) solver" +maintainer="Enno Boland " +license="GPL" +homepage="http://sourceforge.net/projects/lpsolve" +distfiles="${SOURCEFORGE_SITE}/$pkgname/lp_solve_${version}_source.tar.gz" +checksum=5827a30b143105283f398a09419ea608719a2d7699ecea165a66d521803bcc9c + +do_configure() { + sed -i \ + -e 's/^c=cc/c="$CC"/' \ + -e 's/^opts=.*/opts="$CFLAGS"/' \ + -e 's/^PLATFORM=.*/PLATFORM=/' \ + lp_solve/ccc lpsolve55/ccc +} + +do_build() { + cd lpsolve55 + sh -x ccc + cd ../lp_solve + sh -x ccc + cd .. +} + +do_install() { + vmkdir usr/bin + vmkdir usr/lib + vmkdir usr/include/lpsolve + + vinstall lp_solve/bin/lp_solve 755 usr/bin/ + vinstall lpsolve55/bin/liblpsolve55.so 755 usr/lib/ + vcopy lp*.h usr/include/lpsolve/ +} + +lpsolve-devel_package() { + depends="lpsolve>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + } +}