1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Upgrade to Alpha18 and update WWW.

Noticed by:	Skasi <skasski (at) gmx.at>
This commit is contained in:
Thierry Thomas 2006-02-18 09:45:51 +00:00
parent 6bc4346509
commit 85a9aebd19
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156274
5 changed files with 68 additions and 12 deletions

View File

@ -6,40 +6,46 @@
#
PORTNAME= glob2
PORTVERSION= 0.8.17
PORTVERSION= 0.8.18
CATEGORIES= games
MASTER_SITES= http://epfl.ysagoon.com/~glob2/data/
MAINTAINER= thierry@FreeBSD.org
COMMENT= Globulation 2 - a free and innovative strategy game
BUILD_DEPENDS= ${LOCALBASE}/include/boost/rational.hpp:${PORTSDIR}/devel/boost
LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis \
speex.3:${PORTSDIR}/audio/speex \
freetype.9:${PORTSDIR}/print/freetype2
USE_SDL= image net sdl
USE_SDL= image net sdl ttf
USE_GL= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS} -L${LOCALBASE}/lib -L${X11BASE}/lib"
USE_GCC= 3.4
USE_REINPLACE= yes
PLIST_FILES= bin/glob2
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= Does not compile with gcc-2.95
.endif
.if ${ARCH} == "alpha"
BROKEN= "Does not build on alpha"
BROKEN= Does not build on ${ARCH}
.endif
pre-configure:
@${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|" \
${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|" \
${WRKSRC}/configure
${REINPLACE_CMD} -e "s|Icon=|Icon=${DATADIR}/|" \
${WRKSRC}/data/glob2.desktop
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/glob2 ${PREFIX}/bin
${MKDIR} ${DATADIR} ${DESKTOPDIR}
${INSTALL_DATA} ${WRKSRC}/data/glob2.desktop ${DESKTOPDIR}
${INSTALL_DATA} ${WRKSRC}/data/icons/glob2-icon-48x48.png ${DATADIR}
post-install:
@${ECHO_MSG}

View File

@ -1,3 +1,3 @@
MD5 (glob2-0.8.17.tar.gz) = a02ccdfdee0e4a550487fc4cf22a9480
SHA256 (glob2-0.8.17.tar.gz) = f72b7ab66e5fd9dedd78a71df32942a0293027db01e00e2395d0b4381d17566e
SIZE (glob2-0.8.17.tar.gz) = 8887975
MD5 (glob2-0.8.18.tar.gz) = 7c8136d674b2bed90e91a2971d4d41ca
SHA256 (glob2-0.8.18.tar.gz) = 62baf6ae48cfd82bad82027c607218a11067debb2a639e165917df490e1f46cf
SIZE (glob2-0.8.18.tar.gz) = 9125977

View File

@ -0,0 +1,45 @@
--- ./libgag/src/FileManager.cpp.orig Sat Dec 10 23:25:19 2005
+++ ./libgag/src/FileManager.cpp Sat Feb 18 09:52:32 2006
@@ -86,13 +86,17 @@
#endif
addDir(".");
- #ifndef WIN32
+ #ifndef WIN32
#ifndef __APPLE__
/* Find own path
* TODO: Make nicer */
-
+
char link[100];
+ #ifdef __FreeBSD__
+ char proc[]="/proc/curproc/file";
+ #else
char proc[]="/proc/self/exe";
+ #endif
char * pch;
int linksize = readlink(proc, link, sizeof(link));
@@ -102,17 +106,17 @@
}
else
{
- assert ((int)sizeof(link) > linksize);
+ assert ((int)sizeof(link) > linksize);
link[linksize] = '\0';
- pch = strrchr(link,'/');
- if ( (pch-link) > 0)
+ pch = strrchr(link,'/');
+ if ( (pch-link) > 0)
link[pch-link] = '\0';
else
link[1] = '\0';
- pch = strrchr(link,'/');
- if ( (pch-link) > 0)
+ pch = strrchr(link,'/');
+ if ( (pch-link) > 0)
link[pch-link] = '\0';
if ((linksize + 13) <= (int)sizeof(link))

View File

@ -9,4 +9,4 @@ Internet thanks to Ysagoon Online Game [YOG], a meta-server. It also
features a scripting language for versatile gameplay or tutorials and an
integrated map editor.
WWW: http://www.ysagoon.com/glob2/
WWW: http://globulation2.org/

5
games/glob2/pkg-plist Normal file
View File

@ -0,0 +1,5 @@
bin/glob2
share/applications/glob2.desktop
%%DATADIR%%/glob2-icon-48x48.png
@dirrm %%DATADIR%%
@dirrmtry share/applications