aboutsummaryrefslogtreecommitdiff
path: root/emulation/dolphin/dolphin.build
diff options
context:
space:
mode:
Diffstat (limited to 'emulation/dolphin/dolphin.build')
-rwxr-xr-xemulation/dolphin/dolphin.build58
1 files changed, 58 insertions, 0 deletions
diff --git a/emulation/dolphin/dolphin.build b/emulation/dolphin/dolphin.build
new file mode 100755
index 0000000..1faa28f
--- /dev/null
+++ b/emulation/dolphin/dolphin.build
@@ -0,0 +1,58 @@
+#!/bin/bash
+#
+# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
+
+source /usr/src/ports/Build/build.sh
+
+NAME=dolphin
+VERSION=3.5
+BUILD=1
+DEPENDS=('wxgtk >= 2.8.12-1' 'cg_toolkit >= 3.1-1' 'ffmpeg >= 0.10.3-1' 'bluetooth >= 4.101-1' 'sound >= 1.0.26-1' 'libopenal >= 1.13-1')
+
+# Description
+
+cat > ${PKG}/install/slack-desc <<EOF
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+$(padd)|-----handy-ruler------------------------------------------------------|
+${NAME}: dolphin (Nintendo Wii & Gamecube emulator)
+${NAME}:
+${NAME}: A Wii and Gamecube emulator which runs most games perfectly or with
+${NAME}: minor bugs. Games are playable at HD quality, up to 1080p. This is a
+${NAME}: remarkable feature the actual Wii or Gamecube consoles are not
+${NAME}: capable of.
+${NAME}:
+${NAME}: Homepage: http://code.google.com/p/dolphin-emu
+${NAME}:
+${NAME}:
+${NAME}:
+EOF
+
+# Sources
+
+SRCNAME[0]=${NAME}
+SRCVERS[0]=${VERSION}
+SRCPACK[0]=${SRCNAME[0]}-${SRCVERS[0]}-src.zip
+SRCCOPY[0]="GPL2"
+
+build0()
+{
+cmake \
+ -DCMAKE_C_FLAGS:STRING="${FLAGS}" \
+ -DCMAKE_CXX_FLAGS:STRING="${FLAGS}" \
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL="on" \
+ -DCMAKE_INSTALL_PREFIX:PATH="/usr" \
+ -Ddatadir:STRING="${SYS_DIR[share]}/application-data/dolphin" \
+.
+make ${JOBS}
+make install DESTDIR="${PKG}"
+install.dir ${PKG}${SYS_DIR[share]}/applications
+install.dat dolphin.desktop ${PKG}${SYS_DIR[share]}/applications
+install.dir ${PKG}${SYS_DIR[share]}/icons/hicolor/128x128/apps
+install.dat dolphin.png ${PKG}${SYS_DIR[share]}/icons/hicolor/128x128/apps
+}