2015-03-07 22:14:32 +01:00
|
|
|
# $NetBSD: Makefile,v 1.6 2015/03/07 21:14:32 tnn Exp $
|
2015-02-05 00:04:17 +01:00
|
|
|
|
2015-03-07 15:25:48 +01:00
|
|
|
DISTNAME= libretro-pcsx-rearmed-0.22
|
2015-02-05 00:04:17 +01:00
|
|
|
CATEGORIES= emulators
|
2015-03-07 22:14:32 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=notaz/}
|
|
|
|
GITHUB_PROJECT= pcsx_rearmed
|
|
|
|
GITHUB_TAG= r22
|
2015-02-05 00:04:17 +01:00
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2015-02-10 18:51:37 +01:00
|
|
|
HOMEPAGE= http://notaz.gp2x.de/pcsx_rearmed.php
|
2015-02-05 00:04:17 +01:00
|
|
|
COMMENT= Libretro core based on the PCSX ReARMed emulator
|
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
USE_TOOLS+= gmake
|
2015-02-10 18:51:37 +01:00
|
|
|
MAKE_FILE= Makefile.libretro
|
2015-02-05 00:04:17 +01:00
|
|
|
|
|
|
|
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
|
|
|
|
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-ldl
|
2015-02-05 18:17:11 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2015-02-05 00:04:17 +01:00
|
|
|
.if !empty(MACHINE_ARCH:M*arm*hf)
|
2015-02-10 18:51:37 +01:00
|
|
|
PCSX_REARMED_PLATFORM= ${MACHINE_ARCH}-hardfloat
|
|
|
|
.else
|
|
|
|
PCSX_REARMED_PLATFORM= unix
|
2015-02-05 00:04:17 +01:00
|
|
|
.endif
|
|
|
|
|
2015-02-10 18:51:37 +01:00
|
|
|
MAKE_ENV+= platform="${PCSX_REARMED_PLATFORM}"
|
|
|
|
|
2015-02-05 18:17:11 +01:00
|
|
|
.if !empty(MACHINE_ARCH:M*arm*)
|
|
|
|
# only ARM-specific options for now, and options framework
|
|
|
|
#insists on having at least one option, so only pull it in for ARM
|
|
|
|
.include "options.mk"
|
|
|
|
.endif
|
|
|
|
|
2015-02-05 00:04:17 +01:00
|
|
|
do-install:
|
2015-02-10 18:51:37 +01:00
|
|
|
${INSTALL_LIB} ${WRKSRC}/pcsx_rearmed_libretro.so \
|
2015-02-05 00:04:17 +01:00
|
|
|
${DESTDIR}${PREFIX}/lib/libretro/pcsx_rearmed_libretro.so
|
|
|
|
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|