summaryrefslogtreecommitdiff
path: root/devel/cmake
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2010-01-25 20:11:13 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2010-01-25 20:11:13 +0000
commit729b4c736170212b2d0e0a0f1729dc247f25164f (patch)
treea794d9da9c375d28822d2ecd2c70cb5db061ab0c /devel/cmake
parentImprove comment (diff)
Append {LOCALBASE}/include to SDL_INCLUDE_DIR, thus allow to build SDL apps out of box.
Bump PORTREVISION PR: ports/142583 Submitted by: amdmi3@
Notes
Notes: svn path=/head/; revision=248569
Diffstat (limited to 'devel/cmake')
-rw-r--r--devel/cmake/Makefile2
-rw-r--r--devel/cmake/files/patch-Modules_FindSDL.cmake14
2 files changed, 15 insertions, 1 deletions
diff --git a/devel/cmake/Makefile b/devel/cmake/Makefile
index e6318585174f..2d21155bcd93 100644
--- a/devel/cmake/Makefile
+++ b/devel/cmake/Makefile
@@ -7,7 +7,7 @@
PORTNAME= cmake
PORTVERSION= 2.8.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.cmake.org/files/v${PORTVERSION:C/\.[[:digit:]]+$//}/
diff --git a/devel/cmake/files/patch-Modules_FindSDL.cmake b/devel/cmake/files/patch-Modules_FindSDL.cmake
new file mode 100644
index 000000000000..6551f99463f9
--- /dev/null
+++ b/devel/cmake/files/patch-Modules_FindSDL.cmake
@@ -0,0 +1,14 @@
+--- ./Modules/FindSDL.cmake.orig 2009-11-13 21:32:52.000000000 +0300
++++ ./Modules/FindSDL.cmake 2010-01-25 22:23:16.749128606 +0300
+@@ -81,6 +81,11 @@
+ /opt/csw # Blastwave
+ /opt
+ )
++#On FreeBSD SDL depends on libiconv and SDL_stdinc.h includes iconv.h, which is
++#located in ${LOCALBASE}/include. Append {LOCALBASE}/include to
++#the SDL_INCLUDE_DIR, thus allow to build SDL apps out of box.
++LIST(APPEND SDL_INCLUDE_DIR /usr/local/include)
++
+ #MESSAGE("SDL_INCLUDE_DIR is ${SDL_INCLUDE_DIR}")
+
+ # SDL-1.1 is the name used by FreeBSD ports...