aboutsummaryrefslogtreecommitdiff
path: root/emulators/joytran
diff options
context:
space:
mode:
authorAlex Kozlov <ak@FreeBSD.org>2012-03-30 17:48:02 +0000
committerAlex Kozlov <ak@FreeBSD.org>2012-03-30 17:48:02 +0000
commitf9dfea7ca6b1f3056d6954beadbc3812b52b1524 (patch)
treed08c7a2df6a0d661bd5fb5e83ed8ff7d6b1f358b /emulators/joytran
parent04d1af513e20f4363403782925d65eb7475de5b5 (diff)
downloadports-f9dfea7ca6b1f3056d6954beadbc3812b52b1524.tar.gz
ports-f9dfea7ca6b1f3056d6954beadbc3812b52b1524.zip
- Update to 0.8.7
Appropriate credits given to hosts in documentation - Install Profiles system-wide (defaults to local profiles if available) - Install Optional Documentation system-wide (depends on NOPORTDOCS) - Fix fetch with BerliOS PR: ports/166487 Submitted by: Timothy Beyer <beyert@cs.ucr.edu> (maintainer) Approved by: eadler (mentor) Feature safe: yes
Notes
Notes: svn path=/head/; revision=294000
Diffstat (limited to 'emulators/joytran')
-rw-r--r--emulators/joytran/Makefile16
-rw-r--r--emulators/joytran/distinfo4
-rw-r--r--emulators/joytran/files/patch-CMakeLists.txt22
-rw-r--r--emulators/joytran/pkg-plist18
4 files changed, 53 insertions, 7 deletions
diff --git a/emulators/joytran/Makefile b/emulators/joytran/Makefile
index f9d3aba880fe..f7cac8b27a86 100644
--- a/emulators/joytran/Makefile
+++ b/emulators/joytran/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= joytran
-PORTVERSION= 0.8.2
-PORTREVISION= 1
+PORTVERSION= 0.8.7
CATEGORIES= emulators
MASTER_SITES= BERLIOS GOOGLE_CODE
MASTER_SITE_SUBDIR= joytran
@@ -18,12 +17,19 @@ COMMENT= Joystick to keyboard/mouse events translator written in C
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
+# This is needed to fetch from BerliOS
+FETCH_ARGS= "-Fpr"
USE_BZIP2= yes
USE_CMAKE= yes
-CMAKE_ARGS= -DLOCALBASE="${LOCALBASE}"
+CMAKE_ARGS= -DLOCALBASE="${LOCALBASE}" -DPREFIX="${PREFIX}"
+
+.if !defined(NOPORTDOCS)
+CMAKE_ARGS+= -DINSTALL_DOCUMENTATION:BOOL=ON
+.else
+CMAKE_ARGS+= -DINSTALL_DOCUMENTATION:BOOL=OFF
+.endif
+
USE_SDL= sdl
USE_XORG= x11 xtst
-PLIST_FILES= bin/joytran
-
.include <bsd.port.mk>
diff --git a/emulators/joytran/distinfo b/emulators/joytran/distinfo
index c747b08aabd2..aa9bddfd53e0 100644
--- a/emulators/joytran/distinfo
+++ b/emulators/joytran/distinfo
@@ -1,2 +1,2 @@
-SHA256 (joytran-0.8.2.tar.bz2) = ab0dd4950307434a9fd0dc273c610c4aa316a5b739f3759c08bfe16e85e3e131
-SIZE (joytran-0.8.2.tar.bz2) = 40351
+SHA256 (joytran-0.8.7.tar.bz2) = a1d8d0349c6145b7c50f3dd4814248801d0dfe827923ba702be03ce29caa42cc
+SIZE (joytran-0.8.7.tar.bz2) = 42949
diff --git a/emulators/joytran/files/patch-CMakeLists.txt b/emulators/joytran/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..173615a1a295
--- /dev/null
+++ b/emulators/joytran/files/patch-CMakeLists.txt
@@ -0,0 +1,22 @@
+--- CMakeLists.txt.orig 2012-03-29 01:34:41.000000000 -0700
++++ CMakeLists.txt 2012-03-29 13:24:33.000000000 -0700
+@@ -2,7 +2,6 @@
+ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
+
+ ## On means use clang, off means use gcc
+-OPTION(USE_CLANG "build with clang" ON) # On is the default
+ OPTION(INSTALL_DOCUMENTATION "install documentation" ON) # On is the default
+
+ ## Files that will be included in the build-release target
+@@ -151,11 +150,6 @@
+ MESSAGE(WARNING "If you want to build the X11 plugin, please install X11.")
+ ENDIF(X11_X11_INCLUDE_PATH)
+
+-IF(USE_CLANG)
+- MESSAGE(STATUS "Using clang as a compiler")
+- SET(CMAKE_C_COMPILER "clang")
+-ENDIF(USE_CLANG)
+-
+ ## add include directories build project in src
+ INCLUDE_DIRECTORIES(${CMAKE_INCLUDE_PATH} src)
+ ADD_SUBDIRECTORY(src)
diff --git a/emulators/joytran/pkg-plist b/emulators/joytran/pkg-plist
new file mode 100644
index 000000000000..75cad56ab276
--- /dev/null
+++ b/emulators/joytran/pkg-plist
@@ -0,0 +1,18 @@
+bin/joytran
+%%DATADIR%%/profiles/Ever_17
+%%DATADIR%%/profiles/Ever_17-reverse
+%%DATADIR%%/profiles/GundeadliGne
+%%DATADIR%%/profiles/Gundemonium_Recollection
+%%DATADIR%%/profiles/Last_Remnant
+%%DATADIR%%/profiles/Mass_Effect
+%%DATADIR%%/profiles/Perfect_Cherry_Blossom
+%%DATADIR%%/profiles/Scarlet_Meister
+%%DATADIR%%/profiles/Steins_Gate
+%%DATADIR%%/profiles/Trouble_Witches
+%%DATADIR%%/profiles/default
+%%DATADIR%%/profiles/default-one_player
+%%PORTDOCS%%%%DOCSDIR%%/0203121918-diagram.jpg
+%%PORTDOCS%%%%DOCSDIR%%/manual.htm
+@dirrmtry %%DATADIR%%/profiles
+@dirrmtry %%DATADIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%