Browse Source
misc/projectM: Patched for gcc 6/7.
misc/projectM: Patched for gcc 6/7.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>pull/47/head
committed by
David Spencer
4 changed files with 94 additions and 8 deletions
-
4misc/projectM/README
-
3misc/projectM/doinst.sh
-
63misc/projectM/projectM-2.1.0_gcc.patch
-
32misc/projectM/projectM.SlackBuild
@ -1,5 +1,5 @@ |
|||
projectM (Music visualization program) |
|||
|
|||
projectM is an OpenGL based advanced music visualization program for Linux, |
|||
Mac OSX, and Windows. It is backward compatible with all the features of |
|||
projectM is an OpenGL based advanced music visualization program for Linux, |
|||
Mac OSX, and Windows. It is backward compatible with all the features of |
|||
Milkdrop 1.x (and now 2.x), but has many new toys and enhancements. |
@ -0,0 +1,3 @@ |
|||
if [ -x /usr/bin/update-desktop-database ]; then |
|||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 |
|||
fi |
@ -0,0 +1,63 @@ |
|||
diff -x '*orig' -rup projectM-complete-2.1.0-Source/src/libprojectM/Common.hpp projectM-complete-2.1.0-Source.new/src/libprojectM/Common.hpp
|
|||
--- projectM-complete-2.1.0-Source/src/libprojectM/Common.hpp 2012-05-20 04:43:26.000000000 +0100
|
|||
+++ projectM-complete-2.1.0-Source.new/src/libprojectM/Common.hpp 2016-03-17 05:00:14.176905540 +0000
|
|||
@@ -63,7 +63,8 @@ extern FILE *fmemopen(void *buf, size_t
|
|||
|
|||
#ifdef LINUX |
|||
#include <cstdlib> |
|||
-#define projectM_isnan isnan
|
|||
+#include <cmath>
|
|||
+#define projectM_isnan std::isnan
|
|||
|
|||
#endif |
|||
|
|||
diff -x '*orig' -rup projectM-complete-2.1.0-Source/src/libprojectM/MilkdropPresetFactory/Parser.cpp
|
|||
projectM-complete-2.1.0-Source.new/src/libprojectM/MilkdropPresetFactory/Parser.cpp |
|||
--- projectM-complete-2.1.0-Source/src/libprojectM/MilkdropPresetFactory/Parser.cpp 2012-05-20 04:43:26.000000000 +0100
|
|||
+++ projectM-complete-2.1.0-Source.new/src/libprojectM/MilkdropPresetFactory/Parser.cpp 2016-03-17 05:00:14.177905556 +0000
|
|||
@@ -1406,7 +1406,7 @@ PerFrameEqn * Parser::parse_implicit_per
|
|||
PerFrameEqn * per_frame_eqn; |
|||
GenExpr * gen_expr; |
|||
|
|||
- if (fs == NULL)
|
|||
+ if (!fs)
|
|||
return NULL; |
|||
if (param_string == NULL) |
|||
return NULL; |
|||
@@ -1561,7 +1561,7 @@ InitCond * Parser::parse_per_frame_init_
|
|||
|
|||
if (preset == NULL) |
|||
return NULL; |
|||
- if (fs == NULL)
|
|||
+ if (!fs)
|
|||
return NULL; |
|||
|
|||
if ((token = parseToken(fs, name)) != tEq) |
|||
@@ -1875,7 +1875,7 @@ int Parser::parse_shapecode(char * token
|
|||
/* Null argument checks */ |
|||
if (preset == NULL) |
|||
return PROJECTM_FAILURE; |
|||
- if (fs == NULL)
|
|||
+ if (!fs)
|
|||
return PROJECTM_FAILURE; |
|||
if (token == NULL) |
|||
return PROJECTM_FAILURE; |
|||
@@ -2166,7 +2166,7 @@ int Parser::parse_wave(char * token, std
|
|||
|
|||
if (token == NULL) |
|||
return PROJECTM_FAILURE; |
|||
- if (fs == NULL)
|
|||
+ if (!fs)
|
|||
return PROJECTM_FAILURE; |
|||
if (preset == NULL) |
|||
return PROJECTM_FAILURE; |
|||
@@ -2348,7 +2348,7 @@ int Parser::parse_shape(char * token, st
|
|||
if (token == NULL) |
|||
|
|||
return PROJECTM_FAILURE; |
|||
- if (fs == NULL)
|
|||
+ if (!fs)
|
|||
return PROJECTM_FAILURE; |
|||
if (preset == NULL) |
|||
return PROJECTM_FAILURE; |
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue