diff options
author | B. Watson <yalhcru@gmail.com> | 2017-06-21 15:31:30 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-06-24 08:32:52 +0700 |
commit | df8c4bbc9535d54b46d56fa9a61c31c733a82547 (patch) | |
tree | 6a30a35bdf2f380a901984a7a11b143f971cf479 /audio/foo-yc20/foo-yc20.SlackBuild | |
parent | f9c306688c9955be20fee6e8a9959fcedd47957f (diff) |
audio/foo-yc20: Fix build for -current.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'audio/foo-yc20/foo-yc20.SlackBuild')
-rw-r--r-- | audio/foo-yc20/foo-yc20.SlackBuild | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/audio/foo-yc20/foo-yc20.SlackBuild b/audio/foo-yc20/foo-yc20.SlackBuild index 0dd1400c513f4..b2ad25834158b 100644 --- a/audio/foo-yc20/foo-yc20.SlackBuild +++ b/audio/foo-yc20/foo-yc20.SlackBuild @@ -6,9 +6,12 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20170621 bkw: Rework optimization options. Needed because -current's +# gcc7 requires massive amounts of memory to build this. + PRGNAM=foo-yc20 VERSION=${VERSION:-1.3.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -55,11 +58,17 @@ find -L . \ sed -i "s,\<lib\>,lib$LIBDIRSUFFIX,g" Makefile -if [ "${FORCE_SLACK_CFLAGS:-no}" = "yes" ]; then - make PREFIX=/usr CFLAGS="$SLKCFLAGS" -else - make PREFIX=/usr -fi +case "${OPTIMIZE:-default}" in + slack) + make PREFIX=/usr CFLAGS="$SLKCFLAGS" ;; + default) + sed -i 's,-O3,-O2,g' Makefile ; make PREFIX=/usr ;; + upstream) + make PREFIX=/usr ;; + *) + echo "Bad OPTIMIZE, must be one of: 'default', 'slack', 'upstream'" 2>&1 + exit 1 +esac make install DESTDIR=$PKG PREFIX=/usr |