blob: fa2341484b23357d9bc5a69a9d38533d7d4360c7 (
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
|
PORTNAME= sameboy
DISTVERSIONPREFIX= v
DISTVERSION= 0.14.2
CATEGORIES= emulators games
MAINTAINER= tobik@FreeBSD.org
COMMENT= Game Boy and Game Boy Color emulator written in C
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= rgbds>0:devel/rgbds
USES= compiler:c11 desktop-file-utils gl gmake pkgconfig sdl \
shared-mime-info
USE_GITHUB= yes
GH_ACCOUNT= LIJI32
GH_PROJECT= SameBoy
USE_GL= gl
USE_SDL= sdl2
MAKE_ARGS= FREEDESKTOP=true
ALL_TARGET= sdl
# -flto
LDFLAGS+= -fuse-ld=lld
OPTIONS_DEFINE= LIBRETRO
OPTIONS_DEFAULT= LIBRETRO
OPTIONS_SUB= yes
LIBRETRO_DESC= Build libretro core
LIBRETRO_ALL_TARGET= libretro
post-install-LIBRETRO-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/libretro
${INSTALL_LIB} ${WRKSRC}/build/bin/sameboy_libretro.so \
${STAGEDIR}${PREFIX}/lib/libretro
.include <bsd.port.mk>
|