games/mgba: Updated for version 0.3.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dugan Chen 2015-09-21 10:46:17 +07:00 committed by Willy Sudiarto Raharjo
parent 89e29b7145
commit b581540015
3 changed files with 5 additions and 41 deletions

View File

@ -1,33 +0,0 @@
diff -rupN mgba-0.2.1.orig/CMakeLists.txt mgba-0.2.1/CMakeLists.txt
--- mgba-0.2.1.orig/CMakeLists.txt 2015-05-13 22:07:20.000000000 -0700
+++ mgba-0.2.1/CMakeLists.txt 2015-07-19 16:17:46.572058303 -0700
@@ -37,7 +37,11 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type (e.g. Release or Debug)" FORCE)
endif()
-set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
+if (NOT DEFINED LIBDIR)
+ set(LIBDIR "lib")
+endif()
+
+set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIBDIR}")
include(GNUInstallDirs)
@@ -322,14 +326,14 @@ if(BUILD_SHARED)
if(BUILD_STATIC)
add_library(${BINARY_NAME}-static STATIC ${SRC})
set_target_properties(${BINARY_NAME}-static PROPERTIES COMPILE_DEFINITIONS "${FEATURE_DEFINES}")
- install(TARGETS ${BINARY_NAME}-static DESTINATION lib COMPONENT lib${BINARY_NAME})
+ install(TARGETS ${BINARY_NAME}-static DESTINATION ${LIBDIR} COMPONENT lib${BINARY_NAME})
endif()
else()
add_library(${BINARY_NAME} STATIC ${SRC})
endif()
target_link_libraries(${BINARY_NAME} m ${DEBUGGER_LIB} ${OS_LIB} ${DEPENDENCY_LIB})
-install(TARGETS ${BINARY_NAME} DESTINATION lib COMPONENT lib${BINARY_NAME})
+install(TARGETS ${BINARY_NAME} DESTINATION ${LIBDIR} COMPONENT lib${BINARY_NAME})
set_target_properties(${BINARY_NAME} PROPERTIES VERSION ${LIB_VERSION_STRING} SOVERSION ${LIB_VERSION_ABI} COMPILE_DEFINITIONS "${FEATURE_DEFINES}")
if(BUILD_LIBRETRO)

View File

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mgba
VERSION=${VERSION:-0.2.1}
VERSION=${VERSION:-0.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -70,9 +70,6 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Install libraries into the correct directories.
patch -p1 --verbose < $CWD/correct_libdir.patch
mkdir -p build
cd build
cmake \

View File

@ -1,10 +1,10 @@
PRGNAM="mgba"
VERSION="0.2.1"
VERSION="0.3.0"
HOMEPAGE="https://endrift.com/mgba/"
DOWNLOAD="https://github.com/mgba-emu/mgba/archive/0.2.1.tar.gz"
MD5SUM="7138c88638baeabe20aa05805b862698"
DOWNLOAD="https://github.com/mgba-emu/mgba/archive/0.3.0.tar.gz"
MD5SUM="f190c26545cf636633643603a1997002"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="%README%"
REQUIRES=""
MAINTAINER="Dugan Chen"
EMAIL="thedoogster [at] gmail [dot] com"