Lines 6-53
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= gngb |
8 |
PORTNAME= gngb |
9 |
PORTVERSION= 20030809 |
9 |
PORTVERSION= 20040115 |
10 |
CATEGORIES= emulators |
10 |
CATEGORIES= emulators |
11 |
MASTER_SITES= http://membres.lycos.fr/frogus/gngb/download/ \ |
11 |
MASTER_SITES= http://m.peponas.free.fr/gngb/download/ |
12 |
http://m.peponas.free.fr/gngb/download/ |
|
|
13 |
DISTNAME= ${PORTNAME}-${PORTVERSION} |
14 |
|
12 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= ports@FreeBSD.org |
16 |
COMMENT= GameBoy(tm) emulator |
14 |
COMMENT= GameBoy(tm) emulator |
17 |
|
15 |
|
|
|
16 |
USE_X_PREFIX= yes |
18 |
USE_SDL= sdl |
17 |
USE_SDL= sdl |
19 |
GNU_CONFIGURE= yes |
18 |
USE_GETOPT_LONG= yes |
20 |
USE_REINPLACE= yes |
19 |
USE_REINPLACE= yes |
21 |
USE_GMAKE= yes |
20 |
USE_GMAKE= yes |
22 |
USE_GETOPT_LONG=yes |
21 |
GNU_CONFIGURE= yes |
23 |
USE_XLIB= yes |
22 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
24 |
USE_X_PREFIX= yes |
23 |
|
25 |
CONFIGURE_ENV= CFLAGS="-I${X11BASE}/include" \ |
24 |
PLIST_FILES= bin/gngb |
26 |
LDFLAGS="-L${X11BASE}/lib" |
25 |
|
27 |
PORT_CFLAGS= -DSDL_YUV -I${LOCALBASE}/include -I${LOCALBASE}/include/SDL11 -I${X11BASE}/include |
26 |
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include |
|
|
27 |
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib |
28 |
|
28 |
|
29 |
pre-everything:: |
|
|
30 |
.if !defined(WITH_OPTIMIZED_CFLAGS) |
31 |
@${ECHO_MSG} "You can enable additional compilation optimizations" |
32 |
@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS" |
33 |
.endif |
34 |
.if defined(WITH_GL) |
29 |
.if defined(WITH_GL) |
35 |
CONFIGURE_ARGS= --with-gl |
30 |
USE_GL= yes |
36 |
PORT_CFLAGS+= -DSDL_GL |
|
|
37 |
.else |
31 |
.else |
|
|
32 |
CONFIGURE_ARGS+= --disable-gl |
33 |
.endif |
34 |
|
35 |
pre-everything:: |
36 |
.if !defined(WITH_GL) |
38 |
@${ECHO_MSG} |
37 |
@${ECHO_MSG} |
39 |
@${ECHO_MSG} "You can enable OpenGL support by defining WITH_GL" |
38 |
@${ECHO_MSG} "You can enable OpenGL support by defining WITH_GL" |
40 |
@${ECHO_MSG} |
39 |
@${ECHO_MSG} |
41 |
.endif |
40 |
.endif |
42 |
|
41 |
|
43 |
pre-configure: |
42 |
post-patch: |
44 |
@${REINPLACE_CMD} -e 's|sdl-config|sdl11-config|g; \ |
43 |
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ |
45 |
s|-lSDL|-lSDL-1.1|g; \ |
44 |
s|"$$SDL_CONFIG" = yes|-n "$$SDL_CONFIG"|g ; \ |
46 |
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure |
45 |
s|sdl-config |$$SDL_CONFIG |g ; \ |
47 |
|
46 |
s|-lSDL|-lSDL-1.1|g ; \ |
48 |
post-configure: |
47 |
s|$$OPT||g' ${WRKSRC}/configure |
49 |
.if !defined(WITH_OPTIMIZED_CFLAGS) |
|
|
50 |
@${REINPLACE_CMD} -e 's|\(CFLAGS =\).*|\1 ${PORT_CFLAGS} ${CFLAGS}|' ${WRKSRC}/src/Makefile |
51 |
.endif |
52 |
|
48 |
|
53 |
.include <bsd.port.mk> |
49 |
.include <bsd.port.mk> |