freebsd-ports/emulators/zsnes/Makefile
Stanislav Sedov 0d2725682b - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directory
structure (i.e. include/SDL for includes and sdl-config for configuration
   binary)
 - Update graphics/sdl_ttf to version 2.0.8
 - Update graphics/sdl_image to version 1.2.5
 - Update audio/sdl_mixer to version 1.2.7
 - Update net/sdl_net to version 1.2.6
 - Update Mk/bsd.sdl.mk accordingly
 - Fix dependent ports to fit the new directory structure and avoid several
   API breakages
 - Bump up portrevisions for all dependent ports to allow them to be upgraded
   by portupgrade/portmaster etc tools

Approved by:    kris (portmgr), sem (mentor)
2006-09-20 11:21:59 +00:00

82 lines
2 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
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= zsnes${PORTVERSION:S/.//}src
MAINTAINER= freebsd-ports@stsp.in-berlin.de
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
OPTIONS= X11 "Enable X11 video driver" on \
OPENGL "Enable OpenGL video driver" off
USE_SDL= sdl
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
ALL_TARGET= ALL
MAN1= zsnes.1
PLIST_FILES= bin/zsnes
CFLAGS+= -I${LOCALBASE}/include
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+=--without-x
PKGNAMESUFFIX= -nox11
.else
CONFIGURE_ARGS+=--with-x
CFLAGS+= -I${X11BASE}/include
CPPFLAGS+= -I${X11BASE}/include
LDFLAGS+= -L${X11BASE}/lib
.endif
.if defined(WITH_OPENGL)
USE_GL= yes
CONFIGURE_ARGS+=--enable-opengl
.else
CONFIGURE_ARGS+=--disable-opengl
.endif
post-patch:
@${REINPLACE_CMD} -e \
's| -pipe||g ; \
s| -I/usr/local/include||g ; \
s|^VERSION=1.41|VERSION=${PORTVERSION}|; \
s| -D__FreeBSD__||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.post.mk>