Commit 296d0c7b authored by Jeremy Soller's avatar Jeremy Soller

Use pkg-config for cairodemo

parent 690561c2
BUILD_DEPENDS=(liborbital cairo pixman zlib libpng freetype)
BUILD_DEPENDS=(cairo expat fontconfig freetype liborbital libpng pixman zlib)
function recipe_version {
printf "1.0.0"
......@@ -21,7 +21,7 @@ function recipe_build {
export LDFLAGS="-L$sysroot/lib"
export CPPFLAGS="-I$sysroot/include"
set -x
"${CXX}" -I "$sysroot/include" -L "$sysroot/lib" cairodemo.c -o cairodemo -static -lorbital -lcairo -lpixman-1 -lfreetype -lpng -lz
"${CXX}" $("${PKG_CONFIG}" --cflags cairo) cairodemo.c -o cairodemo -static $("${PKG_CONFIG}" --libs cairo) -lorbital
set +x
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment