570342be45
ZSNES is a complete, featureful and highly optimized Super Nintendo emulator written mostly in x86 assembler. It requires a CPU which understands MMX instructions.
59 lines
1.3 KiB
Makefile
59 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2002/03/04 00:57:58 naddy Exp $
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
COMMENT= "Super Nintendo emulator for x86"
|
|
VERSION= 1.337
|
|
DISTNAME= zsnes-${VERSION}
|
|
CATEGORIES= emulators games
|
|
HOMEPAGE= http://www.zsnes.com/
|
|
NEED_VERSION= 1.507
|
|
|
|
MAINTAINER= Wilbern Cobb <vedge@csoft.org>
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= zsnes
|
|
DISTFILES= zsnes${VERSION:S/.//}src${EXTRACT_SUFX}
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
BUILD_DEPENDS= nasm::devel/nasm
|
|
LIB_DEPENDS= SDL.:sdl-*-!no_x11:devel/sdl \
|
|
png.2::graphics/png
|
|
|
|
USE_X11= Yes
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE= autoconf
|
|
CONFIGURE_ARGS= --with-sdl-prefix=${LOCALBASE} \
|
|
--with-png \
|
|
--with-opengl \
|
|
--target=${MACHINE}-unknown-openbsd${OPSYS_VER}
|
|
CONFIGURE_ENV+= CFLAGS=${CFLAGS:N-O*}
|
|
ALL_TARGET=
|
|
|
|
DOCS= opengl.txt readme.txt srcinfo.txt todo.txt \
|
|
whatsnew.txt
|
|
|
|
WRKSRC= ${WRKDIST}/src
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
post-extract:
|
|
@ln -fs ${FILESDIR}/sdl_draw.asm ${WRKSRC}/linux
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/zsnes
|
|
cd ${WRKBUILD} && \
|
|
${INSTALL_PROGRAM} zsnes ${PREFIX}/bin
|
|
cd ${WRKSRC} && \
|
|
${INSTALL_MAN} linux/zsnes.man ${PREFIX}/man/man1/zsnes.1
|
|
cd ${WRKDIST} && \
|
|
${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/zsnes
|
|
|
|
.include <bsd.port.mk>
|