Lines 5-56
Link Here
|
5 |
PORTVERSION= 2.12 |
5 |
PORTVERSION= 2.12 |
6 |
PORTREVISION= 12 |
6 |
PORTREVISION= 12 |
7 |
CATEGORIES= emulators |
7 |
CATEGORIES= emulators |
8 |
MASTER_SITES= http://www.zeograd.com/download/ |
8 |
MASTER_SITES= http://www.zeograd.com/download/ \ |
|
|
9 |
http://www.sourcefiles.org/Emulators/Videogames/ |
9 |
|
10 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
11 |
MAINTAINER= ports@FreeBSD.org |
11 |
COMMENT= A PC Engine (TurboGrafx 16) emulator |
12 |
COMMENT= PC Engine (TurboGrafx 16) emulator |
12 |
|
13 |
|
13 |
BUILD_DEPENDS= ${LOCALBASE}/include/argp.h:${PORTSDIR}/devel/argp-standalone |
14 |
LICENSE= BSD GPLv2 |
|
|
15 |
LICENSE_COMB= multi |
16 |
|
17 |
LIB_DEPENDS= libargp.so:${PORTSDIR}/devel/argp-standalone |
18 |
|
19 |
OPTIONS_DEFINE= GTK2 DOCS NETPLAY SDL_MIXER |
20 |
OPTIONS_DEFAULT=GTK2 |
21 |
OPTIONS_SUB= yes |
22 |
NETPLAY_DESC= Netplay support |
23 |
SDL_MIXER_DESC= SDL_mixer support |
14 |
|
24 |
|
15 |
GNU_CONFIGURE= yes |
|
|
16 |
USES= gmake pkgconfig |
25 |
USES= gmake pkgconfig |
17 |
USE_SDL= sdl |
26 |
USE_SDL= sdl |
|
|
27 |
USE_CSTD= gnu89 |
28 |
GNU_CONFIGURE= yes |
29 |
|
30 |
CFLAGS+= -Wno-return-type |
31 |
CPPFLAGS+= -I${LOCALBASE}/include |
18 |
LDFLAGS+= -L${LOCALBASE}/lib |
32 |
LDFLAGS+= -L${LOCALBASE}/lib |
19 |
CONFIGURE_ENV+= SDL_CONFIG="${SDL_CONFIG}" |
|
|
20 |
|
33 |
|
21 |
.if !defined(WITHOUT_NETPLAY) |
34 |
.include <bsd.port.options.mk> |
22 |
USE_SDL+= net |
35 |
|
23 |
.else |
36 |
.if empty(PORT_OPTIONS:MGTK2) && ${PORT_OPTIONS:MNETPLAY} |
24 |
CONFIGURE_ARGS+= --enable-netplay=no |
37 |
IGNORE= NETPLAY support requires GTK2 support |
25 |
.endif |
38 |
.endif |
26 |
|
39 |
|
27 |
.if defined(WITHOUT_GUI) |
40 |
.if ${PORT_OPTIONS:MGTK2} |
28 |
CONFIGURE_ARGS+= --enable-gui=no --disable-gtktest |
|
|
29 |
.else |
30 |
USE_GNOME= gtk20 |
41 |
USE_GNOME= gtk20 |
|
|
42 |
.else |
43 |
CONFIGURE_ARGS+= --disable-gui --disable-gtktest |
31 |
.endif |
44 |
.endif |
32 |
|
45 |
|
33 |
.if defined(WITH_OGG_SUPPORT) |
46 |
.if ${PORT_OPTIONS:MNETPLAY} |
34 |
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis |
47 |
USE_SDL+= net |
35 |
WITH_SDL_MIXER= yes |
48 |
.else |
36 |
CONFIGURE_ARGS+= --with-ogg-support |
49 |
CONFIGURE_ENV+= ac_cv_lib_SDL_net_main=no |
37 |
.endif |
50 |
.endif |
38 |
|
51 |
|
39 |
.if defined(WITH_SDL_MIXER) |
52 |
.if ${PORT_OPTIONS:MSDL_MIXER} |
|
|
53 |
LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis |
40 |
USE_SDL+= mixer |
54 |
USE_SDL+= mixer |
41 |
CONFIGURE_ARGS+= --with-sdl-mixer |
55 |
CFLAGS+= -DOGG_SUPPORT |
42 |
.endif |
|
|
43 |
|
44 |
MAKE_ENV+= DOCSDIR="${DOCSDIR}" |
45 |
|
46 |
.if defined(NOPORTDOCS) |
47 |
MAKE_ENV+= PORTDOCS=false |
48 |
.else |
56 |
.else |
49 |
MAKE_ENV+= PORTDOCS=true |
57 |
CONFIGURE_ENV+= ac_cv_lib_SDL_mixer_main=no \ |
|
|
58 |
ac_cv_lib_vorbis_main=no \ |
59 |
ac_cv_lib_vorbisfile_main=no |
50 |
.endif |
60 |
.endif |
51 |
|
61 |
|
52 |
NO_STAGE= yes |
|
|
53 |
post-patch: |
54 |
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/configure |
55 |
|
56 |
.include <bsd.port.mk> |
62 |
.include <bsd.port.mk> |