From: Victor Martinez Date: Wed, 8 Mar 2017 21:19:01 +0000 (+0000) Subject: pkgutils: restored port with new CFLAGS X-Git-Url: http://gitweb/?a=commitdiff_plain;h=b4c11f273385ade8d8464f7bbf306e5a9a06b96c;p=ports%2Fcubieboard2-arm.git pkgutils: restored port with new CFLAGS --- diff --git a/pkgutils/Pkgfile b/pkgutils/Pkgfile new file mode 100644 index 0000000..3a57ba9 --- /dev/null +++ b/pkgutils/Pkgfile @@ -0,0 +1,18 @@ +# Description: A set of utilities to manage software packages +# URL: http://crux.nu/gitweb/?p=tools/pkgutils.git +# Maintainer: CRUX System Team, core-ports at crux dot nu +# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu +# Depends on: libarchive + +name=pkgutils +version=5.40 +release=1 +source=(http://crux.nu/files/$name-$version.tar.xz \ + pkgmk.conf.patch) + +build () { + cd $name-$version + patch -p0 -i $SRC/pkgmk.conf.patch + sed -i -e "s|\--static||g" -e "s|\-static||g" Makefile + make DESTDIR=$PKG install MANDIR=/usr/share/man +} diff --git a/pkgutils/pkgmk.conf.patch b/pkgutils/pkgmk.conf.patch new file mode 100644 index 0000000..0d3ffbf --- /dev/null +++ b/pkgutils/pkgmk.conf.patch @@ -0,0 +1,14 @@ +--- pkgmk.conf.orig 2014-10-16 15:59:34.057394811 +0000 ++++ pkgmk.conf 2014-10-16 16:00:18.437371591 +0000 +@@ -2,9 +2,8 @@ + # /etc/pkgmk.conf: pkgmk(8) configuration + # + +-export CFLAGS="-O2 -march=x86-64 -pipe" +-export CXXFLAGS="${CFLAGS}" +- ++export CFLAGS="-O2 -pipe -mfloat-abi=hard -march=armv7ve -mcpu=cortex-a7 -mfpu=neon-vfpv4" ++export CXXFLAGS="$CFLAGS" + # export MAKEFLAGS="-j2" + + case ${PKGMK_ARCH} in