Index: head/games/asc/Makefile =================================================================== --- head/games/asc/Makefile (revision 383788) +++ head/games/asc/Makefile (revision 383789) @@ -1,87 +1,88 @@ # Created by: Maxim Sobolev # $FreeBSD$ PORTNAME= asc PORTVERSION= 2.6.0.0 PORTREVISION= 5 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}-hq/ASC%20Source/${PORTVERSION:R} \ http://www.asc-hq.org/music/:music DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${ASC_MUSICS:S/$/:music/} DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= Turn based, multiplayer strategic game with nice graphics LICENSE= GPLv2 # or later LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip RUN_DEPENDS:= ${BUILD_DEPENDS} LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis \ libboost_regex.so:${PORTSDIR}/devel/boost-libs \ libsigc-1.2.so:${PORTSDIR}/devel/libsigc++12 \ libexpat.so:${PORTSDIR}/textproc/expat2 \ libloki.so:${PORTSDIR}/devel/loki OPTIONS_DEFINE= MUSIC XVID MUSIC_DESC= Install extra music files USES= compiler:c++11-lib gmake libtool lua:51 perl5 pkgconfig tar:bzip2 +USE_CXXSTD= c++11 USE_SDL= image mixer sound sdl USE_WX= 3.0 WX_UNICODE= yes WX_CONF_ARGS= absolute USE_PERL5= build GNU_CONFIGURE= yes CFLAGS+= -D_UNICODE_BROKEN_ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib PLIST_FILES= bin/asc \ bin/asc_demount \ bin/asc_mapedit \ bin/asc_mount \ bin/asc_weaponguide \ man/man6/asc.6.gz \ man/man6/asc_demount.6.gz \ man/man6/asc_mapedit.6.gz \ man/man6/asc_mount.6.gz \ man/man6/asc_weaponguide.6.gz \ share/appdata/asc.appdata.xml PORTDATA= * DESKTOP_ENTRIES="Advanced Strategic Command" "Turn based strategic game" "" \ "${PORTNAME}" "" "" .include .if ${PORT_OPTIONS:MXVID} LIB_DEPENDS+= libxvidcore.so:${PORTSDIR}/multimedia/xvid .else CONFIGURE_ENV+= ac_cv_lib_xvidcore_xvid_encore=no .endif .if ${PORT_OPTIONS:MMUSIC} ASC_MUSICS= frontiers.ogg time_to_strike.ogg machine_wars.ogg post-extract: .for i in ${ASC_MUSICS} @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC}/data/music .endfor .endif post-patch: @${FIND} ${WRKSRC} -name "Makefile.in" -print0 | ${XARGS} -0 \ ${REINPLACE_CMD} -e \ 's|/games/|/|g' @${REINPLACE_CMD} -e \ 's|/games/|/|g ; \ s|lua >=|lua-5.1 >=|g ; \ /if test/s|==|=|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e \ 's|? 0 :|? (void)0 :|' ${WRKSRC}/source/errors.h .include Index: head/games/asc/files/patch-source_libs_paragui_src_widgets_pgbutton.cpp =================================================================== --- head/games/asc/files/patch-source_libs_paragui_src_widgets_pgbutton.cpp (nonexistent) +++ head/games/asc/files/patch-source_libs_paragui_src_widgets_pgbutton.cpp (revision 383789) @@ -0,0 +1,43 @@ +--- source/libs/paragui/src/widgets/pgbutton.cpp.orig 2015-04-11 02:43:58.716405000 +0300 ++++ source/libs/paragui/src/widgets/pgbutton.cpp 2015-04-11 02:44:38.509415000 +0300 +@@ -101,32 +101,33 @@ + t->GetColor(widgettype, objectname, PG_PropStr::textcolor, fontcolor); + SetFontColor(fontcolor); + ++ printf("%d\n", GetID()); + switch (GetID()) { +- case OK: ++ case (int)OK: + SetIcon(t->FindSurface(widgettype, objectname, "ok_icon")); + break; + +- case YES: ++ case (int)YES: + SetIcon(t->FindSurface(widgettype, objectname, "yes_icon")); + break; + +- case NO: ++ case (int)NO: + SetIcon(t->FindSurface(widgettype, objectname, "no_icon")); + break; + +- case APPLY: ++ case (int)APPLY: + SetIcon(t->FindSurface(widgettype, objectname, "apply_icon")); + break; + +- case CANCEL: ++ case (int)CANCEL: + SetIcon(t->FindSurface(widgettype, objectname, "cancel_icon")); + break; + +- case CLOSE: ++ case (int)CLOSE: + SetIcon(t->FindSurface(widgettype, objectname, "close_icon")); + break; + +- case HELP: ++ case (int)HELP: + SetIcon(t->FindSurface(widgettype, objectname, "help_icon")); + break; + Property changes on: head/games/asc/files/patch-source_libs_paragui_src_widgets_pgbutton.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property