freebsd-ports/emulators/snes9express/Makefile
Alex Kozlov b3cb579889 - Unbreak build [1]
- Support STAGEDIR

PR:	ports/178160 (based on) [1]
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-10-14 11:20:46 +00:00

45 lines
1.1 KiB
Makefile

# Created by: Travis Poppe <tlp@liquidx.org>
# $FreeBSD$
PORTNAME= snes9express
PORTVERSION= 1.43
PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= GTK interface for snes9x
LICENSE= GPLv2 # (or later)
RUN_DEPENDS= snes9x:${PORTSDIR}/emulators/snes9x
USE_GNOME= gtk20
USES= gettext pkgconfig
GNU_CONFIGURE= yes
BROKEN_sparc64= does not compile on sparc64
PORTDOCS= AUTHORS ChangeLog NEWS README
PLIST_FILES= bin/${PORTNAME} \
%%DATADIR%%/snes.s9xskin \
%%DATADIR%%/snsp.s9xskin
PLIST_DIRS= %%DATADIR%%
# fix build with clang
CFLAGS+= -Wno-return-type
post-patch:
@${REINPLACE_CMD} -e 's|(gzFile\*)||' \
-e 's|\*fptr;|fptr;|' ${WRKSRC}/rom.cc
@${REINPLACE_CMD} -e 's|<endian\.h>|<sys/endian.h>|' \
${WRKSRC}/s9xskin.cc
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.s9xskin ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>