audio/vocoder: Minor hygiene fixes.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2017-03-12 19:19:25 -04:00 committed by Willy Sudiarto Raharjo
parent 9dd1c22a31
commit 10ad47ef93
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -6,9 +6,15 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20170312 bkw:
# - actually use SLKCFLAGS
# - stop fluid from writing to /root/.fltk/
# - use "-include unistd.h" compiler opt instead of a patch
# - BUILD=2
PRGNAM=vocoder
VERSION=${VERSION:-0.29}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -53,10 +59,15 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Add a couple missing #include <unistd.h>
patch -p1 < $CWD/compile_fix.diff
sed -i "s,-O2,$SLKCFLAGS -include unistd.h," src/Makefile
sed -i "/^CFLAGS/s,\$, $SLKCFLAGS -include unistd.h," util/Makefile
make
# Override $HOME since fluid insists on writing useless stuff there.
# In case the user's using ccache, this changes the cache dir, so we
# put it back like it was (no harm done if user not using ccache).
CCACHE_DIR=${CCACHE_DIR:-$HOME/.ccache} \
HOME=$( pwd ) \
make
# manual install (no install target in Makefile)
mkdir -p $PKG/usr/bin