diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-13 18:48:38 +0200 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-14 08:12:03 +0200 |
commit | 1c1518a6b22b516423a0c18a6cf665fa59578805 (patch) | |
tree | 7afd28d9dd8af6c426055de719232275f937f563 /multimedia/oggvideotools/oggvideotools.SlackBuild | |
parent | 3281b7504f99ff82a1f22cece6003bafde479fb4 (diff) |
multimedia/oggvideotools: Added a patch for gcc-4.7.x
Also fixed library installation path.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
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 1fe3e8e853b4..3bb624879369 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 - |