ports

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

freetype.mk (1237B)


      1 TARG = freetype
      2 DEPS = zlib libpng
      3 
      4 <$mkbuild/mk.common-noinst
      5 
      6 freetype:QV:
      7 	# CCexe is set to build apinames for host (needed in build).
      8 	export ZLIB_CFLAGS="${zlib_CFLAGS}"
      9 	export ZLIB_LIBS="${zlib_LDFLAGS}"
     10 	export HARFBUZZ_CFLAGS=" "
     11 	export HARFBUZZ_LDFLAGS=" "
     12 	# needed because build system calls libpng-config.
     13 	export LIBPNG_CFLAGS="${libpng_CFLAGS}"
     14 	export LIBPNG_LIBS="${libpng_LDFLAGS}"
     15 	CC="$CC" ./configure \
     16 		--build="${TOOLCHAIN_TRIPLET}" \
     17 		--host="${HOST_TOOLCHAIN_TRIPLET}" \
     18 		--prefix="$PREFIX" \
     19 		--mandir="$ROOT/share/man" \
     20 		--disable-shared \
     21 		--enable-static \
     22 		--with-fsspec=no \
     23 		--with-fsref=no \
     24 		--with-bzip2=no \
     25 		--with-ats=no \
     26 		--with-quickdraw-toolbox=no \
     27 		--with-quickdraw-carbon=no \
     28 		--with-old-mac-fonts=no \
     29 		--with-harfbuzz=no \
     30 		--with-zlib=yes \
     31 		--with-png=yes
     32 	make -j$nprocs CCexe="${HOSTCC}"
     33 	make -j$nprocs install CCexe="${HOSTCC}" DESTDIR="`pwd`/lib"
     34 	# make symlink for includes, some packages depend on this (fontconfig).
     35 	mkdir -p "`pwd`/lib/include/freetype2/config"
     36 	ln -sf freetype2 "`pwd`/lib/include/freetype"
     37 	# fontconfig needs this.
     38 	ln -sf . "`pwd`/lib/include/freetype/freetype"
     39 	# remove .la files for now ?
     40 	find `pwd`/lib -iname "*.la" -exec rm {} \;