2013-04-28 23:20:28 +02:00
|
|
|
# Created by: Yukihiro Nakai<Nakai@Mlab.t.u-tokyo.ac.jp>
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1997-11-02 15:56:43 +01:00
|
|
|
|
2000-04-12 06:56:17 +02:00
|
|
|
PORTNAME= snes9x
|
2007-10-04 07:43:04 +02:00
|
|
|
PORTVERSION= 1.51
|
2014-12-25 21:54:41 +01:00
|
|
|
PORTREVISION= 5
|
1997-11-02 15:56:43 +01:00
|
|
|
CATEGORIES= emulators
|
2006-12-27 18:27:37 +01:00
|
|
|
MASTER_SITES= http://files.ipherswipsite.com/snes9x/ \
|
|
|
|
http://www.lysator.liu.se/snes9x/${PORTVERSION}/
|
2004-05-30 01:59:56 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
1997-11-02 15:56:43 +01:00
|
|
|
|
2006-12-27 18:27:37 +01:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Super Nintendo Entertainment System(SNES) Emulator
|
1997-11-02 15:56:43 +01:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
|
2008-03-22 09:55:40 +01:00
|
|
|
USE_XORG= x11 sm ice xext
|
2014-05-26 15:13:46 +02:00
|
|
|
USES= gmake tar:bzip2
|
2006-12-27 18:27:37 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --without-extensions
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2015-03-24 23:17:41 +01:00
|
|
|
MAKE_ARGS= INCLUDES="-I${WRKSRC}/unzip -I${WRKSRC} -I${LOCALBASE}/include" \
|
|
|
|
LDLIBS="-lpthread -L${LOCALBASE}/lib" \
|
2004-05-30 01:59:56 +02:00
|
|
|
OPTIMISE="${CXXFLAGS}"
|
2006-12-27 18:27:37 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
1997-11-02 15:56:43 +01:00
|
|
|
|
2007-03-24 13:22:22 +01:00
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
2006-12-27 18:27:37 +01:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2013-04-28 23:20:28 +02:00
|
|
|
OPTIONS_DEFINE= DEBUG OPENGL SCREENSHOT JMA NETPLAY DOCS
|
|
|
|
OPTIONS_DEFINE_i386= ASM MMX
|
|
|
|
OPTIONS_DEFAULT_i386= MMX
|
|
|
|
OPTIONS_DEFAULT= SCREENSHOT JMA NETPLAY
|
|
|
|
|
|
|
|
SCREENSHOT_DESC= Enable screenshot support
|
|
|
|
MMX_DESC= Enable MMX
|
|
|
|
JMA_DESC= Enable JMA archive decompression support
|
|
|
|
NETPLAY_DESC= Enable network support
|
2004-07-17 20:29:42 +02:00
|
|
|
|
2003-08-09 15:21:14 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-04-28 23:20:28 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2006-12-27 18:27:37 +01:00
|
|
|
PORTDOCS= controls.txt control-inputs.txt changes.txt hardware.txt \
|
2007-10-04 07:43:04 +02:00
|
|
|
porting.html faqs.txt snapshots.txt snes9x.conf.default \
|
2006-12-27 18:27:37 +01:00
|
|
|
README
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 23:20:28 +02:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
2006-12-27 18:27:37 +01:00
|
|
|
CONFIGURE_ARGS+= --with-debug
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-debug
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${ARCH} == "i386"
|
2013-04-28 23:20:28 +02:00
|
|
|
.if ${PORT_OPTIONS:MX86_ASM}
|
2016-04-01 16:00:51 +02:00
|
|
|
BUILD_DEPENDS+= nasm:devel/nasm
|
2003-10-20 06:20:31 +02:00
|
|
|
CONFIGURE_ARGS+= --with-assembler
|
2004-05-30 01:59:56 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-assembler
|
2000-11-19 08:10:40 +01:00
|
|
|
.endif
|
|
|
|
|
2013-05-08 17:59:11 +02:00
|
|
|
.if ${PORT_OPTIONS:MMMX} && !defined(PACKAGE_BUILDING)
|
2006-12-27 18:27:37 +01:00
|
|
|
CONFIGURE_ARGS+= --with-mmx
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-mmx
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 23:20:28 +02:00
|
|
|
.if ${PORT_OPTIONS:MOPENGL}
|
2004-05-30 01:59:56 +02:00
|
|
|
USE_GL= yes
|
2003-10-21 04:36:04 +02:00
|
|
|
CONFIGURE_ARGS+= --with-opengl
|
2007-03-24 13:26:14 +01:00
|
|
|
SNES9X_BIN= osnes9x
|
|
|
|
.else
|
|
|
|
SNES9X_BIN= snes9x
|
2003-10-21 04:36:04 +02:00
|
|
|
.endif
|
|
|
|
|
2013-04-28 23:20:28 +02:00
|
|
|
.if ${PORT_OPTIONS:MSCREENSHOT}
|
2006-12-27 18:27:37 +01:00
|
|
|
CONFIGURE_ARGS+= --with-screenshot
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-screenshot
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 23:20:28 +02:00
|
|
|
.if ${PORT_OPTIONS:MJMA}
|
2006-12-27 18:27:37 +01:00
|
|
|
CONFIGURE_ARGS+= --with-jma-decomp
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-jma-decomp
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 23:20:28 +02:00
|
|
|
.if ${PORT_OPTIONS:MNETPLAY}
|
2007-10-04 07:43:04 +02:00
|
|
|
CONFIGURE_ARGS+= --with-netplay
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-netplay
|
|
|
|
.endif
|
|
|
|
|
2003-08-09 15:21:14 +02:00
|
|
|
.if exists(/usr/lib/libusbhid.a)
|
2003-10-20 06:20:31 +02:00
|
|
|
CONFIGURE_ARGS+= --with-joystick
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-joystick
|
2000-03-09 06:16:30 +01:00
|
|
|
.endif
|
|
|
|
|
2006-12-27 18:27:37 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -i "" -e 's|Pitch2|Pitch|g' ${WRKSRC}/unix/opengl.cpp
|
|
|
|
|
1997-11-02 15:56:43 +01:00
|
|
|
do-install:
|
2013-04-28 23:20:28 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-06-01 18:39:41 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2007-10-04 07:43:04 +02:00
|
|
|
.for FILE in control* changes.txt hardware.txt porting.html faqs.txt \
|
2006-12-27 18:27:37 +01:00
|
|
|
snapshots.txt snes9x.conf.default
|
2014-06-01 18:39:41 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${STAGEDIR}${DOCSDIR}
|
2006-12-27 18:27:37 +01:00
|
|
|
.endfor
|
2014-06-01 18:39:41 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/unix/docs/readme_unix.txt ${STAGEDIR}${DOCSDIR}/README
|
2006-12-27 18:27:37 +01:00
|
|
|
.endif
|
2014-06-01 18:39:41 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${SNES9X_BIN} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
2006-12-27 18:27:37 +01:00
|
|
|
|
2003-08-09 15:21:14 +02:00
|
|
|
.include <bsd.port.post.mk>
|