diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2013-06-05 20:05:47 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2013-06-05 20:08:58 +0900 |
commit | bec4be64a1bb15ff6fb6f9902f275324ccc16306 (patch) | |
tree | d73337ea6eac3feaf161b086eafc0bca3f673286 /pkgbuild | |
parent | 556161783c9606e6857230855bfa155d40ab7987 (diff) |
efl: actually test and make pkgbuild work.
Diffstat (limited to 'pkgbuild')
-rw-r--r-- | pkgbuild/PKGBUILD.in | 61 |
1 files changed, 41 insertions, 20 deletions
diff --git a/pkgbuild/PKGBUILD.in b/pkgbuild/PKGBUILD.in index 55b16f0f82..50a02dc924 100644 --- a/pkgbuild/PKGBUILD.in +++ b/pkgbuild/PKGBUILD.in | |||
@@ -2,32 +2,50 @@ | |||
2 | pkgname=('efl' 'efl_doc' 'efl_x11') | 2 | pkgname=('efl' 'efl_doc' 'efl_x11') |
3 | pkgver=@VERSION@ | 3 | pkgver=@VERSION@ |
4 | pkgrel=1 | 4 | pkgrel=1 |
5 | pkgdesc="Enlightenment Foundation Libraries" | 5 | pkgdesc="Enlightenment Foundation Libraries - GIT development snapshot (Ecore, Eldbus, Edje, Eet, Eeze, Efreet, Eina, Eio, Embryo, Emotion, Eo, Ephysics, Ethumb, & Evas)" |
6 | arch=('i686' 'x86_64' 'arm') | 6 | arch=('i686' 'x86_64' 'arm') |
7 | url="http://www.enlightenment.org" | 7 | url="http://www.enlightenment.org" |
8 | license=('BSD' 'LGPL2' 'GPL2') | 8 | license=('BSD' 'LGPL2' 'GPL2') |
9 | depends=('bullet' 'libpng' 'libjpeg-turbo' 'gstreamer0.10' 'zlib' 'lua' 'libtiff' 'openssl' 'util-linux' 'curl' 'dbus-core' 'glibc' 'fontconfig' 'freetype2' 'fribidi' 'libpulse' 'libsndfile' 'systemd' 'libx11' 'libxau' 'libxcomposite' 'libxdamage' 'libxdmcp' 'libxext' 'libxfixes' 'libxinerama' 'libxi' 'libxrandr' 'libxrender' 'libxss' 'libxtst' ' libgl' 'giflib') | 9 | makedepends=('doxygen') |
10 | provides=() | 10 | depends=('bullet' 'libpng' 'libjpeg-turbo' 'gstreamer0.10' |
11 | replaces=() | 11 | 'gstreamer0.10-base' 'gstreamer0.10-good' |
12 | options=('strip' 'docs' 'zipman') | 12 | 'gstreamer0.10-bad' 'gstreamer0.10-ugly' 'gstreamer0.10-ffmpeg' |
13 | 'zlib' 'lua' 'libtiff' 'openssl' 'util-linux' 'curl' 'dbus-core' | ||
14 | 'glibc' 'fontconfig' 'freetype2' 'fribidi' 'libpulse' | ||
15 | 'libsndfile' 'systemd' 'libx11' 'libxau' 'libxcomposite' | ||
16 | 'libxdamage' 'libxdmcp' 'libxext' 'libxfixes' 'libxinerama' | ||
17 | 'libxi' 'libxrandr' 'libxrender' 'libxss' 'libxtst' | ||
18 | 'libxcursor' 'libxp' 'libgl' 'giflib' 'libwebp' 'harfbuzz') | ||
19 | provides=("ecore=$pkgver" "eldbus=$pkgver" "edje=$pkgver" | ||
20 | "eet=$pkgver" "eeze=$pkgver" "efreet=$pkgver" | ||
21 | "eina=$pkgver" "eio=$pkgver" "embryo=$pkgver" "emotion=$pkgver" | ||
22 | "ephysics=$pkgver" "ethumb=$pkgver" "evas=$pkgver" | ||
23 | "efl=$pkgver" 'efl_x11' 'efl-svn') | ||
24 | conflicts=('ecore' 'edje' 'eet' 'eeze' 'efreet' 'eina' 'eio' 'embryo' | ||
25 | 'emotion' 'ethumb' 'evas' 'efl' 'efl_x11' 'efl-svn') | ||
26 | options=('strip' 'docs' 'zipman' '!libtool' 'debug') | ||
13 | buildflags="-fvisibility=hidden -fomit-frame-pointer" | 27 | buildflags="-fvisibility=hidden -fomit-frame-pointer" |
14 | build() { | 28 | build() { |
15 | cd ".." | 29 | cd "../.." |
30 | make clean distclean | ||
16 | ./configure --prefix=/usr \ | 31 | ./configure --prefix=/usr \ |
17 | --disable-static --enable-fb --disable-tslib --enable-xinput22 | 32 | --disable-static --disable-tslib --enable-fb \ |
33 | --enable-xinput22 --enable-multisense --enable-systemd \ | ||
34 | --enable-image-loader-webp --enable-harfbuzz | ||
18 | make | 35 | make |
19 | make doc | ||
20 | } | 36 | } |
21 | 37 | ||
22 | check() { | 38 | #check() { |
23 | cd ".." | 39 | # cd "../.." |
24 | make -k check | 40 | # make -k check |
25 | } | 41 | #} |
26 | 42 | ||
27 | package_efl() { | 43 | package_efl() { |
28 | cd ".." | 44 | export CFLAGS="-O2 -g -pipe -fvisibility=hidden -ffast-math" |
45 | export LDFLAGS="" | ||
46 | cd "../.." | ||
29 | rm -rf $pkgdir/usr | 47 | rm -rf $pkgdir/usr |
30 | make DESTDIR="$pkgdir/" install | 48 | make -j1 DESTDIR="$pkgdir/" install |
31 | install -Dm644 README $pkgdir/usr/share/$pkgname/licenses/$pkgname/README | 49 | install -Dm644 README $pkgdir/usr/share/$pkgname/licenses/$pkgname/README |
32 | install -Dm644 NEWS $pkgdir/usr/share/$pkgname/licenses/$pkgname/NEWS | 50 | install -Dm644 NEWS $pkgdir/usr/share/$pkgname/licenses/$pkgname/NEWS |
33 | install -Dm644 ChangeLog $pkgdir/usr/share/$pkgname/licenses/$pkgname/ChangeLog | 51 | install -Dm644 ChangeLog $pkgdir/usr/share/$pkgname/licenses/$pkgname/ChangeLog |
@@ -48,19 +66,21 @@ package_efl() { | |||
48 | } | 66 | } |
49 | 67 | ||
50 | package_efl_doc() { | 68 | package_efl_doc() { |
51 | cd ".." | 69 | cd "../.." |
52 | rm -rf $pkgdir/usr | 70 | rm -rf $pkgdir/usr |
53 | make DESTDIR="$pkgdir/" install | 71 | make -j1 doc |
72 | make -j1 DESTDIR="$pkgdir/" install | ||
54 | mkdir -p $pkgdir/usr/share/man/man3 | 73 | mkdir -p $pkgdir/usr/share/man/man3 |
55 | cp -r doc/html $pkgdir/usr/share/$pkgname/ | 74 | cp -r doc/html $pkgdir/usr/share/$pkgname/ |
56 | cp -r doc/latex $pkgdir/usr/share/$pkgname/latex | 75 | cp -r doc/latex $pkgdir/usr/share/$pkgname/latex |
76 | rm -f `find $pkgdir -name '*.la' -print` | ||
57 | } | 77 | } |
58 | 78 | ||
59 | package_efl_x11() { | 79 | package_efl_x11() { |
60 | cd ".." | 80 | cd "../.." |
61 | rm -rf $pkgdir/usr | 81 | rm -rf $pkgdir/usr |
62 | make DESTDIR="$pkgdir/" install | 82 | make -j1 DESTDIR="$pkgdir/" install |
63 | tar cf xf.tar \ | 83 | tar cf /tmp/xf.tar \ |
64 | $pkgdir/usr/include/evas-1/Evas_Engine_*_X11.h \ | 84 | $pkgdir/usr/include/evas-1/Evas_Engine_*_X11.h \ |
65 | $pkgdir/usr/include/ecore-x-1 \ | 85 | $pkgdir/usr/include/ecore-x-1 \ |
66 | $pkgdir/usr/lib/evas/modules/engines/*_x11 \ | 86 | $pkgdir/usr/lib/evas/modules/engines/*_x11 \ |
@@ -69,5 +89,6 @@ package_efl_x11() { | |||
69 | $pkgdir/usr/lib/pkgconfig/ecore-x.pc \ | 89 | $pkgdir/usr/lib/pkgconfig/ecore-x.pc \ |
70 | $pkgdir/usr/lib/pkgconfig/evas-*-x11.pc | 90 | $pkgdir/usr/lib/pkgconfig/evas-*-x11.pc |
71 | rm -rf $pkgdir/usr | 91 | rm -rf $pkgdir/usr |
72 | tar -C / -P -xf xf.tar | 92 | tar -C / -P -xf /tmp/xf.tar |
93 | rm -f `find $pkgdir -name '*.la' -print` | ||
73 | } | 94 | } |