From 954fc2ef67c2d507c22bec78c22ab69fad0b48d3 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Fri, 24 Sep 2010 18:19:26 +0000 Subject: [PATCH] - Add missing bits of the previous commit that somehow were not committed, this also fixed build - Bump PORTREVISION PR: 144064 Submitted by: okeeblow --- emulators/visualboyadvance-m/Makefile | 7 +++++++ .../visualboyadvance-m/files/patch-CMakeLists.txt | 12 ++++++++++++ emulators/visualboyadvance-m/pkg-descr | 2 +- emulators/visualboyadvance-m/pkg-plist | 3 +++ 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 emulators/visualboyadvance-m/files/patch-CMakeLists.txt diff --git a/emulators/visualboyadvance-m/Makefile b/emulators/visualboyadvance-m/Makefile index b5a7e12b23b7..f33afe3e3d98 100644 --- a/emulators/visualboyadvance-m/Makefile +++ b/emulators/visualboyadvance-m/Makefile @@ -7,6 +7,7 @@ PORTNAME= visualboyadvance-m PORTVERSION= 1.8.0r${SVN_REV} +PORTREVISION= 1 CATEGORIES= emulators MASTER_SITES= http://update.cooltrainer.org/emulators/visualboyadvance-m/ @@ -51,8 +52,14 @@ PLIST_SUB+= GVBAM="@comment " CMAKE_ARGS+= -DNO_GTK:BOOL=yes .endif +post-patch: + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/CMakeScripts/FindSFML.cmake + post-install: -@update-desktop-database + @if [ ! -f ${PREFIX}/etc/vbam.cfg ]; then \ + ${CP} -p ${PREFIX}/etc/vbam.cfg-example ${PREFIX}/etc/vbam.cfg ; \ + fi maint-gen-distfile: @if [ -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \ diff --git a/emulators/visualboyadvance-m/files/patch-CMakeLists.txt b/emulators/visualboyadvance-m/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..1413c9ac053b --- /dev/null +++ b/emulators/visualboyadvance-m/files/patch-CMakeLists.txt @@ -0,0 +1,12 @@ +--- CMakeLists.txt.orig 2010-03-14 23:36:45.000000000 -0400 ++++ CMakeLists.txt 2010-06-02 01:01:46.192628838 -0400 +@@ -341,8 +341,7 @@ + + INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/vbam DESTINATION bin) + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/sdl/vbam.cfg-example +- DESTINATION ${SYSCONFDIR} +- RENAME vbam.cfg) ++ DESTINATION ${SYSCONFDIR}) + + ENDIF( CAN_BUILD_VBAM ) + diff --git a/emulators/visualboyadvance-m/pkg-descr b/emulators/visualboyadvance-m/pkg-descr index 5af87a76237b..fd3104387a7f 100644 --- a/emulators/visualboyadvance-m/pkg-descr +++ b/emulators/visualboyadvance-m/pkg-descr @@ -1,6 +1,6 @@ VisualBoyAdvance-M is an emulator of the Game Boy, Super Game Boy, Game Boy Color, and Game Boy Advance. The -M fork is a collection of community patches to the original VisualBoyAdvance. It includes an -option GTK frontend. +optional GTK frontend. WWW: http://vba-m.com/ diff --git a/emulators/visualboyadvance-m/pkg-plist b/emulators/visualboyadvance-m/pkg-plist index a8294a336254..7a341427919f 100644 --- a/emulators/visualboyadvance-m/pkg-plist +++ b/emulators/visualboyadvance-m/pkg-plist @@ -1,4 +1,7 @@ bin/vbam +@unexec if cmp -s %D/etc/vbam.cfg-example %D/etc/vbam.cfg; then rm -f %D/etc/vbam.cfg; fi +etc/vbam.cfg-example +@exec if [ ! -f %D/etc/vbam.cfg ] ; then cp -p %D/%F %B/vbam.cfg; fi %%GVBAM%%bin/gvbam %%GVBAM%%share/applications/gvbam.desktop %%GVBAM%%share/icons/hicolor/16x16/apps/vbam.png