the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: snes9x
Version: 1.53
Revision: 1
Distribution: 10.5, 10.6
Description: Super Nintendo Emulator
# Homepage: http://www.snes9x.com/
Homepage: http://snes9x.ipherswipsite.com/
License: OSI-Approved
Maintainer: David Fang
Source: http://files.ipherswipsite.com/%n/%n-%v-src.tar.bz2
CustomMirror: <<
asi-JP: http://www.geocities.co.jp/SiliconValley-PaloAlto/2560/release/
<<
Conflicts: snes9x-gtk
Replaces: snes9x-gtk
Source-MD5: 69ec1743a1da7de7b5d55a43b0e2ed10
# BuildDepends: dos2unix
PatchScript: <<
#!/bin/sh -ev
sed=/usr/bin/sed
cd macosx/snes9x.xcodeproj
$sed -e '/com\.apple\.compilers\.gcc/s|3_3|4_0|' \
-e '/DEPLOYMENT_TARGET/s|10\.2|10.4|' \
-e '/PANTHER/d' -e '/JAGUAR/d' \
-e 's/-floop-transpose/-floop-optimize/g' \
project.pbxproj > tmp.pbxproj
# -e '/GCC_PREPROCESSOR_DEFINITIONS/a \
# "MAC_LEOPARD_TIGER_PANTHER_SUPPORT="'
echo "patching for architecture: %m"
if test "%m" = "powerpc"
then mv tmp.pbxproj project.pbxproj
else $sed -e '/-mpowerpc/d' \
-e 's|HIDUtilities\.a|HIDUtilities_u.a|g' \
tmp.pbxproj > project.pbxproj
fi
cd ..
$sed -e '/long.*glSwapInterval/s|long|GLint|' \
-e '/long.*numPixelFormats/s|long|GLint|' \
mac-render.cpp > temp.cpp
mv temp.cpp mac-render.cpp
<<
CompileScript: <<
#!/bin/sh -ev
{ echo "#!/bin/sh" ; echo "open -a Snes9x.app" ;} > snes9x
chmod +x snes9x
cd macosx
xcodebuild install -configuration Release \
DSTROOT=%d INSTALL_PATH=%p/Applications \
GCC_PREPROCESSOR_DEFINITIONS="MAC_LEOPARD_TIGER_PANTHER_SUPPORT="
<<
InstallScript: <<
#!/bin/sh -ev
echo Installing as App bundle...
mkdir -p %i/bin
cp snes9x %i/bin/
<<
AppBundles: macosx/build/UninstalledProducts/Snes9x.app
DocFiles: <<
docs/*
macosx/docs/*.rtf
<<
DescPackaging: <<
Snes9x.app bundle is installed in %p/Applications, also sym-linked in
/Applications/Fink, documents copied to %p/share/doc/snes9x/.
An installed shell script '%p/bin/snes9x' also launches snes9x.
Note: on 64b fink (x86_64), the project is still compiled for i386.
<<
DescPort: <<
Source already contains Xcode project files.
Build applies some minor patches to compile for i386 and darwin9.
Overridden to use gcc-4.0, and MACOSX_DEPLOYMENT_TARGET 10.4.
Disabled Jaguar and Panther support.
<<
DescUsage: <<
After installation, drag an icon from /Applications/Fink/Snes9x.app to Dock
for quick launching, or run 'snes9x' or "open -a Snes9x.app"
from the command line.
<<
DescDetail: <<
[from snes9x.com]
Snes9x is a portable, freeware Super Nintendo Entertainment System (SNES)
emulator. It basically allows you to play most games designed for the SNES
and Super Famicom Nintendo game systems on your PC or Workstation;
which includes some real gems that were only ever released in Japan.
Snes9x is the result of well over three years worth of part-time hacking,
coding, recoding, debugging, divorce, etc.
(just kidding about the divorce bit).
Snes9x is coded in C++, with three assembler CPU emulation cores on the
i386 Linux and Windows ports.
Note: freeze points from version 1.51 and earlier are incompatible with 1.52.
License: SNES9X License
<<