Mercurial > vanilla
comparison graphics/gdk-pixbuf/gdk-pixbuf.sh @ 1216:6710613b88b9
misc: remove build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 29 Sep 2021 13:49:32 +0200 |
parents | 3dece1f7570b |
children | 27d1a83dc8d6 |
comparison
equal
deleted
inserted
replaced
1215:3214f7fed454 | 1216:6710613b88b9 |
---|---|
68 with_x="-D x11=true" | 68 with_x="-D x11=true" |
69 else | 69 else |
70 with_x="-D x11=false" | 70 with_x="-D x11=false" |
71 fi | 71 fi |
72 | 72 |
73 build() | 73 rm -rf $PKGNAME-$PKGVERSION |
74 { | 74 tar xvf $PKGNAME-$PKGVERSION.tar.xz |
75 rm -rf $PKGNAME-$PKGVERSION | 75 cd $PKGNAME-$PKGVERSION |
76 tar xvf $PKGNAME-$PKGVERSION.tar.xz | |
77 cd $PKGNAME-$PKGVERSION | |
78 | 76 |
79 # TODO: enable documentation once docbook-xml is there. | 77 # TODO: enable documentation once docbook-xml is there. |
80 patch -p0 < ../patch-meson.patch | 78 patch -p0 < ../patch-meson.patch |
81 CC="$CC" \ | 79 CC="$CC" \ |
82 CFLAGS="$CFLAGS" \ | 80 CFLAGS="$CFLAGS" \ |
83 CXX="$CXX" \ | 81 CXX="$CXX" \ |
84 CXXFLAGS="$CXXFLAGS" \ | 82 CXXFLAGS="$CXXFLAGS" \ |
85 LDFLAGS="$LDFLAGS" \ | 83 LDFLAGS="$LDFLAGS" \ |
86 meson . build \ | 84 meson . build \ |
87 --prefix / \ | 85 --prefix / \ |
88 --buildtype release \ | 86 --buildtype release \ |
89 --default-library shared \ | 87 --default-library shared \ |
90 -D libdir=lib \ | 88 -D libdir=lib \ |
91 -D docs=false \ | 89 -D docs=false \ |
92 -D man=false \ | 90 -D man=false \ |
93 -D installed_tests=false \ | 91 -D installed_tests=false \ |
94 $with_jasper \ | 92 $with_jasper \ |
95 $with_jpeg \ | 93 $with_jpeg \ |
96 $with_png \ | 94 $with_png \ |
97 $with_tiff \ | 95 $with_tiff \ |
98 $with_x | 96 $with_x |
99 CC="$CC" ninja -C build | 97 CC="$CC" ninja -C build |
100 DESTDIR=$DESTDIR ninja -C build install | 98 DESTDIR=$DESTDIR ninja -C build install |
101 sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc | 99 sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc |
102 | 100 |
103 cd .. | 101 cd .. |
104 rm -rf $PKGNAME-$PKGVERSION | 102 rm -rf $PKGNAME-$PKGVERSION |
105 } |