diff options
author | miwi <miwi@FreeBSD.org> | 2009-08-15 03:49:09 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2009-08-15 03:49:09 +0800 |
commit | 0cdab42c10059e0be47b39b05d65f12f256538f1 (patch) | |
tree | 467f46f5e324e43ecbc5521b0b1108c0cb096901 /games/d2x-xl/Makefile | |
parent | d180f1883a5c40547e0880a642b3a6303ff39abc (diff) | |
download | freebsd-ports-gnome-0cdab42c10059e0be47b39b05d65f12f256538f1.tar.gz freebsd-ports-gnome-0cdab42c10059e0be47b39b05d65f12f256538f1.tar.zst freebsd-ports-gnome-0cdab42c10059e0be47b39b05d65f12f256538f1.zip |
- Update to 1.14.34
PR: 137773
Submitted by: Aragon Gouveia <aragon@phat.za.net> (maintainer)
Diffstat (limited to 'games/d2x-xl/Makefile')
-rw-r--r-- | games/d2x-xl/Makefile | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/games/d2x-xl/Makefile b/games/d2x-xl/Makefile index dd6eed00a67e..73abe385696e 100644 --- a/games/d2x-xl/Makefile +++ b/games/d2x-xl/Makefile @@ -6,19 +6,23 @@ # PORTNAME= d2x-xl -PORTVERSION= 1.13.127 +PORTVERSION= 1.14.94 CATEGORIES= games -MASTER_SITES= http://www.descent2.de/downloads/ -DISTFILES= ${PORTNAME}-src-${PORTVERSION}.rar +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S|sourceforge/%SUBDIR%/$|project/${PORTNAME}/Linux/|}:source \ + ${MASTER_SITE_SOURCEFORGE:S|sourceforge/%SUBDIR%/$|project/${PORTNAME}/Data/|}:data \ + http://www.descent2.de/downloads/:source,data +DISTFILES= ${PORTNAME}-src-${PORTVERSION}.rar:source \ + ${PORTNAME}-data-1.14.0.rar:data MAINTAINER= aragon@phat.za.net COMMENT= Community Unix port of Descent 2 Game -EXTRACT_DEPENDS=unrar:${PORTSDIR}/archivers/unrar +EXTRACT_DEPENDS= unrar:${PORTSDIR}/archivers/unrar GNU_CONFIGURE= yes -CONFIGURE_ARGS= --disable-debug --enable-release=yes --with-sharepath=${PREFIX}/share/d2x-xl -USE_SDL= sdl mixer +CONFIGURE_ARGS= --disable-debug --enable-release=yes \ + --with-sharepath=${PREFIX}/share/d2x-xl +USE_SDL= sdl mixer image USE_GMAKE= yes USE_AUTOTOOLS= aclocal:110 \ autoheader:262 \ @@ -29,7 +33,6 @@ AUTOMAKE_ARGS= --add-missing --copy USE_DOS2UNIX= missing depcomp SUB_FILES= pkg-message -PLIST_FILES= bin/d2x-xl OPTIONS= OPENGL "Use OpenGL for 3D graphics" on @@ -39,8 +42,12 @@ OPTIONS= OPENGL "Use OpenGL for 3D graphics" on BROKEN= Does not compile on sparc64 .endif +.if ${OSVERSION} <= 700000 +BROKEN= does not compile +.endif + .if !defined(WITHOUT_OPENGL) -USE_GL= gl glu glut +USE_GL= gl glu CONFIGURE_ARGS+=--with-opengl CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include" .endif @@ -48,8 +55,8 @@ CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include" do-extract: @${MKDIR} ${WRKSRC} @cd ${WRKSRC} && \ - unrar x ${DISTDIR}/${DISTFILES} >/dev/null && \ - unrar x ${PORTNAME}-makefiles.rar >/dev/null && \ + unrar x -o+ ${DISTDIR}/${PORTNAME}-src-${PORTVERSION}.rar >/dev/null && \ + unrar x -o+ ${PORTNAME}-makefiles.rar >/dev/null && \ ${CHMOD} +x configure post-patch: @@ -60,6 +67,9 @@ post-patch: ${XARGS} ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' do-install: + @${MKDIR} ${DATADIR} + @cd ${DATADIR} && \ + unrar x -o+ ${DISTDIR}/${PORTNAME}-data-1.14.0.rar >/dev/null ${INSTALL_PROGRAM} ${WRKSRC}/d2x-xl ${PREFIX}/bin/d2x-xl @${CAT} ${PKGMESSAGE} |