forked from opnsense/ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (34 loc) · 1007 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
42
43
44
45
46
47
# Created by: Ying-Chieh Liao <[email protected]>
# $FreeBSD$
PORTNAME= gnuboy
PORTVERSION= 1.0.3
PORTREVISION= 11
CATEGORIES= emulators games
MASTER_SITES= http://www.sourcefiles.org/Emulators/Videogames/
MAINTAINER= [email protected]
COMMENT= Nintendo GameBoy emulator
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libvga.so:graphics/svgalib
USES= autoreconf compiler
USE_SDL= sdl
USE_XORG= x11
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-sdl --enable-optimize=low
PORTDOCS= *
PLIST_FILES= bin/sdlgnuboy bin/sgnuboy bin/xgnuboy
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == "clang"
CONFIGURE_ARGS+=--disable-asm
.endif
do-install:
.for i in sdlgnuboy sgnuboy xgnuboy
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/bin)
.endfor
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/docs && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR})
.include <bsd.port.post.mk>