blob: 5bcac5342f470872f8dc19f1c56dcaf95f2b1047 (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Created by: Yukihiro Nakai <nakai@FreeBSD.org>
# $FreeBSD$
PORTNAME= cingb
DISTVERSIONPREFIX= v
DISTVERSION= 0.32
CATEGORIES= emulators
MAINTAINER= 0mp@FreeBSD.org
COMMENT= Yet another Nintendo Game Boy emulator
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= tar:bzip2 xorg
USE_XORG= x11 xext xv
USE_GITHUB= yes
GH_ACCOUNT= nakal
MAKE_ENV= X11BASE="${LOCALBASE}"
ALL_TARGET= standard
LDFLAGS+= -lpthread
PLIST_FILES= bin/cingb \
bin/cingb_conf \
man/man6/cingb.6.gz
PORTDOCS= README.FAQ README.md
OPTIONS_DEFINE= DEBUG DOCS
OPTIONS_SUB= yes
DEBUG_ALL_TARGET+= debug
DEBUG_PLIST_FILES= bin/cingb_deb
DEBUG_PORTDOCS= DEBUGGER
.include <bsd.port.pre.mk>
.if ${ARCH} != "sparc64" && ${ARCH} != "powerpc"
CPPFLAGS+= -DUSE_LITTLE_ENDIAN
.endif
do-configure:
@cd ${WRKSRC} && ${SED} -e \
's|%%%endian%%%|$${CPPFLAGS}|g ; \
s|^CFLAGS|#CFLAGS|g ; \
s|%%%prefix-setup%%%||g ; \
s|-I/usr/include -I/usr/include/glide||g ; \
s|-I/usr/include/X11||g ; \
s|%%%pthread%%%|$${LDFLAGS}|g ; \
s|%%%libext%%%|-lXext|g ; \
s|%%%libsocket%%%||g ; \
s|%%%libnsl%%%||g ; \
s|%%%LIBXV%%%|-lXv|g ; \
s|^OPTMZ|#OPTMZ|g ; \
s|%%%joystick%%%|-DBSD_JOYSTICK|g ; \
s|%%%framebuffer%%%||g ; \
s|%%%mitshm%%%|-DMIT_SHM|g ; \
s|%%%XVDEF%%%|-DWITH_XVIDEO|g ; \
s|%%%OSDEF%%%|-D_BSD|g ; \
s|%%%sound%%%|-DSOUND|g ; \
s|%%%joyconf%%%|conf|g' < Makefile.templ > Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cingb ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/cingb_conf ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/freebsd/cingb.6 ${STAGEDIR}${MANPREFIX}/man/man6/
do-install-DEBUG-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DEBUGGER ${STAGEDIR}${DOCSDIR}
${INSTALL_PROGRAM} ${WRKSRC}/cingb_deb ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.FAQ ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>
|