summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorGanael LAPLANCHE <martymac@FreeBSD.org>2012-03-22 12:47:49 +0000
committerGanael LAPLANCHE <martymac@FreeBSD.org>2012-03-22 12:47:49 +0000
commitff8939070a35e5bf871532dd3a392a9732f997d3 (patch)
tree32470049f2228384460b1ea31e8b6396ba716b81 /emulators
parent- Update to 3.8.0 (diff)
- Respect WITH_DEBUG to build with debug information
- Avoid forcing GCC version when building with clang Feature safe: yes
Notes
Notes: svn path=/head/; revision=293669
Diffstat (limited to 'emulators')
-rw-r--r--emulators/dolphin-emu-devel/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/emulators/dolphin-emu-devel/Makefile b/emulators/dolphin-emu-devel/Makefile
index 1b962042f99a..c6f3bb0a1b23 100644
--- a/emulators/dolphin-emu-devel/Makefile
+++ b/emulators/dolphin-emu-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= dolphin-emu
PORTVERSION= 3.0.r${REVDATE}
+PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://contribs.martymac.org/FreeBSD-ports/distfiles/ \
LOCAL/martymac
@@ -34,7 +35,11 @@ USE_XORG= ice xext x11 xrandr
USE_WX= 2.8
USE_GL= gl glew glu
+# XXX Has only been tested with clang and gcc
+.if ${CC} != "clang" && ${CXX} != "clang++"
USE_GCC= 4.6+
+.endif
+
USE_CMAKE= yes
CMAKE_BUILD_TYPE= Release
# Disable ao (seems buggy) and ALSA (emulated)
@@ -43,10 +48,13 @@ CMAKE_ARGS+= -DDISABLE_AO:BOOL=ON \
-DDISABLE_BLUEZ:BOOL=ON \
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON
-## Un-comment the following to build with debug symbols
-#INSTALL_TARGET= install
-#CFLAGS+= -ggdb
-#MAKE_ENV+= VERBOSE=yes
+.if defined(WITH_DEBUG)
+CMAKE_ARGS+= -DFASTLOG:BOOL=ON
+INSTALL_TARGET= install
+CFLAGS+= -ggdb
+CXXFLAGS+= -ggdb
+MAKE_ENV+= VERBOSE=yes
+.endif
SUB_FILES= pkg-message
SUB_LIST+= MAINTAINER=${MAINTAINER}