ports

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

commit 1b058f3517972f1cf8b0ca90240daf981232f408
parent b22600bba604c22ee82f2fed602cbc7a78af80e7
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 29 May 2014 13:35:26 +0200

add pkgtools, add depsinc to libarchive

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

Diffstat:
libarchive/depsinc.mk | 7+++++++
pkgtools/mkfile | 5+++++
pkgtools/pkgtools.mk | 14++++++++++++++
3 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/libarchive/depsinc.mk b/libarchive/depsinc.mk @@ -0,0 +1,7 @@ +<$libarchive_DEPDIR/v.mk + +libarchive_libdir = $libarchive_DEPDIR/libarchive-$v +libarchive_includedir = $libarchive_DEPDIR/libarchive-$v/libarchive + +DEPS_CFLAGS = $DEPS_CFLAGS -I${libarchive_includedir} +DEPS_LDFLAGS = $DEPS_LDFLAGS -L${libarchive_libdir} -larchive diff --git a/pkgtools/mkfile b/pkgtools/mkfile @@ -0,0 +1,5 @@ +<$mkbuild/mk.3rdparty + +src = pkgtools +git = git://git.2f30.org/pkgtools +mkfile = ../pkgtools.mk diff --git a/pkgtools/pkgtools.mk b/pkgtools/pkgtools.mk @@ -0,0 +1,14 @@ +TARG = pkgtools +DEPS = libarchive + +<$mkbuild/mk.common-noinst + +pkgtools:QV: + export CFLAGS="$CFLAGS $DEPS_CFLAGS" + export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" + make -j$nprocs CC="${CC} -static" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \ + PREFIX="$prefix" DESTDIR="$ROOT" + +install:QV: + make -j$nprocs install CC="${CC} -static" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \ + PREFIX="$prefix" DESTDIR="$ROOT"