# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # cannonball/ # cannonball/Makefile # cannonball/distinfo # cannonball/files # cannonball/files/patch-cmake_CMakeLists.txt # cannonball/files/patch-cmake_bsd.cmake # cannonball/files/cannonball.sh.in # cannonball/pkg-descr # cannonball/pkg-plist # cannonball/pkg-message # echo c - cannonball/ mkdir -p cannonball/ > /dev/null 2>&1 echo x - cannonball/Makefile sed 's/^X//' >cannonball/Makefile << '41bfa9a4cb1e39995387960283712897' X# $FreeBSD$ X XPORTNAME= cannonball XDISTVERSION= g20171201 XCATEGORIES= emulators games X XMAINTAINER= santhosh.raju@gmail.com XCOMMENT= Enhanced OutRun Engine X XLICENSE= MAME-LICENSE XLICENSE_NAME= MAME license XLICENSE_FILE= ${WRKSRC}/docs/license.txt XLICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept X XLIB_DEPENDS= libboost_program_options.so:devel/boost-libs X XUSES= cmake:insource pkgconfig sdl XUSE_SDL= sdl X XCMAKE_ARGS= ${WRKSRC}/cmake \ X -DTARGET=bsd X XUSE_GITHUB= yes XGH_ACCOUNT= djyt XGH_TAGNAME= 0c0814d X XBUILD_WRKSRC= ${WRKSRC}/cmake XCONFIGURE_WRKSRC= ${WRKSRC}/cmake X XSUB_FILES= ${PORTNAME}.sh X Xdo-install: X ${MKDIR} ${STAGEDIR}${DATADIR}/res X ${MKDIR} ${STAGEDIR}${DATADIR}/conf X ${INSTALL_DATA} ${WRKSRC}/cmake/res/tilemap.bin ${STAGEDIR}${DATADIR}/res/tilemap.bin X ${INSTALL_DATA} ${WRKSRC}/cmake/res/tilepatch.bin ${STAGEDIR}${DATADIR}/res/tilepatch.bin X ${INSTALL_DATA} ${WRKSRC}/cmake/config.xml ${STAGEDIR}${DATADIR}/conf/config.xml X ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME} X ${INSTALL_PROGRAM} ${WRKSRC}/cmake/cannonball ${STAGEDIR}${PREFIX}/libexec X X.include 41bfa9a4cb1e39995387960283712897 echo x - cannonball/distinfo sed 's/^X//' >cannonball/distinfo << '963e411dea78ae548e79958f1c14baed' XTIMESTAMP = 1560212844 XSHA256 (djyt-cannonball-g20171201-0c0814d_GH0.tar.gz) = 9f79a26df838ad64b96137ddf5e843f3e76e639c2112f5bfaae39296698019d5 XSIZE (djyt-cannonball-g20171201-0c0814d_GH0.tar.gz) = 277297 963e411dea78ae548e79958f1c14baed echo c - cannonball/files mkdir -p cannonball/files > /dev/null 2>&1 echo x - cannonball/files/patch-cmake_CMakeLists.txt sed 's/^X//' >cannonball/files/patch-cmake_CMakeLists.txt << '500a249edd228ab3c2f9ac1a79be0b83' XRemove the boost directory reference. X XNot required in ports, since boost libraries are directly installed Xin ${LOCALBASE}/include X X--- cmake/CMakeLists.txt.orig 2019-06-10 03:25:18 UTC X+++ cmake/CMakeLists.txt X@@ -25,7 +25,7 @@ else() X include(${DCMAKE}) X endif(TARGET) X X-set(BOOST_INCLUDEDIR ${lib_base}/boost_1_54_0) X+set(BOOST_INCLUDEDIR ${lib_base}) X find_package(Boost REQUIRED) X X # Include 500a249edd228ab3c2f9ac1a79be0b83 echo x - cannonball/files/patch-cmake_bsd.cmake sed 's/^X//' >cannonball/files/patch-cmake_bsd.cmake << '54c5e897677b80126aa0f44f4c081b2c' XCreate a cmake file for FreeBSD build. X X--- cmake/bsd.cmake.orig 2019-06-10 03:23:23 UTC X+++ cmake/bsd.cmake X@@ -0,0 +1,20 @@ X+# Default CMake Setup. Used for FreeBSD Builds. X+ X+set(lib_base /usr/local/include) X+set(sdl_root ${lib_base}/SDL) X+ X+include_directories("${sdl_root}") X+ X+link_libraries(cannonball X+ SDL X+) X+ X+# Linking X+link_directories( X+ "/usr/local/lib" X+) X+ X+# Location for Cannonball to create save files X+# Used to auto-generate setup.hpp with various file paths X+set(xml_directory ./) X+set(sdl_flags "SDL_DOUBLEBUF | SDL_SWSURFACE") 54c5e897677b80126aa0f44f4c081b2c echo x - cannonball/files/cannonball.sh.in sed 's/^X//' >cannonball/files/cannonball.sh.in << '06d025129cabbc780529564c4acf7875' X#!/bin/sh X Xif [ -n "${XDG_DATA_HOME}" ]; then X CANNONBALL_DIR=${XDG_DATA_HOME}/cannonball Xelse X CANNONBALL_DIR=${HOME}/.local/share/cannonball Xfi X XRESOURCE_DIR=${CANNONBALL_DIR}/res XROMS_DIR=${CANNONBALL_DIR}/roms X Xmkdir -p "${CANNONBALL_DIR}" "${ROMS_DIR}" X Xif [ ! -f "${CANNONBALL_DIR}/config.xml" ]; then X cp %%PREFIX%%/share/cannonball/conf/config.xml \ X "${CANNONBALL_DIR}" Xfi X Xif [ ! -d "${RESOURCE_DIR}" ]; then X mkdir -p "${RESOURCE_DIR}" X cp %%PREFIX%%/share/cannonball/res/tilemap.bin \ X "${RESOURCE_DIR}" X cp %%PREFIX%%/share/cannonball/res/tilepatch.bin \ X "${RESOURCE_DIR}" Xfi X Xcd "${CANNONBALL_DIR}" && exec "%%PREFIX%%/libexec/cannonball" "$@" 06d025129cabbc780529564c4acf7875 echo x - cannonball/pkg-descr sed 's/^X//' >cannonball/pkg-descr << 'ee65bfc6f596246e0e8a1247d33b6995' XCannonball is a program which allows you to play an enhanced version Xof Yu Suzuki's seminal arcade racer, OutRun, on a variety of systems. X XWWW: https://github.com/djyt/cannonball/wiki ee65bfc6f596246e0e8a1247d33b6995 echo x - cannonball/pkg-plist sed 's/^X//' >cannonball/pkg-plist << '6362e8e3deae933c8eb21d0f93f93557' Xbin/cannonball Xlibexec/cannonball X%%DATADIR%%/conf/config.xml X%%DATADIR%%/res/tilemap.bin X%%DATADIR%%/res/tilepatch.bin 6362e8e3deae933c8eb21d0f93f93557 echo x - cannonball/pkg-message sed 's/^X//' >cannonball/pkg-message << '4c400333f3ce2fa8af7da8bed4e7daa4' X=========================================================================== X$FreeBSD$ X XIn order for Cannonball to work you need to provide a copy of the XOutRun revision B romset to the roms subdirectory. Rename the files if Xnecessary. X XThe roms subdirectory can be found at $XDG_DATA_HOME/cannonball/roms Xwhich defaults to $HOME/.local/share/cannonball/roms X XConfiguration can be found at $XDG_DATA_HOME/cannonball/config.xml Xwhich defaults to $HOME/.local/share/cannonball/config.xml X XNOTE: The directories will be created on the first run of Cannonball Xif they do not exist. X=========================================================================== 4c400333f3ce2fa8af7da8bed4e7daa4 exit