summaryrefslogtreecommitdiff
path: root/multimedia/dvdauthor
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/dvdauthor')
-rw-r--r--multimedia/dvdauthor/config.patch19
-rw-r--r--multimedia/dvdauthor/dvdauthor.SlackBuild13
2 files changed, 27 insertions, 5 deletions
diff --git a/multimedia/dvdauthor/config.patch b/multimedia/dvdauthor/config.patch
new file mode 100644
index 0000000000..5976969af5
--- /dev/null
+++ b/multimedia/dvdauthor/config.patch
@@ -0,0 +1,19 @@
+--- dvdvml.c.orig 2012-08-19 21:41:52.000000000 -0700
++++ dvdvml.c 2015-06-09 15:28:51.780584903 -0700
+@@ -626,6 +626,7 @@
+ * USA
+ */
+
++#include "config.h"
+ #include "compat.h" /* needed for bool */
+ #include "dvdvm.h"
+ #include "dvdvmy.h"
+--- dvdvmy.c.orig 2012-08-19 21:41:52.000000000 -0700
++++ dvdvmy.c 2015-06-09 15:29:01.924584741 -0700
+@@ -96,6 +96,7 @@
+ * USA
+ */
+
++#include "config.h"
+ #include "compat.h" /* needed for bool */
+ #include "dvdvm.h"
diff --git a/multimedia/dvdauthor/dvdauthor.SlackBuild b/multimedia/dvdauthor/dvdauthor.SlackBuild
index a333843e77..829bc055c1 100644
--- a/multimedia/dvdauthor/dvdauthor.SlackBuild
+++ b/multimedia/dvdauthor/dvdauthor.SlackBuild
@@ -29,7 +29,7 @@
PRGNAM=dvdauthor
VERSION=${VERSION:-0.7.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -72,7 +72,12 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+(
+cd src
+patch -p0 < $CWD/config.patch
+)
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -88,9 +93,7 @@ make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS ChangeLog COPYING INSTALL README TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/man -type f -exec gzip -9 {} \;