blob: 79463bde2dea89e66cdd4bc5dd7e81d9b564aee2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# 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= fails to build
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= cmake dos2unix 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>
|