summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-03-11 19:02:02 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-03-11 19:02:02 +0000
commita29bc57bf82d32cf4a8e973799d3480dc7d3a472 (patch)
tree3c319d76a5613d14ff938d1bfe20a31a09f5280e /user
parent0fc7b2fb803e36e84e647638d7afd2f63e458363 (diff)
downloadpackages-a29bc57bf82d32cf4a8e973799d3480dc7d3a472.tar.gz
packages-a29bc57bf82d32cf4a8e973799d3480dc7d3a472.tar.bz2
packages-a29bc57bf82d32cf4a8e973799d3480dc7d3a472.tar.xz
packages-a29bc57bf82d32cf4a8e973799d3480dc7d3a472.zip
user/libtheora: fix parallel build, modernise
Diffstat (limited to 'user')
-rw-r--r--user/libtheora/APKBUILD8
1 files changed, 2 insertions, 6 deletions
diff --git a/user/libtheora/APKBUILD b/user/libtheora/APKBUILD
index a1e1e1948..2dd25afa7 100644
--- a/user/libtheora/APKBUILD
+++ b/user/libtheora/APKBUILD
@@ -20,7 +20,6 @@ source="http://downloads.xiph.org/releases/theora/$pkgname-$pkgver.tar.bz2
prepare() {
default_prepare
- cd "$builddir"
sed -i 's/png_\(sizeof\)/\1/g' examples/png2theora.c
@@ -31,26 +30,23 @@ prepare() {
}
build() {
- cd "$builddir"
-
CFLAGS="${CFLAGS/-Os/-O3}" CPPFLAGS="${CPPFLAGS/-Os/-O3}" ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-shared \
--enable-static
+ # workaround parallel build issue
+ make -C lib libtheoradec.la
make -C lib
make
}
check() {
- cd "$builddir"
make check
}
package() {
- cd "$builddir"
-
make -j1 DESTDIR="$pkgdir" install
install -m755 -d "$pkgdir"/usr/share/licenses/$pkgname