Lines 1-36
Link Here
|
1 |
# Created by: elbarto |
1 |
# Created by: elbarto |
2 |
# $FreeBSD: head/emulators/bsnes/Makefile 306472 2012-10-26 20:08:09Z jhale $ |
2 |
# $FreeBSD: head/emulators/bsnes/Makefile 306472 2012-10-26 20:08:09Z jhale $ |
3 |
|
3 |
|
4 |
PORTNAME= bsnes |
4 |
PORTNAME= higan |
5 |
PORTVERSION= 0.91 |
5 |
PORTVERSION= 0.92 |
6 |
CATEGORIES= emulators |
6 |
CATEGORIES= emulators |
7 |
MASTER_SITES= GOOGLE_CODE |
7 |
MASTER_SITES= GOOGLE_CODE |
8 |
DISTNAME= ${PORTNAME}_v${PORTVERSION:S/.//}-source |
8 |
DISTNAME= ${PORTNAME}_v${PORTVERSION:S/.//}-source |
9 |
|
9 |
|
10 |
MAINTAINER= cyberbotx@cyberbotx.com |
10 |
MAINTAINER= cyberbotx@cyberbotx.com |
11 |
COMMENT= Super Nintendo/Super Famicom emulator |
11 |
COMMENT= Nintendo multi-system emulator |
12 |
|
12 |
|
13 |
USE_XZ= yes |
13 |
USE_XZ= yes |
14 |
USE_GMAKE= yes |
14 |
USE_GMAKE= yes |
15 |
USE_GCC= 4.6+ |
15 |
USE_GCC= 4.6+ |
16 |
USE_PKGCONFIG= build |
16 |
USE_PKGCONFIG= build |
|
|
17 |
USE_LDCONFIG= yes |
17 |
|
18 |
|
18 |
ONLY_FOR_ARCHS= i386 amd64 |
19 |
ONLY_FOR_ARCHS= i386 amd64 |
19 |
MAKE_ENV+= c="${CC} -std=gnu99" cpp="${CXX} -std=gnu++0x" |
20 |
MAKE_ENV+= c="${CC} -std=gnu99" cpp="${CXX} -std=gnu++0x" |
20 |
|
21 |
|
21 |
OPTIONS_SINGLE= PROFILE GUI |
22 |
OPTIONS_SINGLE= PROFILE GUI |
22 |
OPTIONS_SINGLE_PROFILE= ACCURACY COMPATIBILITY PERFORMANCE |
23 |
OPTIONS_SINGLE_PROFILE= ACCURACY BALANCED PERFORMANCE |
23 |
OPTIONS_SINGLE_GUI= GTK2 QT4 |
24 |
OPTIONS_SINGLE_GUI= GTK2 QT4 |
24 |
OPTIONS_MULTI= VIDEO SOUND INPUT |
25 |
OPTIONS_MULTI= VIDEO SOUND INPUT |
25 |
OPTIONS_MULTI_VIDEO= GLX SDL XV |
26 |
OPTIONS_MULTI_VIDEO= GLX SDL XV |
26 |
OPTIONS_MULTI_SOUND= AO OPENAL OSS PULSEAUDIO |
27 |
OPTIONS_MULTI_SOUND= AO OPENAL OSS PULSEAUDIO |
27 |
OPTIONS_MULTI_INPUT= INPUT_SDL INPUT_X |
28 |
OPTIONS_MULTI_INPUT= INPUT_SDL INPUT_X |
28 |
OPTIONS_DEFAULT= COMPATIBILITY GTK2 GLX XV SDL \ |
29 |
OPTIONS_DEFAULT= BALANCED GTK2 GLX XV SDL \ |
29 |
OSS INPUT_SDL INPUT_X |
30 |
OSS INPUT_SDL INPUT_X |
30 |
|
31 |
|
31 |
ACCURACY_DESC= Favor accuracy over compatibility |
32 |
ACCURACY_DESC= Use accuracy profile |
32 |
COMPATIBILITY_DESC= Favor compatibility over accuracy |
33 |
BALACNED_DESC= Use balanced profile |
33 |
PERFORMANCE_DESC= Favor performance over accuracy |
34 |
PERFORMANCE_DESC= Use performance profile |
34 |
GTK2_DESC= Build with GTK+2 GUI |
35 |
GTK2_DESC= Build with GTK+2 GUI |
35 |
QT4_DESC= Build with QT4 GUI |
36 |
QT4_DESC= Build with QT4 GUI |
36 |
GLX_DESC= Build GLX video driver |
37 |
GLX_DESC= Build GLX video driver |
Lines 47-54
Link Here
|
47 |
|
48 |
|
48 |
.if ${PORT_OPTIONS:MACCURACY} |
49 |
.if ${PORT_OPTIONS:MACCURACY} |
49 |
MAKE_ENV+= profile="accuracy" |
50 |
MAKE_ENV+= profile="accuracy" |
50 |
.elif ${PORT_OPTIONS:MCOMPATIBILITY} |
51 |
.elif ${PORT_OPTIONS:MBALANCED} |
51 |
MAKE_ENV+= profile="compatibility" |
52 |
MAKE_ENV+= profile="balanced" |
52 |
.else |
53 |
.else |
53 |
MAKE_ENV+= profile="performance" |
54 |
MAKE_ENV+= profile="performance" |
54 |
.endif |
55 |
.endif |
Lines 112-121
Link Here
|
112 |
-e 's|%%VIDEO%%|${VIDEO_DRIVER}|' \ |
113 |
-e 's|%%VIDEO%%|${VIDEO_DRIVER}|' \ |
113 |
-e 's|%%AUDIO%%|${AUDIO_DRIVER}|' \ |
114 |
-e 's|%%AUDIO%%|${AUDIO_DRIVER}|' \ |
114 |
-e 's|%%INPUT%%|${INPUT_DRIVER}|' \ |
115 |
-e 's|%%INPUT%%|${INPUT_DRIVER}|' \ |
115 |
${WRKSRC}/bsnes/target-ethos/Makefile |
116 |
${WRKSRC}/higan/target-ethos/Makefile |
116 |
|
117 |
|
117 |
do-build: |
118 |
do-build: |
118 |
.for d in bsnes purify |
119 |
.for d in higan ananke |
119 |
.if ${PORT_OPTIONS:MQT4} |
120 |
.if ${PORT_OPTIONS:MQT4} |
120 |
cd ${WRKSRC}/${d}/phoenix/qt && ${MOC} -i -o platform.moc platform.moc.hpp |
121 |
cd ${WRKSRC}/${d}/phoenix/qt && ${MOC} -i -o platform.moc platform.moc.hpp |
121 |
.endif |
122 |
.endif |
Lines 123-132
Link Here
|
123 |
.endfor |
124 |
.endfor |
124 |
|
125 |
|
125 |
do-install: |
126 |
do-install: |
126 |
${INSTALL_PROGRAM} ${WRKSRC}/bsnes/out/bsnes ${PREFIX}/bin/ |
127 |
${INSTALL_LIB} ${WRKSRC}/ananke/libananke.so ${PREFIX}/lib/libananke.so.1 |
127 |
${INSTALL_PROGRAM} ${WRKSRC}/purify/purify ${PREFIX}/bin/snespurify |
128 |
${LN} -sf ${PREFIX}/lib/libananke.so.1 ${PREFIX}/lib/libananke.so |
128 |
${INSTALL_DATA} ${WRKSRC}/bsnes/data/bsnes.png ${PREFIX}/share/pixmaps/ |
129 |
${INSTALL_PROGRAM} ${WRKSRC}/higan/out/higan ${PREFIX}/bin/ |
|
|
130 |
${INSTALL_DATA} ${WRKSRC}/higan/data/higan.png ${PREFIX}/share/pixmaps/ |
129 |
${MKDIR} ${PREFIX}/share/applications |
131 |
${MKDIR} ${PREFIX}/share/applications |
130 |
${INSTALL_DATA} ${WRKSRC}/bsnes/data/bsnes.desktop ${PREFIX}/share/applications/ |
132 |
${INSTALL_DATA} ${WRKSRC}/higan/data/higan.desktop ${PREFIX}/share/applications/ |
131 |
|
133 |
|
132 |
.include <bsd.port.mk> |
134 |
.include <bsd.port.mk> |