aboutsummaryrefslogtreecommitdiffstats
path: root/main/vlc/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-14 01:55:34 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-14 01:55:34 +0000
commit972e2e79b28f2e7d3ebab0fd3b4a9ca5df676210 (patch)
tree45486386c02fa17d56f792966541d472ac180d3c /main/vlc/APKBUILD
parent159d37d98e9579119ef8bb90fb981d03b0da75de (diff)
downloadaports-972e2e79b28f2e7d3ebab0fd3b4a9ca5df676210.tar.bz2
aports-972e2e79b28f2e7d3ebab0fd3b4a9ca5df676210.tar.xz
main/vlc: build fix
Diffstat (limited to 'main/vlc/APKBUILD')
-rw-r--r--main/vlc/APKBUILD28
1 files changed, 9 insertions, 19 deletions
diff --git a/main/vlc/APKBUILD b/main/vlc/APKBUILD
index 535d3aca18..3228413c53 100644
--- a/main/vlc/APKBUILD
+++ b/main/vlc/APKBUILD
@@ -108,25 +108,19 @@ source="http://download.videolan.org/pub/videolan/$pkgname/${_ver}/$pkgname-$_pk
omxil-rpi-codecs.patch
vlc-libs.trigger"
-_builddir="$srcdir"/$pkgname-$_ver
+builddir="$srcdir"/$pkgname-$_ver
+
prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch)
- msg "Applying $i"
- patch -p1 -i "$srcdir"/$i || return 1
- ;;
- esac;
- done
- sed -i -e "/^libxscreensaver_plugin_la_SOURCES/s/^/#/" modules/misc/Modules.am
- ./bootstrap
+ cd "$builddir"
+ sed -i -e "/^libxscreensaver_plugin_la_SOURCES/s/^/#/" \
+ modules/misc/Modules.am || return 1
+ ./bootstrap || return 1
}
build() {
local _arch_opts=
-
- cd "$_builddir"
+ export CXXFLAGS="$CXXFLAGS -std=gnu++98"
+ cd "$builddir"
sed -e 's:/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:/usr/share/fonts/TTF/DejaVuSerif-Bold.ttf:' \
-i modules/text_renderer/freetype.c
@@ -189,12 +183,8 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
-# for res in 16 32 48 128; do
-# install -D -m644 share/vlc${res}x${res}.png \
-# "$pkgdir"/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png || return 1
-# done
# delete cache as it's autocreated by trigger
rm -rf "$pkgdir"/usr/lib/vlc/plugins/plugins.dat
# delete unneeded mozilla and kde support files