ports

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

commit 0df06b37fac79c8cf5c47118b6544e1d570a258d
parent 3737839fa37b1ecae0eb5fd6b89d7839cd567ece
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri May  2 20:07:38 +0000

add libpng

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

Diffstat:
libpng/depsinc.mk | 6++++++
libpng/libpng.mk | 18++++++++++++++++++
libpng/mkfile | 6++++++
libpng/v.mk | 1+
4 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/libpng/depsinc.mk b/libpng/depsinc.mk @@ -0,0 +1,6 @@ +<$libpng_DEPDIR/v.mk + +libpng_libdir = $libpng_DEPDIR/libpng-$v/lib/lib +libpng_includedir = $libpng_DEPDIR/libpng-$v/lib/include +DEPS_CFLAGS = $DEPS_CFLAGS -I${libpng_includedir} +DEPS_LDFLAGS = $DEPS_LDFLAGS -L${libpng_libdir} -lpng diff --git a/libpng/libpng.mk b/libpng/libpng.mk @@ -0,0 +1,18 @@ +TARG = libpng +DEPS = zlib + +<$mkbuild/mk.common-noinst + +libpng:QV: + export CFLAGS="$CFLAGS $DEPS_CFLAGS" + export CPPFLAGS="${CFLAGS}" + export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" + CC="${CC} -static" ./configure \ + --prefix="$prefix" \ + --mandir="$ROOT/share/man" \ + --disable-shared \ + --enable-static + # make and install. + make -j$nprocs install DESTDIR=`pwd`/lib + # remove .la files for now ? + find `pwd`/lib -iname "*.la" -exec rm {} \; diff --git a/libpng/mkfile b/libpng/mkfile @@ -0,0 +1,6 @@ +<$mkbuild/mk.3rdparty + +<v.mk +src = libpng-$v +url = http://optimate.dl.sourceforge.net/project/libpng/libpng16/$v/libpng-$v.tar.xz +mkfile = ../libpng.mk diff --git a/libpng/v.mk b/libpng/v.mk @@ -0,0 +1 @@ +v = 1.6.10