# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # megaglest # megaglest/files # megaglest/files/patch-source__shared_lib__CMakeLists.txt # megaglest/files/patch-source-shared_lib-sources-platform-posix-ircclient.cpp # megaglest/files/pkg-message.in # megaglest/files/patch-source_shared__lib_sources_platform_posix_socket.cpp # megaglest/pkg-plist # megaglest/distinfo # megaglest/Makefile # megaglest/pkg-descr # echo c - megaglest mkdir -p megaglest > /dev/null 2>&1 echo c - megaglest/files mkdir -p megaglest/files > /dev/null 2>&1 echo x - megaglest/files/patch-source__shared_lib__CMakeLists.txt sed 's/^X//' >megaglest/files/patch-source__shared_lib__CMakeLists.txt << '6a7e7d6d86d1eaab8923af34ca7c7487' Xcommit fc07d9caf22ee609c03b2edd5ca03b17fd5c2098 XAuthor: Michael Palimaka XDate: Wed May 13 04:22:45 2015 +1000 X X Fix build with >=cmake-3.2. X X The FindOpenGL module no longer pulls in X11 libraries. X X--- source/shared_lib/CMakeLists.txt X+++ source/shared_lib/CMakeLists.txt X@@ -95,6 +95,10 @@ IF(BUILD_MEGAGLEST_MODEL_VIEWER OR BUILD_MEGAGLEST_MAP_EDITOR OR BUILD_MEGAGLEST X SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${OPENGL_LIBRARY}) X ENDIF() X X+ IF(UNIX) X+ FIND_PACKAGE(X11 REQUIRED) X+ SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${X11_LIBRARIES}) X+ ENDIF() X X IF(WANT_XERCES) X FIND_PACKAGE(XercesC REQUIRED) 6a7e7d6d86d1eaab8923af34ca7c7487 echo x - megaglest/files/patch-source-shared_lib-sources-platform-posix-ircclient.cpp sed 's/^X//' >megaglest/files/patch-source-shared_lib-sources-platform-posix-ircclient.cpp << '3feb265a63eef0f7515c4e5ff983a0c5' X--- source/shared_lib/sources/platform/posix/ircclient.cpp.orig 2013-11-22 15:51:23.000000000 -0600 X+++ source/shared_lib/sources/platform/posix/ircclient.cpp 2013-11-22 15:51:42.000000000 -0600 X@@ -19,10 +19,7 @@ X #if !defined(DISABLE_IRCCLIENT) X X #include X-// upstream moved some defines into new headers as of 1.6 X-#ifndef LIBIRCCLIENT_PRE1_6 X #include X-#endif X X #endif X 3feb265a63eef0f7515c4e5ff983a0c5 echo x - megaglest/files/pkg-message.in sed 's/^X//' >megaglest/files/pkg-message.in << '4bd19d518555d813587371be8ff8d703' X############################################################################### X XThe megaglest game has been installed. X X1) The megaglest configuration files are stored in ~/.megaglest. X X2) If you installed the megaglest map editor, you can launch it using the X command: X X # megaglest_editor X X3) If you have problems running megaglest, remove your ~/.megaglest directory X and try again. X X4) Enjoy it ;) X X5) If you upgraded from version 3.4.0, your personal settings are stored in X ~/.megaglest3.4.0. If you copy glestuser.ini and glestuserkeys.ini to X ~/.megaglest, you will have your old settings again. X X############################################################################### 4bd19d518555d813587371be8ff8d703 echo x - megaglest/files/patch-source_shared__lib_sources_platform_posix_socket.cpp sed 's/^X//' >megaglest/files/patch-source_shared__lib_sources_platform_posix_socket.cpp << '903ea544fefc9610d03d1068bbf0f1b2' X--- source/shared_lib/sources/platform/posix/socket.cpp.orig 2015-10-14 18:18:16 UTC X+++ source/shared_lib/sources/platform/posix/socket.cpp X@@ -2554,7 +2554,11 @@ int UPNP_Tools::upnp_init(void *param) { X int upnp_error = 0; X X #ifndef MINIUPNPC_VERSION_PRE1_6 X+#if MINIUPNPC_API_VERSION >= 14 X+ devlist = upnpDiscover(upnp_delay, upnp_multicastif, upnp_minissdpdsock, upnp_sameport, upnp_ipv6, 2, &upnp_error); X+#else X devlist = upnpDiscover(upnp_delay, upnp_multicastif, upnp_minissdpdsock, upnp_sameport, upnp_ipv6, &upnp_error); X+#endif X X if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"UPnP discover returned upnp_error = %d.\n",upnp_error); X if(SystemFlags::VERBOSE_MODE_ENABLED) printf("UPnP discover returned upnp_error = %d.\n",upnp_error); 903ea544fefc9610d03d1068bbf0f1b2 echo x - megaglest/pkg-plist sed 's/^X//' >megaglest/pkg-plist << '085de6f891c513877aab8b9a0d6e2726' X%%EDITOR%%bin/megaglest_editor Xbin/megaglest X%%DATADIR%%/glest.ini X%%DATADIR%%/glestkeys.ini X%%DATADIR%%/servers.ini X%%PORTDOCS%%%%DOCSDIR%%/README.txt X%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT.source_code.txt X%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.txt X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS.source_code.txt 085de6f891c513877aab8b9a0d6e2726 echo x - megaglest/distinfo sed 's/^X//' >megaglest/distinfo << '8d22f86bfa255e10c286691ee713f418' XSHA256 (megaglest-source-3.11.1_GH0.tar.xz) = 6bbbbb69d01bc765f439a60c74178b75dc47753cc126e6758e3bc740d8b42a21 XSIZE (megaglest-source-3.11.1_GH0.tar.xz) = 4807372 8d22f86bfa255e10c286691ee713f418 echo x - megaglest/Makefile sed 's/^X//' >megaglest/Makefile << '22a96243364cc23145ffe096a51871a8' X# Created by: Sven Moeller X# $FreeBSD$ X XPORTNAME= megaglest XPORTVERSION= 3.11.1 XCATEGORIES= games XUSE_GITHUB= yes XGH_ACCOUNT= MegaGlest XGH_PROJECT= megaglest-source X XDISTNAME= ${PORTNAME}-source-${PORTVERSION} X XMAINTAINER= monwarez@mailoo.org XCOMMENT= Open source 3D real-time strategy game X XLIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \ X libpng.so:${PORTSDIR}/graphics/png \ X libxerces-c.so:${PORTSDIR}/textproc/xerces-c3 \ X libftgl.so:${PORTSDIR}/graphics/ftgl \ X libvorbis.so:${PORTSDIR}/audio/libvorbis XBUILD_DEPENDS= ${LOCALBASE}/include/libircclient.h:${PORTSDIR}/irc/libircclient \ X ${LOCALBASE}/include/miniupnpc/miniupnpc.h:${PORTSDIR}/net/miniupnpc XRUN_DEPENDS= ${DATADIR}/tutorials/2_basic_tutorial/2_basic_tutorial.xml:${PORTSDIR}/games/megaglest-data X XSUB_FILES= pkg-message X XUSES= cmake compiler:c++11-lib display:build dos2unix jpeg lua \ X openal:al,alut pkgconfig tar:xz XUSE_GL= glew gl glu XUSE_SDL= yes XUSE_WX= 3.0 XUSE_CXXSTD= c++11 XWX_UNICODE= yes X XCFLAGS+= -I${LOCALBASE}/include XLDFLAGS+= -L${LOCALBASE}/lib -lssl -lcrypto X XOPTIONS_DEFINE= EDITOR DOCS XOPTIONS_SUB= yes XEDITOR_DESC= Install MegaGlest Editor X X.include X Xpost-patch: X @${REINPLACE_CMD} -e 's,/usr/local/include/lua51,${LUA_INCDIR},g ; \ X s,/usr/local/lib/lua51,${LUA_LIBDIR},g ; \ X s,lua5.2,lua-${LUA_VER},g' \ X ${WRKSRC}/mk/cmake/Modules/FindLUA.cmake X Xdo-install: X ${STRIP_CMD} ${WRKSRC}/source/glest_game/megaglest X @${MKDIR} ${STAGEDIR}${DATADIR} X ${INSTALL_PROGRAM} ${WRKSRC}/source/glest_game/megaglest ${STAGEDIR}${PREFIX}/bin/${PORTNAME} X.for f in mk/linux/glest.ini mk/shared/glestkeys.ini mk/shared/servers.ini X ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR} X.endfor X.if ${PORT_OPTIONS:MDOCS} X @${MKDIR} ${STAGEDIR}${DOCSDIR} X. for f in docs/AUTHORS.source_code.txt docs/CHANGELOG.txt docs/README.txt docs/COPYRIGHT.source_code.txt X ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} X. endfor X.endif X.if ${PORT_OPTIONS:MEDITOR} X ${INSTALL_PROGRAM} ${WRKSRC}/source/glest_map_editor/megaglest_editor ${STAGEDIR}${PREFIX}/bin/megaglest_editor X.endif X X.include 22a96243364cc23145ffe096a51871a8 echo x - megaglest/pkg-descr sed 's/^X//' >megaglest/pkg-descr << 'c7802852462edac5cdbbcd872b1ce15f' XMegaGlest is an open source 3D-real-time strategy game, where you control Xthe armies of one of seven different factions: Tech, Magic, Egyptians, XIndians, Norsemen, Persian or Romans (Beta). The game is setup in one of X14 naturally looking settings, which -like the unit models- are crafted Xwith great appreciation for detail. MegaGlest is heavily based on the Xwidely known Glest, which it forked from in early 2010. X XWWW: http://megaglest.org/ c7802852462edac5cdbbcd872b1ce15f exit