mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-28 10:02:43 +01:00
audio/vocoder: Minor hygiene fixes.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
9dd1c22a31
commit
10ad47ef93
1 changed files with 15 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue