Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jul 2019 18:55:17 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r506026 - in head/emulators: . cannonball cannonball/files
Message-ID:  <201907061855.x66ItHXM022141@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Sat Jul  6 18:55:17 2019
New Revision: 506026
URL: https://svnweb.freebsd.org/changeset/ports/506026

Log:
  emulators/cannonball: create port
  
  Cannonball is a program which allows you to play an enhanced version
  of Yu Suzuki's seminal arcade racer, OutRun, on a variety of systems.
  
  WWW: https://github.com/djyt/cannonball/wiki
  
  PR:		238495
  Submitted by:	Santhosh Raju <santhosh.raju@gmail.com>

Added:
  head/emulators/cannonball/
  head/emulators/cannonball/Makefile   (contents, props changed)
  head/emulators/cannonball/distinfo   (contents, props changed)
  head/emulators/cannonball/files/
  head/emulators/cannonball/files/cannonball.sh.in   (contents, props changed)
  head/emulators/cannonball/files/patch-cmake_CMakeLists.txt   (contents, props changed)
  head/emulators/cannonball/files/patch-cmake_bsd.cmake   (contents, props changed)
  head/emulators/cannonball/pkg-descr   (contents, props changed)
  head/emulators/cannonball/pkg-message   (contents, props changed)
  head/emulators/cannonball/pkg-plist   (contents, props changed)
Modified:
  head/emulators/Makefile   (contents, props changed)

Modified: head/emulators/Makefile
==============================================================================
--- head/emulators/Makefile	Sat Jul  6 18:42:37 2019	(r506025)
+++ head/emulators/Makefile	Sat Jul  6 18:55:17 2019	(r506026)
@@ -14,6 +14,7 @@
     SUBDIR += bfe
     SUBDIR += bochs
     SUBDIR += bsvc
+    SUBDIR += cannonball
     SUBDIR += catapult
     SUBDIR += cinc
     SUBDIR += cingb

Added: head/emulators/cannonball/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/cannonball/Makefile	Sat Jul  6 18:55:17 2019	(r506026)
@@ -0,0 +1,41 @@
+# $FreeBSD$
+
+PORTNAME=	cannonball
+DISTVERSION=	g20171201
+CATEGORIES=	emulators games
+
+MAINTAINER=	santhosh.raju@gmail.com
+COMMENT=	Enhanced OutRun Engine
+
+LICENSE=	MAME-LICENSE
+LICENSE_NAME=	MAME license
+LICENSE_FILE=	${WRKSRC}/docs/license.txt
+LICENSE_PERMS=	dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
+
+LIB_DEPENDS=	libboost_program_options.so:devel/boost-libs
+
+USES=		cmake:insource pkgconfig sdl
+USE_SDL=	sdl
+
+CMAKE_ARGS=	${WRKSRC}/cmake \
+		-DTARGET=bsd
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	djyt
+GH_TAGNAME=	0c0814d
+
+BUILD_WRKSRC=		${WRKSRC}/cmake
+CONFIGURE_WRKSRC=	${WRKSRC}/cmake
+
+SUB_FILES=	${PORTNAME}.sh
+
+do-install:
+	${MKDIR} ${STAGEDIR}${DATADIR}/res
+	${MKDIR} ${STAGEDIR}${DATADIR}/conf
+	${INSTALL_DATA} ${WRKSRC}/cmake/res/tilemap.bin ${STAGEDIR}${DATADIR}/res/tilemap.bin
+	${INSTALL_DATA} ${WRKSRC}/cmake/res/tilepatch.bin ${STAGEDIR}${DATADIR}/res/tilepatch.bin
+	${INSTALL_DATA} ${WRKSRC}/cmake/config.xml ${STAGEDIR}${DATADIR}/conf/config.xml
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/cmake/cannonball ${STAGEDIR}${PREFIX}/libexec
+
+.include <bsd.port.mk>

Added: head/emulators/cannonball/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/cannonball/distinfo	Sat Jul  6 18:55:17 2019	(r506026)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1560212844
+SHA256 (djyt-cannonball-g20171201-0c0814d_GH0.tar.gz) = 9f79a26df838ad64b96137ddf5e843f3e76e639c2112f5bfaae39296698019d5
+SIZE (djyt-cannonball-g20171201-0c0814d_GH0.tar.gz) = 277297

