aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Reichardt <mi@jrei.ch>2019-03-13 10:44:58 +0100
committerKevin Daudt <kdaudt@alpinelinux.org>2019-03-13 19:07:14 +0000
commit01a9413a67422dc1714db1da6a1048270a3b98f3 (patch)
tree61e70450095f221557fdc84ec5ef0bdbe35eb4ed
parent092a3919797cbacd2928e8e36354cd7975db1246 (diff)
downloadaports-01a9413a67422dc1714db1da6a1048270a3b98f3.tar.gz
aports-01a9413a67422dc1714db1da6a1048270a3b98f3.tar.bz2
aports-01a9413a67422dc1714db1da6a1048270a3b98f3.tar.xz
community/irrlicht: add -static subpackage
-rw-r--r--community/irrlicht/APKBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/community/irrlicht/APKBUILD b/community/irrlicht/APKBUILD
index 2cdae3e60e..18f495eb46 100644
--- a/community/irrlicht/APKBUILD
+++ b/community/irrlicht/APKBUILD
@@ -9,7 +9,7 @@ arch="all"
license="zlib"
depends=""
makedepends="mesa-dev libjpeg-turbo-dev bzip2 libpng-dev zlib-dev bzip2-dev"
-subpackages="$pkgname-dev $pkgname-doc"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-static"
source="https://downloads.sourceforge.net/irrlicht/irrlicht-$pkgver.zip
irrlicht-1.8.3-mesa-10.x.patch
irrlicht-1.8.3-sysctl.patch
@@ -32,8 +32,7 @@ prepare() {
build() {
cd "$builddir"/source/Irrlicht/
export CXXFLAGS="$CXXFLAGS -std=gnu++98"
- make sharedlib
-
+ make sharedlib staticlib
#from arch pkgbuild: example build helper
ln -s libIrrlicht.so.$pkgver "$srcdir"/$pkgname-$pkgver/lib/Linux/libIrrlicht.so
}
@@ -59,6 +58,12 @@ package() {
install -m644 "$builddir"/include/* "$pkgdir"/usr/include/$pkgname
}
+static() {
+ pkgdesc="Irrlicht static library"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$builddir"/lib/Linux/libIrrlicht.a "$subpkgdir"/usr/lib
+}
+
sha512sums="de69ddd2c6bc80a1b27b9a620e3697b1baa552f24c7d624076d471f3aecd9b15f71dce3b640811e6ece20f49b57688d428e3503936a7926b3e3b0cc696af98d1 irrlicht-1.8.4.zip
44c16419c07597ba6d06d66057fbe2ab86e7b02b5dcdf458678b4ea87f6f721840da951ae4df59c983e1da83abdbe45f82e44a6a311bd42eb94d93dfd5aa437c irrlicht-1.8.3-mesa-10.x.patch
a25887c46990620271168f3c1ff42e3ff7bd577d5e986803f067942b7f43d63428ebbbf29d3956765b3199da731b151a39d3ee6b8e5bdab189710ef8fb9595e5 irrlicht-1.8.3-sysctl.patch