pkgsrc/emulators/libretro-pcsx-rearmed/Makefile
tnn c9632aa0f3 Address issues raised by agc@ to make the github master site handling
more pkgsrcesque.

1) turn _USE_GITHUB into an internal infrastructure variable
2) put back MASTER_SITES in packages' Makefiles.
3) encode the account in the master site URL, remove GH_ACCOUNT
4) rename GH_PROJECT to GITHUB_PROJECT
5) rename GH_TAGNAME to GITHUB_TAG and allow it to accept commit hash
   as well as tag. GH_COMMIT is gone.
6) turn on this functionality when MASTER_SITES matches a predefined github
   pattern instead of via explicit USE_GITHUB setting.
2015-03-07 21:14:32 +00:00

44 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2015/03/07 21:14:32 tnn Exp $
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"