aboutsummaryrefslogblamecommitdiff
path: root/games/libretro-snes9x2010/Makefile
blob: 837af11a56c4ec69267113f6a5dd62732e2f11c1 (plain) (tree)
1
2
3
4
5
6
7
8
                                   
                          




                                                                
                                                               







                                                  


                          
                       
 
                                                   
 







                                                                     
           

                                                                                          
 
                           
PORTNAME=	libretro-snes9x2010
PORTVERSION=	0.20210214
CATEGORIES=	games

MAINTAINER=	menelkir@itroll.org
COMMENT=	Snes9x - Portable Super Nintendo emulator (1.52)

# Commercial users must seek permission from copyright holders.
LICENSE=	PS
LICENSE_NAME=	PS
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept

USES=		compiler:c++11-lib gmake
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	libretro
GH_PROJECT=	snes9x2010
GH_TAGNAME=	a3e65b8

PLIST_FILES=	lib/libretro/snes9x2010_libretro.so

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000
MAKE_ENV=	LTO=
.else
MAKE_ENV=	LTO=-flto  # may drop this branch on next port update
.endif

do-install:
	@${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro
	${INSTALL_LIB} ${WRKSRC}/snes9x2010_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro

.include <bsd.port.post.mk>