blob: 00fd26a4ec2f3c731cae1b514b06be113400482c (
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
|
# New ports collection makefile for: visualboyadvance-m
# Date created: 2010-01-02
# Whom: Nicole Reid <root@cooltrainer.org>
#
# $FreeBSD$
#
PORTNAME= visualboyadvance-m
PORTVERSION= 1.8.0r${SVN_REV}
PORTREVISION= 3
CATEGORIES= emulators
MASTER_SITES= http://update.cooltrainer.org/emulators/visualboyadvance-m/
MAINTAINER= root@cooltrainer.org
COMMENT= Game Boy Advance emulator with GTK frontend
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
cairomm-1.0.1:${PORTSDIR}/graphics/cairomm \
sfml-system.1:${PORTSDIR}/devel/sfml
OPTIONS= GVBAM "Build gvbam (GTK2 frontend)" on \
ASM "Enable ASM core and filters (i386 only)" off
USE_BZIP2= yes
WANT_GNOME= yes
USE_DOS2UNIX= yes
DOS2UNIX_REGEX= .*\.(c|cpp|h)
USE_XORG= x11 xext
USE_GL= gl glu
USE_SDL= sdl
USE_CMAKE= yes
CMAKE_ARGS+= -DVERSION:STRING="${PORTVERSION}" -DSYSCONFDIR:STRING="${PREFIX}/etc"
SVN_REV= 1001
.include <bsd.port.pre.mk>
.if defined(WITH_ASM) && ${ARCH} == "i386"
BUILD_DEPENDS+= as:${PORTSDIR}/devel/binutils
CMAKE_ARGS+= -DENABLE_ASM_CORE:BOOL=yes -DENABLE_ASM_SCALERS:BOOL=yes
.endif
.if defined(WITH_GVBAM)
PLIST_SUB+= GVBAM=""
USE_GNOME= gtk20
LIB_DEPENDS+= gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24 \
glibmm-2.4:${PORTSDIR}/devel/glibmm \
giomm-2.4:${PORTSDIR}/devel/glibmm \
glademm-2.4:${PORTSDIR}/devel/libglademm24 \
gdkglextmm-x11-1.2:${PORTSDIR}/x11-toolkits/gtkglextmm
.else
PLIST_SUB+= GVBAM="@comment "
CMAKE_ARGS+= -DENABLE_GTK:BOOL=no
.endif
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
CMAKE_ARGS+= -DENABLE_NLS:BOOL=yes
PLIST_SUB+= NLS=""
.else
CMAKE_ARGS+= -DENABLE_NLS:BOOL=no
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/CMakeScripts/FindSFML.cmake
post-install:
-@update-desktop-database
@if [ ! -f ${PREFIX}/etc/vbam.cfg ]; then \
${CP} -p ${PREFIX}/etc/vbam.cfg-example ${PREFIX}/etc/vbam.cfg ; \
fi
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://vbam.svn.sourceforge.net/svnroot/vbam/trunk ${DISTNAME}
${TAR} jcf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}
${RM} -rf ${DISTNAME}
.include <bsd.port.post.mk>
|