comparison graphics/gdk-pixbuf/gdk-pixbuf.sh @ 1222:325631424c65

misc: bring back build function
author David Demelier <markand@malikania.fr>
date Wed, 27 Oct 2021 11:32:16 +0200
parents a47aaf9743a0
children 9867e578b1a9
comparison
equal deleted inserted replaced
1221:a47aaf9743a0 1222:325631424c65
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 rm -rf $PKGNAME-$PKGVERSION 73 build()
74 tar xvf $PKGNAME-$PKGVERSION.tar.xz 74 {
75 cd $PKGNAME-$PKGVERSION 75 rm -rf $PKGNAME-$PKGVERSION
76 tar xvf $PKGNAME-$PKGVERSION.tar.xz
77 cd $PKGNAME-$PKGVERSION
76 78
77 # TODO: enable documentation once docbook-xml is there. 79 # TODO: enable documentation once docbook-xml is there.
78 patch -p0 < ../patch-meson.patch 80 patch -p0 < ../patch-meson.patch
79 CC="$CC" \ 81 CC="$CC" \
80 CFLAGS="$CFLAGS" \ 82 CFLAGS="$CFLAGS" \
81 CXX="$CXX" \ 83 CXX="$CXX" \
82 CXXFLAGS="$CXXFLAGS" \ 84 CXXFLAGS="$CXXFLAGS" \
83 LDFLAGS="$LDFLAGS" \ 85 LDFLAGS="$LDFLAGS" \
84 meson . build \ 86 meson . build \
85 --prefix / \ 87 --prefix / \
86 --buildtype release \ 88 --buildtype release \
87 --default-library shared \ 89 --default-library shared \
88 -D libdir=lib \ 90 -D libdir=lib \
89 -D docs=false \ 91 -D docs=false \
90 -D man=false \ 92 -D man=false \
91 -D installed_tests=false \ 93 -D installed_tests=false \
92 $with_jasper \ 94 $with_jasper \
93 $with_jpeg \ 95 $with_jpeg \
94 $with_png \ 96 $with_png \
95 $with_tiff \ 97 $with_tiff \
96 $with_x 98 $with_x
97 CC="$CC" ninja -C build 99 CC="$CC" ninja -C build
98 DESTDIR=$DESTDIR ninja -C build install 100 DESTDIR=$DESTDIR ninja -C build install
99 sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc 101 sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc
100 102
101 cd .. 103 cd ..
102 rm -rf $PKGNAME-$PKGVERSION 104 rm -rf $PKGNAME-$PKGVERSION
105 }