aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-05-28 16:06:31 +0800
committermiwi <miwi@FreeBSD.org>2008-05-28 16:06:31 +0800
commitf66ceba51ad37b51395d5c7ac202bc61470373d5 (patch)
tree41277e0afc2bcb1a0ea60de3cc3ef7602599e081 /games
parent06340ea930c859a82753a8d491c53d5d8163a5e2 (diff)
downloadfreebsd-ports-gnome-f66ceba51ad37b51395d5c7ac202bc61470373d5.tar.gz
freebsd-ports-gnome-f66ceba51ad37b51395d5c7ac202bc61470373d5.tar.zst
freebsd-ports-gnome-f66ceba51ad37b51395d5c7ac202bc61470373d5.zip
- Add missing patch
Diffstat (limited to 'games')
-rw-r--r--games/memonix/files/patch-CMakeLists.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/games/memonix/files/patch-CMakeLists.txt b/games/memonix/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..64e1c6371afa
--- /dev/null
+++ b/games/memonix/files/patch-CMakeLists.txt
@@ -0,0 +1,27 @@
+--- CMakeLists.txt.orig 2007-07-13 00:18:26.000000000 +0400
++++ CMakeLists.txt 2008-05-19 03:20:57.000000000 +0400
+@@ -12,6 +12,8 @@
+ # into current directory and run ./Memonix
+ #
+
++CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
++
+ # project name
+ PROJECT(Memonix)
+
+@@ -31,9 +33,12 @@
+ FIND_PACKAGE(SDL_mixer REQUIRED)
+
+ # sources
+-FILE(GLOB_RECURSE memonix_SRCS *.cpp)
++FILE(GLOB_RECURSE memonix_SRCS src/*.cpp)
+
+ # targets
+-ADD_DEFINITIONS(`${SDL_CONFIG} --cflags`)
++EXEC_PROGRAM(${SDL_CONFIG} ARGS "--cflags" OUTPUT_VARIABLE SDL_CFLAGS)
++EXEC_PROGRAM(${SDL_CONFIG} ARGS "--libs" OUTPUT_VARIABLE SDL_LIBS)
++
++ADD_DEFINITIONS(${SDL_CFLAGS})
+ ADD_EXECUTABLE(Memonix ${memonix_SRCS})
+-TARGET_LINK_LIBRARIES(Memonix `${SDL_CONFIG} --libs` ${SDLIMAGE_LIBRARY} ${SDLMIXER_LIBRARY} ${OPENGL_gl_LIBRARY} ${GLU_LIBRARY})
++TARGET_LINK_LIBRARIES(Memonix ${SDL_LIBS} ${SDLIMAGE_LIBRARY} ${SDLMIXER_LIBRARY} ${OPENGL_gl_LIBRARY} ${GLU_LIBRARY})