aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/wxmupen64plus/files
diff options
context:
space:
mode:
authoracm <acm@FreeBSD.org>2011-12-18 12:18:01 +0800
committeracm <acm@FreeBSD.org>2011-12-18 12:18:01 +0800
commit0966fb4a230858b331b6016bd3ebcf343a0cfa8f (patch)
tree8c6495f473c0f7e7b44576a3d6eb87cabd625e7f /emulators/wxmupen64plus/files
parenta37efd765408ca90144cc103e69a76d855bfa830 (diff)
downloadfreebsd-ports-gnome-0966fb4a230858b331b6016bd3ebcf343a0cfa8f.tar.gz
freebsd-ports-gnome-0966fb4a230858b331b6016bd3ebcf343a0cfa8f.tar.zst
freebsd-ports-gnome-0966fb4a230858b331b6016bd3ebcf343a0cfa8f.zip
- New port: emulators/wxmupen64plus
wxMupen64plus is A Mupen64Plus v2 frontend written with wxWidgets WWW: http://bitbucket.org/auria/wxmupen64plus
Diffstat (limited to 'emulators/wxmupen64plus/files')
-rw-r--r--emulators/wxmupen64plus/files/patch-wscript27
1 files changed, 27 insertions, 0 deletions
diff --git a/emulators/wxmupen64plus/files/patch-wscript b/emulators/wxmupen64plus/files/patch-wscript
new file mode 100644
index 000000000000..ace8f57cb4c5
--- /dev/null
+++ b/emulators/wxmupen64plus/files/patch-wscript
@@ -0,0 +1,27 @@
+--- wscript 2011-10-17 09:27:26.000000000 -0500
++++ wscript 2011-12-17 22:26:58.000000000 -0500
+@@ -153,15 +153,21 @@
+ data_dir = bld.path.find_dir('data')
+ bld.install_files('wxMupen64Plus.app/Contents/Resources', data_dir.ant_glob('*'))
+ bin_install_path = "wxMupen64Plus.app/Contents/MacOS"
+-
++ elif os.uname()[0] == 'FreeBSD':
++ if 'LOCALBASE' in os.environ:
++ LOCALBASE = os.environ['LOCALBASE']
++ else:
++ LOCALBASE = '/usr/local/'
++
++ build_flags += ['-I'+ LOCALBASE +'/include/X11']
++ osal_src += ['mupen64plusplus/osal_dynamiclib_unix.c', 'mupen64plusplus/osal_files_unix.c']
++ link_flags += ['-lGL','-lX11']
+ else:
+ # For other unices
+ build_flags += ['-I/usr/include/X11']
+ osal_src += ['mupen64plusplus/osal_dynamiclib_unix.c', 'mupen64plusplus/osal_files_unix.c']
+ link_flags += ['-lGL', '-ldl', '-lX11']
+
+- link_flags += ['-ldl']
+-
+ # install target
+ data_dir = bld.path.find_dir('data')
+ if len(bld.env['datadir']) > 0: