1997-11-02 15:56:43 +01:00
|
|
|
# New ports collection makefile for: snes9x
|
1998-07-27 03:01:00 +02:00
|
|
|
# Date created: 20 July 1997
|
1997-11-02 15:56:43 +01:00
|
|
|
# Whom: 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
|
2008-03-22 09:55:40 +01:00
|
|
|
PORTREVISION= 2
|
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.geocities.co.jp/SiliconValley-PaloAlto/2560/release/ \
|
|
|
|
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
|
|
|
|
- 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
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
|
|
|
|
|
2006-12-27 18:27:37 +01:00
|
|
|
USE_BZIP2= yes
|
2008-03-22 09:55:40 +01:00
|
|
|
USE_XORG= x11 sm ice xext
|
2006-12-27 18:27:37 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --without-extensions
|
- 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
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
- 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
|
|
|
MAKE_ARGS= INCLUDES="-I${WRKSRC}/unzip -I${WRKSRC} -I${LOCALBASE}/include \
|
|
|
|
${PTHREAD_CFLAGS}" LDLIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
|
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
|
|
|
|
|
|
|
|
OPTIONS= DEBUG "Enable debug information" off \
|
|
|
|
OPENGL "Enable OpenGL support" off \
|
|
|
|
SCREENSHOT "Enable screenshot support" on \
|
|
|
|
X86_ASM "Use i386 optimization (only for i386)" on \
|
|
|
|
MMX "Enable MMX (only for i386)" off \
|
2007-10-04 07:43:04 +02:00
|
|
|
JMA "Enable JMA archive decompression support" on \
|
|
|
|
NETPLAY "Enable network support" on
|
2004-07-17 20:29:42 +02:00
|
|
|
|
2003-08-09 15:21:14 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-12-27 18:27:37 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
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
|
|
|
|
|
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --with-debug
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-debug
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
.if !defined(WITHOUT_X86_ASM)
|
2003-08-09 15:21:14 +02:00
|
|
|
BUILD_DEPENDS+= nasm:${PORTSDIR}/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
|
|
|
|
|
2006-12-27 18:27:37 +01:00
|
|
|
.if defined(WITH_MMX) && !defined(PACKAGE_BUILDING)
|
|
|
|
CONFIGURE_ARGS+= --with-mmx
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-mmx
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2003-10-21 04:36:04 +02:00
|
|
|
.if defined(WITH_OPENGL)
|
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
|
|
|
|
|
2006-12-27 18:27:37 +01:00
|
|
|
.if !defined(WITHOUT_SCREENSHOT)
|
|
|
|
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
|
|
|
|
CONFIGURE_ARGS+= --with-screenshot
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-screenshot
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_JMA)
|
|
|
|
CONFIGURE_ARGS+= --with-jma-decomp
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-jma-decomp
|
|
|
|
.endif
|
|
|
|
|
2007-10-04 07:43:04 +02:00
|
|
|
.if !defined(WITHOUT_NETPLAY)
|
|
|
|
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:
|
2006-12-27 18:27:37 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${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
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/unix/docs/readme_unix.txt ${DOCSDIR}/README
|
|
|
|
.endif
|
2007-03-24 13:26:14 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${SNES9X_BIN} ${PREFIX}/bin/${PORTNAME}
|
1997-11-02 15:56:43 +01:00
|
|
|
|
2006-12-27 18:27:37 +01:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2003-08-09 15:21:14 +02:00
|
|
|
.include <bsd.port.post.mk>
|