This updates easyrpg to the latest release, which no longer requires ruby 1.8 (or any version of ruby).
This drops the easyrpg-readers distfile, as it doesn't appear to be
part of easyrpg anymore.
Requires new attached liblcf port, also from the EasyRPG project.
Compiles on amd64. I don't have any ability to test it.
OKs?
Thanks,
Jeremy
Index: Makefile
===================================================================
RCS file: /cvs/ports/games/easyrpg/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- Makefile 26 Jul 2017 22:45:20 -0000 1.16
+++ Makefile 28 Aug 2017 04:05:18 -0000
@@ -1,50 +1,42 @@
# $OpenBSD: Makefile,v 1.16 2017/07/26 22:45:20 sthen Exp $
-V = 0.1.2
+V = 0.5.2
COMMENT = free interpreter for RPG Maker 2000/2003 and EasyRPG games
-DISTFILES = easyrpg-player-{}${V}.tar.gz:0 \
- easyrpg-readers-${V}.tar.gz:1
+DISTNAME = ${PKGNAME}{${V}}
PKGNAME = easyrpg-${V}
CATEGORIES = games x11
-REVISION = 1
-HOMEPAGE = https://easy-rpg.org/
+HOMEPAGE = https://easyrpg.org/
# GPLv3+
PERMIT_PACKAGE_CDROM = Yes
-WANTLIB += FLAC SDL SDL_mixer c expat freetype iconv jpeg m ogg openal
-WANTLIB += pixman-1 png pthread sndfile ${COMPILER_LIBCXX} vorbis vorbisenc z
+WANTLIB += ${COMPILER_LIBCXX} SDL2 SDL2_mixer c freetype harfbuzz
+WANTLIB += lcf m mpg123 opusfile pixman-1 png sndfile speexdsp
+WANTLIB += vorbisfile xmp z
-MASTER_SITES0 = https://github.com/EasyRPG/Player/archive/
-MASTER_SITES1 = http://mirrors.nycbug.org/pub/distfiles/
+MASTER_SITES = https://github.com/EasyRPG/Player/archive/
-MODULES += devel/cmake \
- lang/python \
- lang/ruby
-
-# iconv is deprecated with ruby>1.8
-MODRUBY_REV = 1.8
-
-BUILD_DEPENDS = devel/boost \
- lang/ruby/1.8,-iconv
+MODULES += devel/cmake
LIB_DEPENDS = audio/libsndfile \
- audio/openal \
- converters/libiconv \
- devel/sdl-mixer \
- graphics/jpeg \
+ audio/libxmp \
+ audio/mpg123 \
+ audio/opusfile \
+ audio/speexdsp \
+ devel/harfbuzz \
+ devel/sdl2 \
+ devel/sdl2-mixer \
+ games/liblcf \
graphics/png
-# Sadly, this is needed for midi playback.
-RUN_DEPENDS = audio/timidity
+CONFIGURE_ENV = CXXFLAGS="${CXXFLAGS} -I ${X11BASE}/include" \
+ LDFLAGS="-L ${X11BASE}/lib"
+MAKE_ENV = ${CONFIGURE_ENV}
# make test seems bogus, disabling it.
NO_TEST = Yes
WRKDIST = ${WRKDIR}/Player-${V}
-
-post-extract:
- mv ${WRKDIR}/Readers-${V} ${WRKDIST}/lib/readers
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/games/easyrpg/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo 24 Oct 2013 12:51:30 -0000 1.3
+++ distinfo 28 Aug 2017 01:59:21 -0000
@@ -1,4 +1,2 @@
-SHA256 (easyrpg-player-0.1.2.tar.gz) =
w3bRB0+aL9enMrDT03+fYKKeC9sBPia2D7nDWax0/+0=
-SHA256 (easyrpg-readers-0.1.2.tar.gz) =
aUwbVcSldevGAuTxhzbNoOwYcgXxRUXcVkFAhCe9DUk=
-SIZE (easyrpg-player-0.1.2.tar.gz) = 996611
-SIZE (easyrpg-readers-0.1.2.tar.gz) = 138372
+SHA256 (easyrpg-0.5.2.tar.gz) = i254+9xKYB0NyKD87xDCalZpFah+WV+6wr4M44lN3+o=
+SIZE (easyrpg-0.5.2.tar.gz) = 4142510
Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: patches/patch-CMakeLists_txt
diff -N patches/patch-CMakeLists_txt
--- patches/patch-CMakeLists_txt 20 Jan 2015 11:44:30 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,30 +0,0 @@
-$OpenBSD: patch-CMakeLists_txt,v 1.3 2015/01/20 11:44:30 dcoppa Exp $
---- CMakeLists.txt.orig Mon Oct 14 14:30:54 2013
-+++ CMakeLists.txt Tue Jan 20 03:56:32 2015
-@@ -9,12 +9,6 @@ set(DEFAULT_EASYRPG_READERS_PATH "${CMAKE_CURRENT_SOUR
- if(NOT EASYRPG_READERS_PATH)
- set(EASYRPG_READERS_PATH "${DEFAULT_EASYRPG_READERS_PATH}")
- endif()
--find_package(Git REQUIRED)
--if(NOT EXISTS ${EASYRPG_READERS_PATH})
-- execute_process(COMMAND ${GIT_EXECUTABLE} clone "--depth=1"
-- "https://github.com/EasyRPG/Readers.git"
-- "${EASYRPG_READERS_PATH}")
--endif()
- add_subdirectory(
- ${EASYRPG_READERS_PATH}/builds/cmake
- ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/EasyRPG_Readers)
-@@ -31,11 +25,8 @@ add_definitions(
- ${PNG_DEFINITIONS}
-
- -D UNIX=1
-- -D USE_SDL=1)
--
--if(CMAKE_GENERATOR MATCHES "Makefile")
-- add_definitions(-fno-rtti)
--endif()
-+ -D USE_SDL=1
-+ -pthread)
-
- # wine checking
- find_program(WINE_EXECUTABLE wine)
liblcf.tar.gz
Description: application/tar-gz
