pkgsrc/emulators/libretro-pcsx-rearmed/Makefile

45 lines
1.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.6 2015/03/07 21:14:32 tnn Exp $
2015-03-07 15:25:48 +01:00
DISTNAME= libretro-pcsx-rearmed-0.22
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=notaz/}
GITHUB_PROJECT= pcsx_rearmed
GITHUB_TAG= r22
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://notaz.gp2x.de/pcsx_rearmed.php
COMMENT= Libretro core based on the PCSX ReARMed emulator
LICENSE= gnu-gpl-v2
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
MAKE_FILE= Makefile.libretro
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
BUILDLINK_TRANSFORM+= rm:-ldl
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_ARCH:M*arm*hf)
PCSX_REARMED_PLATFORM= ${MACHINE_ARCH}-hardfloat
.else
PCSX_REARMED_PLATFORM= unix
.endif
MAKE_ENV+= platform="${PCSX_REARMED_PLATFORM}"
.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
do-install:
${INSTALL_LIB} ${WRKSRC}/pcsx_rearmed_libretro.so \
${DESTDIR}${PREFIX}/lib/libretro/pcsx_rearmed_libretro.so
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"