diff options
Diffstat (limited to 'multimedia/oggvideotools/oggvideotools.SlackBuild')
-rw-r--r-- | multimedia/oggvideotools/oggvideotools.SlackBuild | 9 |
1 files changed, 7 insertions, 2 deletions
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 - |