Index: head/games/meandmyshadow/Makefile =================================================================== --- head/games/meandmyshadow/Makefile (revision 483318) +++ head/games/meandmyshadow/Makefile (revision 483319) @@ -1,55 +1,54 @@ # Created by: Dmitry Marakasov # $FreeBSD$ PORTNAME= meandmyshadow -PORTVERSION= 0.4.1 -PORTREVISION= 4 +PORTVERSION= 0.5 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}/ DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= amdmi3@FreeBSD.org COMMENT= Me and My Shadow puzzle/platform game LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libcurl.so:ftp/curl -USES= cmake libarchive ssl -USE_SDL= sdl ttf image mixer image gfx -USE_GL= gl glu +USES= cmake dos2unix libarchive lua:53 +DOS2UNIX_FILES= CMakeLists.txt src/Functions.cpp +USE_SDL= sdl2 image2 ttf2 mixer2 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} CXXFLAGS+= -Wno-c++11-narrowing PLIST_FILES= bin/${PORTNAME} \ share/pixmaps/${PORTNAME}.png PORTDOCS= * PORTDATA= * DESKTOP_ENTRIES="Me and My Shadow" \ "Puzzle/platform game" \ "${PREFIX}/share/pixmaps/meandmyshadow.png" \ "meandmyshadow" \ "Game;LogicGame;" \ false OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ ${WRKSRC}/cmake/Modules/FindSDL_gfx.cmake post-install: ${INSTALL_DATA} ${WRKSRC}/icons/64x64/meandmyshadow.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in AUTHORS ChangeLog docs/* ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ .endfor .include Index: head/games/meandmyshadow/distinfo =================================================================== --- head/games/meandmyshadow/distinfo (revision 483318) +++ head/games/meandmyshadow/distinfo (revision 483319) @@ -1,2 +1,3 @@ -SHA256 (meandmyshadow-0.4.1-src.tar.gz) = 25dd24f1f34e274a23b7b85116b6c3c2172af2069d0d028c0e00785c0e6b8572 -SIZE (meandmyshadow-0.4.1-src.tar.gz) = 17017718 +TIMESTAMP = 1539012144 +SHA256 (meandmyshadow-0.5-src.tar.gz) = 75d4914ae7275402bce3f544125271c262a15ae53e61292c9768bbb60772d8ac +SIZE (meandmyshadow-0.5-src.tar.gz) = 17526981 Index: head/games/meandmyshadow/files/patch-CMakeLists.txt =================================================================== --- head/games/meandmyshadow/files/patch-CMakeLists.txt (nonexistent) +++ head/games/meandmyshadow/files/patch-CMakeLists.txt (revision 483319) @@ -0,0 +1,29 @@ +--- CMakeLists.txt.orig 2018-10-07 15:06:26 UTC ++++ CMakeLists.txt +@@ -2,6 +2,13 @@ Project (meandmyshadow) + CMake_Minimum_Required (VERSION 3.1) + Set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") + ++#Path options ++Set (BINDIR "bin" CACHE STRING "Where to install binaries") ++Set (DATAROOTDIR "${CMAKE_INSTALL_PREFIX}/share" CACHE STRING "Sets the root of data directories to a non-default location") ++Set (ICONDIR "${DATAROOTDIR}/icons" CACHE STRING "Sets the icon directory for desktop entry to a non-default location.") ++Set (DESKTOPDIR "${DATAROOTDIR}/applications" CACHE STRING "Sets the desktop file directory for desktop entry to a non-default location.") ++ ++#Options + Option (DEBUG_MODE "Compile the game with debug mode enabled" OFF) + Option (DISABLED_DEBUG_STUFF "Enable this you'll see a lot of annoying script debug messages which will lag the game." OFF) + +@@ -164,12 +171,6 @@ Target_Link_Libraries ( + ${LUA_LIBRARIES} + ) + +-#Path options +-Set (BINDIR "bin" CACHE STRING "Where to install binaries") +-Set (DATAROOTDIR "${CMAKE_INSTALL_PREFIX}/share" CACHE STRING "Sets the root of data directories to a non-default location") +-Set (ICONDIR "${DATAROOTDIR}/icons" CACHE STRING "Sets the icon directory for desktop entry to a non-default location.") +-Set (DESKTOPDIR "${DATAROOTDIR}/applications" CACHE STRING "Sets the desktop file directory for desktop entry to a non-default location.") +- + #Install locations + Install (DIRECTORY ${PROJECT_SOURCE_DIR}/data DESTINATION ${DATAROOTDIR}/meandmyshadow/) + Install (FILES AUTHORS DESTINATION ${DATAROOTDIR}/meandmyshadow/) Property changes on: head/games/meandmyshadow/files/patch-CMakeLists.txt ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/meandmyshadow/files/patch-src_Functions.cpp =================================================================== --- head/games/meandmyshadow/files/patch-src_Functions.cpp (nonexistent) +++ head/games/meandmyshadow/files/patch-src_Functions.cpp (revision 483319) @@ -0,0 +1,11 @@ +--- src/Functions.cpp.orig 2018-10-07 15:06:26 UTC ++++ src/Functions.cpp +@@ -416,7 +416,7 @@ void onVideoResize(ImageManager& imageMa + + ScreenData init(){ + //Initialze SDL. +- if(SDL_Init(SDL_INIT_EVERYTHING)==-1) { ++ if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO|SDL_INIT_JOYSTICK|SDL_INIT_TIMER)==-1) { + std::cerr << "FATAL ERROR: SDL_Init failed\nError: " << SDL_GetError() << std::endl; + return creationFailed(); + } Property changes on: head/games/meandmyshadow/files/patch-src_Functions.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/meandmyshadow/pkg-descr =================================================================== --- head/games/meandmyshadow/pkg-descr (revision 483318) +++ head/games/meandmyshadow/pkg-descr (revision 483319) @@ -1,5 +1,5 @@ Me and My Shadow is a puzzle/platform game written by Luka Horvat. The author has given us permission to gpl the game, and develop it further. It has an interesting concept and rather unique gameplay. -WWW: http://meandmyshadow.sourceforge.net/ +WWW: https://acmepjz.github.io/meandmyshadow/