Added: head/emulators/cannonball/files/cannonball.sh.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/cannonball/files/cannonball.sh.in	Sat Jul  6 18:55:17 2019	(r506026)
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+if [ -n "${XDG_DATA_HOME}" ]; then
+	CANNONBALL_DIR=${XDG_DATA_HOME}/cannonball
+else
+	CANNONBALL_DIR=${HOME}/.local/share/cannonball
+fi
+
+RESOURCE_DIR=${CANNONBALL_DIR}/res
+ROMS_DIR=${CANNONBALL_DIR}/roms
+
+mkdir -p "${CANNONBALL_DIR}" "${ROMS_DIR}"
+
+if [ ! -f "${CANNONBALL_DIR}/config.xml" ]; then
+    cp %%PREFIX%%/share/cannonball/conf/config.xml \
+       "${CANNONBALL_DIR}"
+fi
+
+if [ ! -d "${RESOURCE_DIR}" ]; then
+    mkdir -p "${RESOURCE_DIR}"
+    cp %%PREFIX%%/share/cannonball/res/tilemap.bin \
+       "${RESOURCE_DIR}"
+    cp %%PREFIX%%/share/cannonball/res/tilepatch.bin \
+       "${RESOURCE_DIR}"
+fi
+
+cd "${CANNONBALL_DIR}" && exec "%%PREFIX%%/libexec/cannonball" "$@"

Added: head/emulators/cannonball/files/patch-cmake_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/cannonball/files/patch-cmake_CMakeLists.txt	Sat Jul  6 18:55:17 2019	(r506026)
@@ -0,0 +1,16 @@
+Remove the boost directory reference.
+
+Not required in ports, since boost libraries are directly installed
+in ${LOCALBASE}/include
+
+--- cmake/CMakeLists.txt.orig	2019-06-10 03:25:18 UTC
++++ cmake/CMakeLists.txt
+@@ -25,7 +25,7 @@ else()
+     include(${DCMAKE})
+ endif(TARGET)
+ 
+-set(BOOST_INCLUDEDIR ${lib_base}/boost_1_54_0)
++set(BOOST_INCLUDEDIR ${lib_base})
+ find_package(Boost REQUIRED)
+ 
+ # Include

Added: head/emulators/cannonball/files/patch-cmake_bsd.cmake
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/cannonball/files/patch-cmake_bsd.cmake	Sat Jul  6 18:55:17 2019	(r506026)
@@ -0,0 +1,25 @@
+Create a cmake file for FreeBSD build.
+
+--- cmake/bsd.cmake.orig	2019-06-10 03:23:23 UTC
++++ cmake/bsd.cmake
+@@ -0,0 +1,20 @@
++# Default CMake Setup. Used for FreeBSD Builds.
++
++set(lib_base /usr/local/include)
++set(sdl_root ${lib_base}/SDL)
++
++include_directories("${sdl_root}")
++
++link_libraries(cannonball
++    SDL
++)
++
++# Linking
++link_directories(
++    "/usr/local/lib"
++)
++
++# Location for Cannonball to create save files
++# Used to auto-generate setup.hpp with various file paths
++set(xml_directory ./)
++set(sdl_flags "SDL_DOUBLEBUF | SDL_SWSURFACE")

Added: head/emulators/cannonball/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/cannonball/pkg-descr	Sat Jul  6 18:55:17 2019	(r506026)
@@ -0,0 +1,4 @@
+Cannonball is a program which allows you to play an enhanced version
+of Yu Suzuki's seminal arcade racer, OutRun, on a variety of systems.
+
+WWW: https://github.com/djyt/cannonball/wiki

Added: head/emulators/cannonball/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/cannonball/pkg-message	Sat Jul  6 18:55:17 2019	(r506026)
@@ -0,0 +1,16 @@
+===========================================================================
+$FreeBSD$
+
+In order for Cannonball to work you need to provide a copy of the
+OutRun revision B romset to the roms subdirectory. Rename the files if
+necessary.
+
+The roms subdirectory can be found at $XDG_DATA_HOME/cannonball/roms
+which defaults to $HOME/.local/share/cannonball/roms
+
+Configuration can be found at $XDG_DATA_HOME/cannonball/config.xml
+which defaults to $HOME/.local/share/cannonball/config.xml
+
+NOTE: The directories will be created on the first run of Cannonball
+if they do not exist.
+===========================================================================

Added: head/emulators/cannonball/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/cannonball/pkg-plist	Sat Jul  6 18:55:17 2019	(r506026)
@@ -0,0 +1,5 @@
+bin/cannonball
+libexec/cannonball
+%%DATADIR%%/conf/config.xml
+%%DATADIR%%/res/tilemap.bin
+%%DATADIR%%/res/tilepatch.bin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907061855.x66ItHXM022141>