diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2020-12-09 20:56:40 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-04-17 23:54:36 -0500 |
commit | dbcc2bb62a20330b572bb10621be06634ca41ed2 (patch) | |
tree | f24161beee3e38b69ce777edd38fdd7678eb5e12 /misc/projectM/projectM.SlackBuild | |
parent | 756d225db64e5a6a8c810d5838d8c4656dce566c (diff) | |
download | slackbuilds-dbcc2bb62a20330b572bb10621be06634ca41ed2.tar.gz |
misc/projectM: Updated for version 3.1.7.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'misc/projectM/projectM.SlackBuild')
-rw-r--r-- | misc/projectM/projectM.SlackBuild | 40 |
1 files changed, 13 insertions, 27 deletions
diff --git a/misc/projectM/projectM.SlackBuild b/misc/projectM/projectM.SlackBuild index 9d968995a7..6e09e5937d 100644 --- a/misc/projectM/projectM.SlackBuild +++ b/misc/projectM/projectM.SlackBuild @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=projectM -VERSION=${VERSION:-2.1.0} -BUILD=${BUILD:-2} +VERSION=${VERSION:-3.1.7} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -60,33 +60,19 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-complete-$VERSION-Source.tar.gz -cd $PRGNAM-complete-$VERSION-Source - -patch -p0 < $CWD/patch_use_LIB_SUFFIX.diff -patch -p0 < $CWD/patch_use_both_fonts.diff -patch -p1 < $CWD/projectM-2.1.0_gcc.patch - -chown -R root:root . +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION 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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -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 {} \; -mkdir -p build -cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -lglut -lGL -std=c++11" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DINCLUDE-PROJECTM-PULSEAUDIO:BOOLEAN=ON \ - -DCMAKE_BUILD_TYPE=Release .. - make - make install DESTDIR=$PKG -cd .. +# thanks archlinux! +./configure --prefix=/usr --enable-gles --enable-sdl --enable-threading --enable-qt +sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool # Fix overlinking +make +make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |