freebsd-ports/emulators/dolphin-emu/Makefile
Tijl Coosemans 95b155ef70 Specify library version when depending on libpolarssl and switch ports to
PolarSSL 1.3 when they fail to build with 1.2.
2015-04-17 13:37:36 +00:00

84 lines
2.4 KiB
Makefile

# Created by: Ganael Laplanche <ganael.laplanche@martymac.org>
# $FreeBSD$
PORTNAME= dolphin-emu
PORTVERSION= 4.0.2
PORTREVISION= 2
CATEGORIES= emulators
MAINTAINER= martymac@FreeBSD.org
COMMENT= Gamecube and Wii Emulator
LICENSE= GPLv2
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
libfreetype.so:${PORTSDIR}/print/freetype2 \
liblzo2.so:${PORTSDIR}/archivers/lzo2 \
libSoundTouch.so:${PORTSDIR}/audio/soundtouch \
libpolarssl.so.5:${PORTSDIR}/security/polarssl
USE_GITHUB= yes
GH_ACCOUNT= ${PORTNAME}
GH_PROJECT= dolphin
GH_COMMIT= 88fabf7
USE_SDL= sdl
USE_XORG= ice xext x11 xrandr xi
USE_WX= 3.0+
WX_UNICODE= yes
USE_GL= gl glew glu
USES= dos2unix cmake iconv openal pkgconfig tar:tgz compiler:c++11-lib
DOS2UNIX_REGEX= .*\.(h|c|cpp)
NOT_FOR_ARCHS= armv6
# Disable ALSA (emulated) and ao (buggy)
CMAKE_ARGS+= -DOPENMP:BOOL=OFF \
-DDISABLE_ALSA:BOOL=ON \
-DDISABLE_AO:BOOL=ON \
-DDISABLE_BLUEZ:BOOL=ON \
-DUSE_X11:BOOL=ON \
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON
OPTIONS_DEFINE= PULSEAUDIO PORTAUDIO DEBUG FRAMEDUMPS UPNP NLS
OPTIONS_DEFAULT= PORTAUDIO FRAMEDUMPS UPNP NLS
OPTIONS_SUB= yes
PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio
PULSEAUDIO_CMAKE_ON= -DDISABLE_PULSEAUDIO:BOOL=OFF
PULSEAUDIO_CMAKE_OFF= -DDISABLE_PULSEAUDIO:BOOL=ON
PORTAUDIO_DESC= Enable PortAudio (mic) support
PORTAUDIO_LIB_DEPENDS= libportaudio.so.2:${PORTSDIR}/audio/portaudio2
PORTAUDIO_CMAKE_ON= -DDISABLE_PORTAUDIO:BOOL=OFF
PORTAUDIO_CMAKE_OFF= -DDISABLE_PORTAUDIO:BOOL=ON
DEBUG_MAKE_ENV= VERBOSE=yes
DEBUG_CMAKE_ON= -DFASTLOG:BOOL=ON
DEBUG_CMAKE_OFF= -DFASTLOG:BOOL=OFF
FRAMEDUMPS_DESC= Encode framedumps in AVI format
FRAMEDUMPS_LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \
libavformat.so:${PORTSDIR}/multimedia/ffmpeg \
libswscale.so:${PORTSDIR}/multimedia/ffmpeg \
libavutil.so:${PORTSDIR}/multimedia/ffmpeg
FRAMEDUMPS_CMAKE_ON= -DENCODE_FRAMEDUMPS:BOOL=ON
FRAMEDUMPS_CMAKE_OFF= -DENCODE_FRAMEDUMPS:BOOL=OFF
UPNP_LIB_DEPENDS= libminiupnpc.so:${PORTSDIR}/net/miniupnpc
UPNP_CMAKE_ON= -DUSE_UPNP:BOOL=ON
UPNP_CMAKE_OFF= -DUSE_UPNP:BOOL=OFF
NLS_USES= gettext
NLS_CMAKE_ON= -DDISABLE_NLS:BOOL=OFF
NLS_CMAKE_OFF= -DDISABLE_NLS:BOOL=ON
.include <bsd.port.pre.mk>
# XXX Temporary workaround for ports/184540
.if ${PORT_OPTIONS:MDEBUG}
INSTALL_TARGET= install
.endif
.if !empty(ICONV_LIB)
CMAKE_ARGS+= -DICONV_LINK:BOOL=ON
.else
CMAKE_ARGS+= -DICONV_LINK:BOOL=OFF
.endif
.include <bsd.port.post.mk>