mupdf.mk (1580B)
1 TARG = mupdf 2 DEPS = openssl xorglibx11 xorglibxext xorgxproto xorgxextproto \ 3 xorglibxcb xorgxcbproto xorglibxau xorglibxdmcp 4 5 <$mkbuild/mk.common-noinst 6 7 mupdf:QV: 8 # default build was "debug", use "release". 9 build="release" 10 # fix for Makerules: hardcoded (X11) paths etc. 11 cp ../Makerules Makerules 12 # build tools used in build 13 # (CROSSCOMPILE="yes" disables these in the normal build). 14 mkdir -p generated build/${build} 15 for tool in bin2hex cmapdump cquote fontdump; do 16 CC="${HOSTCC}" CFLAGS="" LDFLAGS="" make scripts/${tool} 17 cp "scripts/${tool}" "build/${build}" 18 done 19 # 20 export CFLAGS="$CFLAGS $DEPS_CFLAGS" 21 export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" 22 # TODO: disable hardcoded X11 include paths etc in Makefile? 23 # TODO: change X11_LIBS etc. depending on DEPS, don't hardcode them. 24 make -j$nprocs \ 25 build="${build}" \ 26 prefix="$PREFIX" \ 27 verbose="yes" \ 28 CROSSCOMPILE="yes" \ 29 HAVE_X11="yes" \ 30 HAVE_CURL="no" \ 31 X11_CFLAGS="${CFLAGS}" \ 32 X11_LIBS="${LDFLAGS}" \ 33 OPENSSL_CFLAGS="-DHAVE_OPENSSL -I${openssl_includedir} -L${openssl_libdir}" \ 34 OPENSSL_LIBS="-lcrypto -lssl" 35 36 install:QV: 37 build="release" 38 make -j$nprocs install \ 39 DESTDIR="$ROOT" \ 40 build="${build}" \ 41 prefix="$PREFIX" \ 42 verbose="yes" \ 43 CROSSCOMPILE="yes" \ 44 HAVE_X11="yes" \ 45 HAVE_CURL="no" \ 46 X11_CFLAGS="-I${xorglibx11_includedir} -I${xorglibxext_includedir} -L${xorglibx11_libdir} -L${xorglibxext_libdir}" \ 47 X11_LIBS="-lX11 -lX11-xcb -lXext -lxcb -lXau" \ 48 OPENSSL_CFLAGS="-DHAVE_OPENSSL -I${openssl_includedir} -L${openssl_libdir}" \ 49 OPENSSL_LIBS="-lcrypto -lssl"