f2fc2d60ae
Ports Collection documentation and use 'ARCH' rather than 'MACHINE_ARCH'.
59 lines
1.5 KiB
Makefile
59 lines
1.5 KiB
Makefile
# New ports collection makefile for: zsnes
|
|
# Date created: Fri May 4 13:10:11 CEST 2001
|
|
# Whom: Stijn Hoop <stijn@win.tue.nl>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= zsnes
|
|
PORTVERSION= 1.42
|
|
PORTEPOCH= 1
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
DISTNAME= zsnes${PORTVERSION:S/.//}src
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Intel x86 only Super Nintendo Entertainment System (SNES) Emulator
|
|
|
|
# This must be >= 0.98!
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
|
|
|
|
# non-portable, for a portable emulator see emulators/snes9x
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src
|
|
|
|
USE_X_PREFIX= yes
|
|
USE_SDL= sdl
|
|
USE_GL= yes
|
|
USE_REINPLACE= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yyes
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
ALL_TARGET= ALL
|
|
|
|
MAN1= zsnes.1
|
|
PLIST_FILES= bin/zsnes
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include
|
|
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's| -pipe||g ; \
|
|
s| -I/usr/local/include||g ; \
|
|
s| -I/usr/include||g ; \
|
|
s| -O3 .* -s||g' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e \
|
|
's|@CXX@ @CFLAGS@ -o|@CXX@ @CXXFLAGS@ @CPPFLAGS@ -o|g ; \
|
|
s|@CC@ @CFLAGS@ -o|@CC@ @CFLAGS@ @CPPFLAGS@ -o|g' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/zsnes ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/linux/zsnes.1 ${MANPREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|