mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
- Respect WITH_DEBUG to build with debug information
- Avoid forcing GCC version when building with clang Feature safe: yes
This commit is contained in:
parent
bd6a5ff3b2
commit
ff8939070a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293669
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user