ports

morpheus ports
git clone git://git.2f30.org/ports.git
Log | Files | Refs | LICENSE

commit e7be002d164f46259974cbe953cb5108871dcebe
parent 933feb8e4c80ba502cb254ad5465db92b6e8ea7f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri May  2 17:02:36 +0000

add fontconfig, wip

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
fontconfig/depsinc.mk | 6++++++
fontconfig/fontconfig.mk | 28++++++++++++++++++++++++++++
fontconfig/mkfile | 6++++++
fontconfig/v.mk | 1+
4 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/fontconfig/depsinc.mk b/fontconfig/depsinc.mk @@ -0,0 +1,6 @@ +<$fontconfig_DEPDIR/v.mk + +fontconfig_libdir = $fontconfig_DEPDIR/fontconfig-$v/lib/lib +fontconfig_includedir = $fontconfig_DEPDIR/fontconfig-$v/lib/include +DEPS_CFLAGS = $DEPS_CFLAGS -I${fontconfig_includedir} +DEPS_LDFLAGS = $DEPS_LDFLAGS -L${fontconfig_libdir} -lfontconfig diff --git a/fontconfig/fontconfig.mk b/fontconfig/fontconfig.mk @@ -0,0 +1,28 @@ +TARG = fontconfig +DEPS = expat freetype + +<$mkbuild/mk.common-noinst + +fontconfig:QV: + # skip building tests. + printf "all:\n\ttrue\n\ninstall:\n\ttrue\n\n" > test/Makefile.in + export CFLAGS="$CFLAGS $DEPS_CFLAGS" + export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" +# export PKG_CONFIG="/bin/true" + ./configure --prefix="$prefix" \ + --mandir="$ROOT/share/man" \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-xmldir=/etc/fonts \ + --with-templatedir=/etc/fonts/conf.avail \ + --with-expat-includes="${expat_includedir}" \ + --with-expat-lib="${expat_libdir}" \ + --disable-docs \ + --disable-shared \ + --enable-static + # make and install. + make -j$nprocs install \ + FREETYPE_LIBS="-lfreetype -L${freetype_libdir}" FREETYPE_CFLAGS="-I${freetype_includedir}" \ + DESTDIR="`pwd`/lib" + # remove .la files for now ? + find `pwd`/lib -iname "*.la" -exec rm {} \; diff --git a/fontconfig/mkfile b/fontconfig/mkfile @@ -0,0 +1,6 @@ +<$mkbuild/mk.3rdparty + +<v.mk +src = fontconfig-$v +url = http://fontconfig.org/release/fontconfig-$v.tar.bz2 +mkfile = ../fontconfig.mk diff --git a/fontconfig/v.mk b/fontconfig/v.mk @@ -0,0 +1 @@ +v = 2.11.1