forked from freebsd/freebsd-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (31 loc) · 816 Bytes
/
Makefile
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
PORTNAME= gngb
PORTVERSION= 20060309
PORTREVISION= 11
CATEGORIES= emulators
MASTER_SITES= http://m.peponas.free.fr/gngb/download/
MAINTAINER= [email protected]
COMMENT= GameBoy(tm) emulator
WWW= http://m.peponas.free.fr/gngb/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake localbase sdl
USE_CSTD= gnu89
USE_SDL= sdl
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
PLIST_FILES= bin/gngb \
share/man/man1/gngb.1.gz
OPTIONS_DEFINE= OPENGL
OPENGL_USES= gl
OPENGL_USE= GL=gl
OPENGL_CONFIGURE_ENABLE=gl
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD
CFLAGS+= -Wno-error=int-conversion
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|"$$SDL_CONFIG" = yes|-n "$$SDL_CONFIG"|g ; \
s|sdl-config |$$SDL_CONFIG |g ; \
s|$$OPT||g' ${WRKSRC}/configure
.include <bsd.port.post.mk>