bddf06f405
fex/fex/File_Extractor.h:181:58: error: cannot initialize return object of type 'blargg_err_t' (aka 'const char *') with an lvalue of type 'const int' inline blargg_err_t File_Extractor::rewind_v() { return blargg_ok; } PR: 223538 Submitted by: w.schwarzenfeld@utanet.at (based on)
103 lines
2.8 KiB
Makefile
103 lines
2.8 KiB
Makefile
# Created by: Nicole Reid <root@cooltrainer.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= visualboyadvance-m
|
|
PORTVERSION= 2.0.0b2
|
|
PORTREVISION= 6
|
|
CATEGORIES= emulators
|
|
|
|
MAINTAINER= root@cooltrainer.org
|
|
COMMENT= Game Boy Advance emulator with GTK frontend
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
|
|
|
BROKEN_aarch64= fails to build: regparm is not valid on this platform
|
|
BROKEN_armv6= fails to build: regparm is not valid on this platform
|
|
BROKEN_armv7= fails to build: regparm is not valid on this platform
|
|
|
|
USE_GITHUB= yes
|
|
GH_TAGNAME= VBA-M_Beta_2
|
|
|
|
OPTIONS_DEFINE= NLS FFMPEG LINK LIRC DEBUGGER
|
|
OPTIONS_MULTI= INTERFACE
|
|
OPTIONS_MULTI_INTERFACE= GVBAM SDL
|
|
OPTIONS_DEFINE_i386= ASMCORE ASMSCALERS
|
|
OPTIONS_DEFAULT= DEBUGGER SDL
|
|
OPTIONS_SUB= yes
|
|
|
|
GVBAM_DESC= Enable GTK interface
|
|
SDL_DESC= Enable SDL interface
|
|
FFMPEG_DESC= Enable FFmpeg A/V recording
|
|
LINK_DESC= Enable GBA linking functionality
|
|
LIRC_DESC= Enable LIRC infrared support
|
|
DEBUGGER_DESC= Enable the debugger
|
|
ASMCORE_DESC= Enable x86 ASM CPU cores (i386 only)
|
|
ASMSCALERS_DESC= Enable x86 ASM graphic filters (i386 only)
|
|
|
|
DOS2UNIX_REGEX= .*\.(c|cpp|h|ypp)
|
|
USE_XORG= x11 xext
|
|
USE_GL= gl glu
|
|
USE_SDL= sdl
|
|
USES= compiler:c++11-lang cmake:insource dos2unix gnome gl pkgconfig
|
|
INSTALLS_ICONS= yes
|
|
CMAKE_ARGS= -DVERSION:STRING="${PORTVERSION}" \
|
|
-DSYSCONFDIR:STRING="${PREFIX}/etc" \
|
|
-DENABLE_WX:BOOL=no
|
|
|
|
ASMCORE_BUILD_DEPENDS= as:devel/binutils
|
|
ASMCORE_CMAKE_BOOL= ENABLE_ASM_CORE
|
|
|
|
ASMSCALERS_BUILD_DEPENDS= as:devel/binutils
|
|
ASMSCALERS_CMAKE_ARGS= ENABLE_ASM_SCALERS
|
|
|
|
GVBAM_USE_GNOME= gtk20
|
|
GVBAM_LIB_DEPENDS= libgtkmm-2.4.so:x11-toolkits/gtkmm24 \
|
|
libglibmm-2.4.so:devel/glibmm \
|
|
libgiomm-2.4.so:devel/glibmm \
|
|
libcairomm-1.0.so:graphics/cairomm \
|
|
libglademm-2.4.so:devel/libglademm24 \
|
|
libgdkglextmm-x11-1.2.so:x11-toolkits/gtkglextmm
|
|
GVBAM_CMAKE_BOOL= ENABLE_GTK
|
|
GVBAM_USES= desktop-file-utils
|
|
|
|
SDL_IMPLIES= DEBUGGER
|
|
SDL_CMAKE_BOOL= ENABLE_SDL
|
|
|
|
DEBUGGER_CMAKE_BOOL= ENABLE_DEBUGGER
|
|
|
|
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
|
|
FFMPEG_CMAKE_BOOL= ENABLE_FFMPEG
|
|
|
|
NLS_USES= gettext
|
|
NLS_CMAKE_BOOL= ENABLE_NLS
|
|
|
|
LINK_CMAKE_BOOL= ENABLE_LINK
|
|
LINK_LIB_DEPENDS= libsfml-system.so:devel/sfml
|
|
|
|
LIRC_LIB_DEPENDS= liblirc_client.so:comms/lirc
|
|
LIRC_RUN_DEPENDS= lircd:comms/lirc
|
|
LIRC_CMAKE_BOOL= ENABLE_LIRC
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/SET.*LIRC_CLIENT_LIBRARY/ s|lirc_client|${LOCALBASE}/lib/lib&.so|; \
|
|
s|share/man|man|' ${WRKSRC}/CMakeLists.txt
|
|
|
|
maint-gen-distfile:
|
|
@if [ -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
|
|
${ECHO_CMD} "ERROR: the distfile already exists."; \
|
|
${FALSE}; \
|
|
fi
|
|
svn export -r${SVN_REV} \
|
|
https://svn.code.sf.net/p/vbam/code/trunk/ ${DISTNAME}
|
|
${TAR} jcf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}
|
|
${RM} -r ${DISTNAME}
|
|
|
|
post-install-SDL-on:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/vbam
|
|
|
|
post-install-GVBAM-on:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gvbam
|
|
|
|
.include <bsd.port.mk>
|