diff options
author | jbeich <jbeich@FreeBSD.org> | 2015-09-25 02:09:31 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2015-09-25 02:09:31 +0800 |
commit | 5eaa7b2408c24a6308e906029a5ae4cb2154caa0 (patch) | |
tree | 924cd229c84be5e1ad6313b28e2d7d0918b1b5fb | |
parent | 0a8d4b117366ca88394694fa319d7b22ff2ae457 (diff) | |
download | freebsd-ports-graphics-5eaa7b2408c24a6308e906029a5ae4cb2154caa0.tar.gz freebsd-ports-graphics-5eaa7b2408c24a6308e906029a5ae4cb2154caa0.tar.zst freebsd-ports-graphics-5eaa7b2408c24a6308e906029a5ae4cb2154caa0.zip |
emulators/ppsspp-devel: update to 1.0.1.2768
- Take advantage of more system libraries support upstream
Changes: https://github.com/hrydgard/ppsspp/compare/253ed9f...d8b43dd
-rw-r--r-- | emulators/ppsspp-devel/Makefile | 27 | ||||
-rw-r--r-- | emulators/ppsspp-devel/distinfo | 6 | ||||
-rw-r--r-- | emulators/ppsspp-devel/files/patch-CVE-2015-2331 | 18 | ||||
-rw-r--r-- | emulators/ppsspp/Makefile | 8 | ||||
-rw-r--r-- | emulators/ppsspp/files/patch-git-version.cmake | 19 |
5 files changed, 52 insertions, 26 deletions
diff --git a/emulators/ppsspp-devel/Makefile b/emulators/ppsspp-devel/Makefile index 71612376cc1..752c5ec83a1 100644 --- a/emulators/ppsspp-devel/Makefile +++ b/emulators/ppsspp-devel/Makefile @@ -1,16 +1,37 @@ # $FreeBSD$ -DISTVERSION= 1.0.1-2668 -DISTVERSIONSUFFIX= -g253ed9f -PORTREVISION= 1 +DISTVERSION= 1.0.1-2768 +DISTVERSIONSUFFIX= -gd8b43dd +PORTREVISION= 0 PKGNAMESUFFIX= -devel +# XXX Get from Debian once #697821 lands +MASTER_SITES= https://bazaar.launchpad.net/~sergio-br2/${PORTNAME}/debian-sdl/download/1/${PORTNAME}.1-20140802045408-dd26dik367ztj5xg-8/:manpage +DISTFILES= ${PORTNAME}.1:manpage +EXTRACT_ONLY= ${DISTFILES:N*\:manpage:C/:.*//} GH_TAGNAME= e22d7a5:lang a0b878f:ext_armips CONFLICTS_INSTALL?= ${PORTNAME}-[0-9]* +LIB_DEPENDS= libzip.so:${PORTSDIR}/archivers/libzip \ + libsnappy.so:${PORTSDIR}/archivers/snappy +USE_GL= glew + +EXCLUDE= glew snappy libzip zlib +EXTRACT_AFTER_ARGS=${EXCLUDE:S,^,--exclude ,} + MASTERDIR= ${.CURDIR}/../ppsspp PATCHDIR= ${.CURDIR}/files DISTINFO_FILE= ${.CURDIR}/distinfo +post-patch: slave-post-patch +slave-post-patch: + @${REINPLACE_CMD} -e 's,/usr,${LOCALBASE},' \ + ${WRKSRC}/Qt/*.pr* + +post-install: slave-post-install +slave-post-install: + ${INSTALL_MAN} ${_DISTDIR}/${PORTNAME}.1 \ + ${STAGEDIR}${MAN1PREFIX}/man/man1 + .include "${MASTERDIR}/Makefile" diff --git a/emulators/ppsspp-devel/distinfo b/emulators/ppsspp-devel/distinfo index f34701bd6ce..3edafbd73a3 100644 --- a/emulators/ppsspp-devel/distinfo +++ b/emulators/ppsspp-devel/distinfo @@ -1,5 +1,7 @@ -SHA256 (hrydgard-ppsspp-v1.0.1-2668-g253ed9f_GH0.tar.gz) = 53126bbbc64e0e9fb61f4ffe65d3d87f79f68803bbf3dcc67bcb387b1a00d270 -SIZE (hrydgard-ppsspp-v1.0.1-2668-g253ed9f_GH0.tar.gz) = 14919158 +SHA256 (ppsspp.1) = 8e335555393a6400c97d5f6d23798af801f88b909181bb5af676dfdcb4f8f8be +SIZE (ppsspp.1) = 1507 +SHA256 (hrydgard-ppsspp-v1.0.1-2768-gd8b43dd_GH0.tar.gz) = 0f5c25a67cf8466b56a7947fa0ceb65b92eca3f51b164830d6f6d84648432299 +SIZE (hrydgard-ppsspp-v1.0.1-2768-gd8b43dd_GH0.tar.gz) = 14756762 SHA256 (hrydgard-ppsspp-lang-e22d7a5_GH0.tar.gz) = b481a44c75b646d99909e3acd1f59614e7c05463e73c3827a662d9cf298e84cb SIZE (hrydgard-ppsspp-lang-e22d7a5_GH0.tar.gz) = 210229 SHA256 (Kingcom-armips-a0b878f_GH0.tar.gz) = 64623bbddda609f9692904e6b6823b1d2d4dd0149349f2be9edcc600bf12bafa diff --git a/emulators/ppsspp-devel/files/patch-CVE-2015-2331 b/emulators/ppsspp-devel/files/patch-CVE-2015-2331 deleted file mode 100644 index 7e79cc7f188..00000000000 --- a/emulators/ppsspp-devel/files/patch-CVE-2015-2331 +++ /dev/null @@ -1,18 +0,0 @@ -From ef8fc4b53d92fbfcd8ef1abbd6f2f5fe2c4a11e5 Mon Sep 17 00:00:00 2001 -From: Stanislav Malyshev <stas@php.net> -Date: Tue, 17 Mar 2015 21:59:56 -0700 -Subject: Fix bug #69253 - ZIP Integer Overflow leads to writing past heap boundary - -diff --git a/ext/zip/lib/zip_dirent.c b/ext/zip/lib/zip_dirent.c -index b9dac5c..0090801 100644 ---- ext/native/ext/libzip/zip_dirent.c -+++ ext/native/ext/libzip/zip_dirent.c -@@ -101,7 +101,7 @@ _zip_cdir_new(int nentry, struct zip_error *error) - return NULL; - } - -- if ((cd->entry=(struct zip_dirent *)malloc(sizeof(*(cd->entry))*nentry)) -+ if ( nentry > ((size_t)-1)/sizeof(*(cd->entry)) || (cd->entry=(struct zip_dirent *)malloc(sizeof(*(cd->entry))*(size_t)nentry)) - == NULL) { - _zip_error_set(error, ZIP_ER_MEMORY, 0); - free(cd); diff --git a/emulators/ppsspp/Makefile b/emulators/ppsspp/Makefile index 16a246131a1..1da0f9435b9 100644 --- a/emulators/ppsspp/Makefile +++ b/emulators/ppsspp/Makefile @@ -16,7 +16,7 @@ COMMENT= PSP emulator in C++ with dynarec JIT for x86, ARM, MIPS LICENSE= GPLv2 # or any later version -LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg +LIB_DEPENDS+= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils USE_GITHUB= yes @@ -32,7 +32,7 @@ GH_PROJECT+= native:native CONFLICTS_INSTALL?= ${PORTNAME}-devel-[0-9]* USES= compiler:c++11-lib pkgconfig -USE_GL= glu +USE_GL+= glu USE_SDL= sdl2 # joystick CMAKE_ARGS= -DUSE_SYSTEM_FFMPEG=on QMAKE_SOURCE_PATH= ${WRKSRC}/Qt/PPSSPPQt.pro @@ -71,7 +71,7 @@ post-extract: post-patch: @${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,' \ ${WRKSRC}/UI/NativeApp.cpp - @${REINPLACE_CMD} -e '/find_package(Git)/d' \ + @${REINPLACE_CMD} \ -e 's/"unknown"/"${GH_TAGNAME}"/' \ -e 's/^\(VERSION =\).*/\1 ${GH_TAGNAME}/' \ ${WRKSRC}/git-version.cmake \ @@ -92,8 +92,10 @@ do-install-SDL-off: ${STAGEDIR}${PREFIX}/bin post-install: +.ifndef PKGNAMESUFFIX ${INSTALL_MAN} ${WRKSRC}/debian/${PORTNAME}.1 \ ${STAGEDIR}${MAN1PREFIX}/man/man1 +.endif (cd ${WRKSRC}/assets/unix-icons && ${COPYTREE_SHARE} \ "hicolor" ${STAGEDIR}${PREFIX}/share/icons) ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps diff --git a/emulators/ppsspp/files/patch-git-version.cmake b/emulators/ppsspp/files/patch-git-version.cmake new file mode 100644 index 00000000000..a619a9007ae --- /dev/null +++ b/emulators/ppsspp/files/patch-git-version.cmake @@ -0,0 +1,19 @@ +commit e81fa01 +Author: sergiobenrocha2 <sergiobenrocha2@gmail.com> +Date: Wed Sep 16 19:07:25 2015 -0300 + + fix build when git is installed but there is no .git folder. + +diff --git git-version.cmake git-version.cmake +index a507a93..ff276d7 100644 +--- git-version.cmake ++++ git-version.cmake +@@ -3,7 +3,7 @@ set(GIT_VERSION "unknown") + set(GIT_VERSION_UPDATE "1") + + find_package(Git) +-if(GIT_FOUND) ++if(GIT_FOUND AND EXISTS ".git") + execute_process(COMMAND ${GIT_EXECUTABLE} describe --always + WORKING_DIRECTORY ${SOURCE_DIR} + RESULT_VARIABLE exit_code |