- Add missing bits of the previous commit that somehow were not committed, this also fixed build

- Bump PORTREVISION

PR:		144064
Submitted by:	okeeblow <root@cooltrainer.org>
This commit is contained in:
Dmitry Marakasov 2010-09-24 18:19:26 +00:00
parent 07bb028c5c
commit 954fc2ef67
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=261779
4 changed files with 23 additions and 1 deletions

View file

@ -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 \

View file

@ -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 )

View file

@ -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/

View file

@ -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