aboutsummaryrefslogtreecommitdiff
path: root/audio/mkcue
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-02-07 15:36:58 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-07 23:04:35 +0700
commit960b4fac220abfaf906a63f2107995b893349c58 (patch)
tree3d42e76554f1e340ef6d7893fcd7345f8e91b345 /audio/mkcue
parent724dd87ceec56dc3c4d7422dbb5157c5955f94e8 (diff)
audio/mkcue: Updated for debian pkg version 7.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/mkcue')
-rw-r--r--audio/mkcue/mkcue.SlackBuild5
-rw-r--r--audio/mkcue/mkcue.info2
-rw-r--r--audio/mkcue/use_ldflags.diff17
3 files changed, 21 insertions, 3 deletions
diff --git a/audio/mkcue/mkcue.SlackBuild b/audio/mkcue/mkcue.SlackBuild
index 346f5092fe5e..c9d6292cac2f 100644
--- a/audio/mkcue/mkcue.SlackBuild
+++ b/audio/mkcue/mkcue.SlackBuild
@@ -19,7 +19,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mkcue
-VERSION=${VERSION:-1.4}
+VERSION=${VERSION:-1.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -76,9 +76,10 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch -p1 < $CWD/fix_msf_offset.diff
+patch -p1 < $CWD/use_ldflags.diff
CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS -std=gnu++98" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
diff --git a/audio/mkcue/mkcue.info b/audio/mkcue/mkcue.info
index f9705f185999..69724ea21818 100644
--- a/audio/mkcue/mkcue.info
+++ b/audio/mkcue/mkcue.info
@@ -1,5 +1,5 @@
PRGNAM="mkcue"
-VERSION="1.4"
+VERSION="1.7"
HOMEPAGE="https://packages.debian.org/sid/mkcue"
DOWNLOAD="http://httpredir.debian.org/debian/pool/main/m/mkcue/mkcue_1.orig.tar.gz"
MD5SUM="de082e40baf042e23246d54d28cbcdcc"
diff --git a/audio/mkcue/use_ldflags.diff b/audio/mkcue/use_ldflags.diff
new file mode 100644
index 000000000000..e5fb4f828765
--- /dev/null
+++ b/audio/mkcue/use_ldflags.diff
@@ -0,0 +1,17 @@
+Description: ensure use of Debian $LDFLAGS
+ Ensure use of Debian $LDFLAGS, so that hardening options get used.
+Author: Moray Allan <moray@debian.org>
+Last-Update: 2016-03-17
+Index: GNUmakefile.in
+===================================================================
+--- mkcue-1.orig/GNUmakefile.in
++++ mkcue-1/GNUmakefile.in
+@@ -54,7 +54,7 @@ INSTALL_SCRIPT= ${INSTALL_PROGRAM}
+ all: mkcue
+
+ mkcue: mkcue.o mb.o
+- ${CXX} -o $@ mkcue.o mb.o
++ ${CXX} -o $@ mkcue.o mb.o ${LDFLAGS}
+
+ clean:
+ rm -f mkcue *.o