Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 2013 02:39:57 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r336039 - in head/games/lander: . files
Message-ID:  <201312100239.rBA2dvFv011273@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Dec 10 02:39:57 2013
New Revision: 336039
URL: http://svnweb.freebsd.org/changeset/ports/336039

Log:
  - Support staging
  - Use new LIB_DEPENDS syntax
  - Add LICENSE
  - Fix build on 10.x

Added:
  head/games/lander/files/
  head/games/lander/files/patch-src-Platform.hpp   (contents, props changed)
Modified:
  head/games/lander/Makefile
  head/games/lander/pkg-plist

Modified: head/games/lander/Makefile
==============================================================================
--- head/games/lander/Makefile	Tue Dec 10 01:26:12 2013	(r336038)
+++ head/games/lander/Makefile	Tue Dec 10 02:39:57 2013	(r336039)
@@ -11,21 +11,23 @@ MASTER_SITES=	http://www.nickg.me.uk/fil
 MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Lunar Lander clone
 
-LIB_DEPENDS=	freetype:${PORTSDIR}/print/freetype2 \
-		boost_filesystem:${PORTSDIR}/devel/boost-libs
+LICENSE=	GPLv3
+
+LIB_DEPENDS=	libfreetype.so:${PORTSDIR}/print/freetype2 \
+		libboost_filesystem.so:${PORTSDIR}/devel/boost-libs
 
 GNU_CONFIGURE=	yes
 USES=		gettext pkgconfig
 USE_SDL=	sdl image mixer
 USE_GL=		gl glu
-USE_GCC=	4.2+
 
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
 CONFIGURE_ARGS=	--with-boost="${LOCALBASE}" \
-		--with-boost-filesystem=boost_filesystem
+		--with-boost-filesystem=boost_filesystem \
+		--disable-silent-rules
+LDFLAGS=	-L${LOCALBASE}/lib
 
 PORTDOCS=	*
+PORTDATA=	*
 
 DESKTOP_ENTRIES="Lunar Lander" \
 		"Lunar Lander clone" \
@@ -34,17 +36,10 @@ DESKTOP_ENTRIES="Lunar Lander" \
 		"Game;ArcadeGame;" \
 		false
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-post-patch:
-	@${REINPLACE_CMD} -e '/LIBS=/ s|-lSDL_|`${SDL_CONFIG} --libs` &|' \
-		${WRKSRC}/configure
+OPTIONS_DEFINE=	DOCS
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
 
 .include <bsd.port.mk>

Added: head/games/lander/files/patch-src-Platform.hpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/lander/files/patch-src-Platform.hpp	Tue Dec 10 02:39:57 2013	(r336039)
@@ -0,0 +1,12 @@
+--- src/Platform.hpp.orig	2011-05-02 11:39:00.000000000 +0400
++++ src/Platform.hpp	2013-12-10 06:09:21.766657123 +0400
+@@ -127,7 +127,9 @@
+ #include <string>
+ 
+ using namespace std;
++#ifndef _LIBCPP_VERSION
+ using namespace std::tr1;
++#endif
+ 
+ void RecreateScreens();
+ string LocateResource(const string& file);

Modified: head/games/lander/pkg-plist
==============================================================================
--- head/games/lander/pkg-plist	Tue Dec 10 01:26:12 2013	(r336038)
+++ head/games/lander/pkg-plist	Tue Dec 10 02:39:57 2013	(r336039)
@@ -1,53 +1,4 @@
 bin/lander
-%%DATADIR%%/Default_Font.ttf
-%%DATADIR%%/images/arrowblue.png
-%%DATADIR%%/images/arrowgreen.png
-%%DATADIR%%/images/arrowpink.png
-%%DATADIR%%/images/arrowred.png
-%%DATADIR%%/images/arrowyellow.png
-%%DATADIR%%/images/dirt_surface.png
-%%DATADIR%%/images/dirt_surface2.png
-%%DATADIR%%/images/exit_option.png
-%%DATADIR%%/images/fuelbar.png
-%%DATADIR%%/images/fuelmeter.png
-%%DATADIR%%/images/gameover.png
-%%DATADIR%%/images/gateway.png
-%%DATADIR%%/images/hscore.png
-%%DATADIR%%/images/keyblue.png
-%%DATADIR%%/images/keygreen.png
-%%DATADIR%%/images/keypink.png
-%%DATADIR%%/images/keyred.png
-%%DATADIR%%/images/keyyellow.png
-%%DATADIR%%/images/landingpad.png
-%%DATADIR%%/images/landingpadred.png
-%%DATADIR%%/images/levelcomp.png
-%%DATADIR%%/images/mine.png
-%%DATADIR%%/images/missile.png
-%%DATADIR%%/images/options_option.png
-%%DATADIR%%/images/particle.png
-%%DATADIR%%/images/red_rock_surface.png
-%%DATADIR%%/images/red_rock_surface2.png
-%%DATADIR%%/images/rock_surface.png
-%%DATADIR%%/images/rock_surface2.png
-%%DATADIR%%/images/score_option.png
-%%DATADIR%%/images/ship.png
-%%DATADIR%%/images/shipsmall.png
-%%DATADIR%%/images/snow_surface.png
-%%DATADIR%%/images/snow_surface2.png
-%%DATADIR%%/images/speedmeter.png
-%%DATADIR%%/images/star.png
-%%DATADIR%%/images/start_option.png
-%%DATADIR%%/images/title.png
-%%DATADIR%%/sounds/bleep.wav
-%%DATADIR%%/sounds/boing1.wav
-%%DATADIR%%/sounds/bomb_explosion.wav
-%%DATADIR%%/sounds/collect.wav
-%%DATADIR%%/sounds/firework_1.wav
-%%DATADIR%%/sounds/missile.wav
-%%DATADIR%%/sounds/select.wav
 share/locale/en_GB/LC_MESSAGES/lander.mo
 share/locale/nl/LC_MESSAGES/lander.mo
 share/locale/sv/LC_MESSAGES/lander.mo
-@dirrm %%DATADIR%%/sounds
-@dirrm %%DATADIR%%/images
-@dirrm %%DATADIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312100239.rBA2dvFv011273>