|
Lines 6-13
Link Here
|
| 6 |
# |
6 |
# |
| 7 |
|
7 |
|
| 8 |
PORTNAME= gngeo |
8 |
PORTNAME= gngeo |
| 9 |
PORTVERSION= 0.6.4 |
9 |
PORTVERSION= 0.6.10 |
| 10 |
CATEGORIES= emulators |
10 |
CATEGORIES= emulators games |
| 11 |
MASTER_SITES= http://m.peponas.free.fr/gngeo/download/ |
11 |
MASTER_SITES= http://m.peponas.free.fr/gngeo/download/ |
| 12 |
DIST_SUBDIR= ${PORTNAME} |
12 |
DIST_SUBDIR= ${PORTNAME} |
| 13 |
|
13 |
|
|
Lines 16-30
Link Here
|
| 16 |
|
16 |
|
| 17 |
RESTRICTED= The Neo-Geo BIOS can not be redistributed |
17 |
RESTRICTED= The Neo-Geo BIOS can not be redistributed |
| 18 |
|
18 |
|
|
|
19 |
USE_X_PREFIX= yes |
| 19 |
USE_GMAKE= yes |
20 |
USE_GMAKE= yes |
| 20 |
USE_SDL= image sdl |
21 |
USE_SDL= image sdl |
| 21 |
USE_GL= yes |
22 |
USE_GL= yes |
| 22 |
USE_REINPLACE= yes |
|
|
| 23 |
|
23 |
|
| 24 |
GNU_CONFIGURE= yes |
24 |
GNU_CONFIGURE= yes |
| 25 |
CONFIGURE_ARGS= --program-transform-name="" |
25 |
CONFIGURE_ARGS= --program-transform-name="" |
| 26 |
CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include" \ |
26 |
CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include ${CFLAGS}" \ |
| 27 |
LDFLAGS="`${SDL_CONFIG} --libs`" |
27 |
LDFLAGS="`${SDL_CONFIG} --libs`" \ |
| 28 |
|
28 |
|
| 29 |
OPTIONS= GUI "Enable GUI support (experimental)" off \ |
29 |
OPTIONS= GUI "Enable GUI support (experimental)" off \ |
| 30 |
I386ASM "Use i386 optimization" on \ |
30 |
I386ASM "Use i386 optimization" on \ |
|
Lines 33-63
Link Here
|
| 33 |
|
33 |
|
| 34 |
MAN1= gngeo.1 |
34 |
MAN1= gngeo.1 |
| 35 |
|
35 |
|
| 36 |
NGBIOS= neo-geo.rom ng-lo.rom ng-sfix.rom ng-sm1.rom |
|
|
| 37 |
|
| 38 |
post-patch: |
| 39 |
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}| ; \ |
| 40 |
s|-mcpu=$$target_cpu||' \ |
| 41 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
| 42 |
|
| 43 |
post-install: |
| 44 |
# Neo-Geo BIOS |
| 45 |
.for f in ${NGBIOS} |
| 46 |
@${INSTALL_DATA} ${DISTDIR}/${f} ${DATADIR} |
| 47 |
.endfor |
| 48 |
|
| 49 |
# Examples |
| 50 |
@${MKDIR} ${EXAMPLESDIR} |
| 51 |
@${INSTALL_DATA} ${WRKSRC}/sample_gngeorc ${EXAMPLESDIR}/gngeorc |
| 52 |
|
| 53 |
.include <bsd.port.pre.mk> |
36 |
.include <bsd.port.pre.mk> |
| 54 |
|
37 |
|
| 55 |
.for f in ${NGBIOS} |
|
|
| 56 |
. if !exists(${DISTDIR}/${DIST_SUBDIR}/${f}) || defined(PACKAGE_BUILDING) |
| 57 |
IGNORE?= Could not find ${DISTDIR}/${DIST_SUBDIR}/${f}. You need to manually download a copy of the Neo-Geo BIOS, extract the files and place them into ${DISTDIR}/${DIST_SUBDIR}. It is available at http://www.ocf.berkeley.edu/~wwu/downloads/neogeo.zip |
| 58 |
. endif |
| 59 |
.endfor |
| 60 |
|
| 61 |
.if defined(WITH_I386ASM) || defined(WITH_RAZE) || defined(WITH_STAR) |
38 |
.if defined(WITH_I386ASM) || defined(WITH_RAZE) || defined(WITH_STAR) |
| 62 |
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm |
39 |
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm |
| 63 |
.endif |
40 |
.endif |
|
Lines 85-89
Link Here
|
| 85 |
.else |
62 |
.else |
| 86 |
CONFIGURE_ARGS+= --enable-gen68k |
63 |
CONFIGURE_ARGS+= --enable-gen68k |
| 87 |
.endif |
64 |
.endif |
|
|
65 |
|
| 66 |
post-patch: |
| 67 |
@${REINPLACE_CMD} -e 's|%%SDL_CONFIG%%|${SDL_CONFIG}| ; \ |
| 68 |
s|-mcpu=$$target_cpu||' \ |
| 69 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
| 70 |
@${REINPLACE_CMD} -e 's|-O3||g' ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
| 71 |
|
| 72 |
post-install: |
| 73 |
@${MKDIR} ${EXAMPLESDIR} |
| 74 |
@${INSTALL_DATA} ${WRKSRC}/sample_gngeorc ${EXAMPLESDIR}/gngeorc |
| 88 |
|
75 |
|
| 89 |
.include <bsd.port.post.mk> |
76 |
.include <bsd.port.post.mk> |