summaryrefslogtreecommitdiff
path: root/multimedia/oggvideotools
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/oggvideotools')
-rw-r--r--multimedia/oggvideotools/gcc47.patch11
-rw-r--r--multimedia/oggvideotools/oggvideotools.SlackBuild9
2 files changed, 18 insertions, 2 deletions
diff --git a/multimedia/oggvideotools/gcc47.patch b/multimedia/oggvideotools/gcc47.patch
new file mode 100644
index 0000000000..c3d61b16bd
--- /dev/null
+++ b/multimedia/oggvideotools/gcc47.patch
@@ -0,0 +1,11 @@
+diff -Naur oggvideotools-0.8a.orig/src/fileRepository.h oggvideotools-0.8a/src/fileRepository.h
+--- oggvideotools-0.8a.orig/src/fileRepository.h 2010-05-30 21:11:10.000000000 +0200
++++ oggvideotools-0.8a/src/fileRepository.h 2012-09-13 16:42:11.550012490 +0200
+@@ -23,6 +23,7 @@
+ #define FILEREPOSITORY_H_
+
+ #include <stdio.h>
++#include <unistd.h>
+
+ #include "definition.h"
+ #include "mediaRepository.h"
diff --git a/multimedia/oggvideotools/oggvideotools.SlackBuild b/multimedia/oggvideotools/oggvideotools.SlackBuild
index 1fe3e8e853..3bb6248793 100644
--- a/multimedia/oggvideotools/oggvideotools.SlackBuild
+++ b/multimedia/oggvideotools/oggvideotools.SlackBuild
@@ -70,6 +70,12 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Fix for gcc-4.7.x
+patch -p1 < $CWD/gcc47.patch
+
+# Fix library installation path
+sed -i "s|DESTINATION\ lib|DESTINATION lib${LIBDIRSUFFIX}|" src/CMakeLists.txt
+
mkdir build
cd build
CFLAGS="$SLKCFLAGS" \
@@ -78,8 +84,7 @@ cd build
-DCMAKE_INSTALL_PREFIX:STRING="/usr" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_VERBOSE_MAKEFILE:BOOL="TRUE" \
- -DLIB_SUFFIX:STRING="$LIBDIRSUFFIX"
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL="TRUE"
make
make DESTDIR=$PKG install/strip
cd -