Fully remove the git block to prevent clone from running. We don't need it

because we're using tarballed releases.
Point WRKSRC to the directory where cmake build scripts reside. Removes the
need for the do-configure routine, which was awkward.
Bump REVISION.
Pointed out by and ok sthen@
This commit is contained in:
bcallah 2013-04-27 23:52:25 +00:00
parent eb4d7e2392
commit be6ee9c43e
2 changed files with 18 additions and 14 deletions

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.2 2013/04/27 17:02:38 bcallah Exp $
# $OpenBSD: Makefile,v 1.3 2013/04/27 23:52:25 bcallah Exp $
V = 0.1.1
COMMENT = free interpreter for RPG Maker 2000/2003 and EasyRPG games
DISTFILES = EasyRPG_Player-${V}-src.zip \
EasyRPG_Readers-${V}-src.zip
PKGNAME = easyrpg-${V}
REVISION = 0
CATEGORIES = games x11
HOMEPAGE = https://easy-rpg.org/
@ -38,11 +39,9 @@ RUN_DEPENDS = audio/timidity
NO_TEST = Yes
WRKDIST = ${WRKDIR}/Player-${V}
WRKSRC = ${WRKDIST}/builds/cmake
post-extract:
mv ${WRKDIR}/Readers-${V} ${WRKSRC}/lib/readers
do-configure:
cd ${WRKBUILD} && cmake ${WRKSRC}/builds/cmake
mv ${WRKDIR}/Readers-${V} ${WRKDIST}/lib/readers
.include <bsd.port.mk>

View File

@ -1,17 +1,22 @@
We don't need Git because we're using releases.
$OpenBSD: patch-builds_cmake_CMakeLists_txt,v 1.1.1.1 2013/04/16 02:11:25 bcallah Exp $
--- builds/cmake/CMakeLists.txt.orig Fri Apr 12 23:56:05 2013
+++ builds/cmake/CMakeLists.txt Fri Apr 12 23:56:18 2013
@@ -9,7 +9,6 @@ set(DEFAULT_EASYRPG_READERS_PATH "${CMAKE_CURRENT_SOUR
$OpenBSD: patch-builds_cmake_CMakeLists_txt,v 1.2 2013/04/27 23:52:25 bcallah Exp $
--- builds/cmake/CMakeLists.txt.orig Sat Apr 20 13:12:11 2013
+++ builds/cmake/CMakeLists.txt Sat Apr 27 14:22:08 2013
@@ -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
"https://github.com/EasyRPG/Readers.git"
@@ -32,7 +31,7 @@ add_definitions(
-if(NOT EXISTS ${EASYRPG_READERS_PATH})
- execute_process(COMMAND ${GIT_EXECUTABLE} clone
- "https://github.com/EasyRPG/Readers.git"
- "${EASYRPG_READERS_PATH}")
-endif()
add_subdirectory(
${EASYRPG_READERS_PATH}/builds/cmake
${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${EASYRPG_READERS_PATH}/builds/cmake)
@@ -32,7 +26,7 @@ add_definitions(
-D USE_SDL=1)
if(CMAKE_GENERATOR MATCHES "Makefile")
@ -19,4 +24,4 @@ $OpenBSD: patch-builds_cmake_CMakeLists_txt,v 1.1.1.1 2013/04/16 02:11:25 bcalla
+ add_definitions(-pthread)
endif()
# shinonome font
# wine checking