blob: e09c8bdf8f365c94dfdf6a467c779af4daaa16f3 (
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
|
# $FreeBSD$
PORTNAME= mednafen
PORTVERSION= 0.8.B
PORTREVISION= 8
PORTEPOCH= 1
CATEGORIES= emulators games
MASTER_SITES= SF/${PORTNAME}/Mednafen/${PORTVERSION}
MAINTAINER= acm@FreeBSD.org
COMMENT= Portable multi-system emulator
LIB_DEPENDS= cdio.13:${PORTSDIR}/sysutils/libcdio \
sndfile.1:${PORTSDIR}/audio/libsndfile \
vorbis.4:${PORTSDIR}/audio/libvorbis
USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_SDL= sdl net
USE_XORG= x11
USE_GL= glut
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD}
WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_FILES= pkg-message
OPTIONS_DEFINE= NLS DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
FLAG_NLS= true
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${ARCH}==sparc64
BROKEN= does not compile on ${ARCH} due to internal compiler error
.endif
pre-configure:
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' -e \
's|/usr/local|${LOCALBASE}|g' -e 's|/usr/X11R6|${LOCALBASE}|g' \
${WRKSRC}/configure
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/Documentation/mednafen.html ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|