mupdf: build and install libmujs.a.
This commit is contained in:
parent
db830375b3
commit
f684787678
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'mupdf'
|
# Template file for 'mupdf'
|
||||||
pkgname=mupdf
|
pkgname=mupdf
|
||||||
version=1.9a
|
version=1.9a
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="${pkgname}-${version}-source"
|
wrksrc="${pkgname}-${version}-source"
|
||||||
hostmakedepends="pkg-config zlib-devel libcurl-devel freetype-devel
|
hostmakedepends="pkg-config zlib-devel libcurl-devel freetype-devel
|
||||||
libjpeg-turbo-devel jbig2dec-devel libXext-devel libXcursor-devel
|
libjpeg-turbo-devel jbig2dec-devel libXext-devel libXcursor-devel
|
||||||
|
@ -30,8 +30,10 @@ do_build() {
|
||||||
CFLAGS+=" -fPIC"
|
CFLAGS+=" -fPIC"
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
make CROSSCOMPILE=yes CURL_LIBS='-lcurl -lpthread' build=release
|
make CROSSCOMPILE=yes CURL_LIBS='-lcurl -lpthread' build=release
|
||||||
|
make CROSSCOMPILE=yes CFLAGS="$CFLAGS" build=release -C thirdparty/mujs
|
||||||
else
|
else
|
||||||
make CURL_LIBS='-lcurl -lpthread' build=release
|
make CURL_LIBS='-lcurl -lpthread' build=release
|
||||||
|
make build=release CFLAGS="$CFLAGS" -C thirdparty/mujs
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
|
@ -41,6 +43,7 @@ do_install() {
|
||||||
rm ${DESTDIR}/usr/bin/mupdf-x11
|
rm ${DESTDIR}/usr/bin/mupdf-x11
|
||||||
|
|
||||||
vinstall build/release/libmupdf.a 644 usr/lib
|
vinstall build/release/libmupdf.a 644 usr/lib
|
||||||
|
vinstall thirdparty/mujs/build/libmujs.a 644 usr/lib
|
||||||
|
|
||||||
vinstall ${FILESDIR}/mupdf.xpm 644 usr/share/pixmaps
|
vinstall ${FILESDIR}/mupdf.xpm 644 usr/share/pixmaps
|
||||||
vinstall ${FILESDIR}/mupdf.desktop 644 usr/share/applications
|
vinstall ${FILESDIR}/mupdf.desktop 644 usr/share/applications
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue