cafeb553e3
- Add upstream patch to fix build with latest devel/rgbds 0.6.0 dep - Bump PORTREVISION
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
PORTNAME= sameboy
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.15.6
|
|
PORTREVISION= 1
|
|
CATEGORIES= emulators games
|
|
|
|
PATCH_SITES= https://github.com/LIJI32/SameBoy/commit/
|
|
PATCHFILES= c0966ceebaf1cf2518427ffa3c0189d8f96ab5aa.patch:-p1 # https://github.com/LIJI32/SameBoy/pull/501
|
|
|
|
MAINTAINER= eduardo@FreeBSD.org
|
|
COMMENT= Game Boy and Game Boy Color emulator written in C
|
|
WWW= https://sameboy.github.io/
|
|
|
|
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 \
|
|
WARNINGS="-Wno-error"
|
|
ALL_TARGET= sdl
|
|
|
|
PORTSCOUT= limit:^d\.d+\.
|
|
|
|
OPTIONS_DEFINE= LIBRETRO
|
|
OPTIONS_DEFAULT= LIBRETRO
|
|
OPTIONS_SUB= yes
|
|
|
|
LIBRETRO_DESC= Build libretro core
|
|
|
|
post-build-LIBRETRO-on:
|
|
@${DO_MAKE_BUILD} -C ${WRKSRC} libretro
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
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>
|