aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco A L Barbosa <malbarbo@gmail.com>2018-06-12 09:20:36 -0300
committerJakub Jirutka <jakub@jirutka.cz>2018-06-17 14:32:33 +0200
commita504c4ae694e9d92cfae6b9af6f008118939bb73 (patch)
tree7bdaf83bc96bb66d3b79864cfdb214cc49ea57ca
parent6e69d3eabb2ea2500239fbbdc3eaa1d01f8578e7 (diff)
downloadaports-a504c4ae694e9d92cfae6b9af6f008118939bb73.tar.bz2
aports-a504c4ae694e9d92cfae6b9af6f008118939bb73.tar.xz
main/freetype: build static lib
-rw-r--r--main/freetype/APKBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/main/freetype/APKBUILD b/main/freetype/APKBUILD
index 2b3dc8c7b3..af7e51f5ec 100644
--- a/main/freetype/APKBUILD
+++ b/main/freetype/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=freetype
pkgver=2.9.1
-pkgrel=0
+pkgrel=1
pkgdesc="TrueType font rendering library"
url="https://www.freetype.org/"
arch="all"
@@ -11,7 +11,7 @@ options="!check"
depends=""
depends_dev=""
makedepends="$depends_dev zlib-dev libpng-dev bzip2-dev"
-subpackages="$pkgname-dev $pkgname-doc"
+subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="http://download.savannah.gnu.org/releases/freetype/freetype-$pkgver.tar.bz2
40-memcpy-fix.patch
0001-Enable-table-validation-modules.patch
@@ -39,13 +39,20 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --disable-static \
+ --enable-static \
--with-bzip2 \
--with-png \
--enable-freetype-config
make
}
+static() {
+ pkgdesc="$pkgname static libraries"
+
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
+}
+
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install