Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Dec 2016 23:41:52 +0000 (UTC)
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r429469 - head/games/ufoai
Message-ID:  <201612252341.uBPNfqxP076367@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rakuco
Date: Sun Dec 25 23:41:52 2016
New Revision: 429469
URL: https://svnweb.freebsd.org/changeset/ports/429469

Log:
  Set ALL_TARGET instead of defining a post-build target
  
  Instead of manually invoking some make targets in post-build, use the
  ALL_TARGET variable, which is cleaner and reduces the size of the Makefile.
  
  PR:		215548
  Approved by:	m.tsatsenko@gmail.com (maintainer)

Modified:
  head/games/ufoai/Makefile

Modified: head/games/ufoai/Makefile
==============================================================================
--- head/games/ufoai/Makefile	Sun Dec 25 23:11:36 2016	(r429468)
+++ head/games/ufoai/Makefile	Sun Dec 25 23:41:52 2016	(r429469)
@@ -21,6 +21,7 @@ LIB_DEPENDS=	libvorbis.so:audio/libvorbi
 BUILD_DEPENDS=	zip:archivers/zip
 RUN_DEPENDS=	${LOCALBASE}/share/${PORTNAME}/base/default.cfg:games/ufoai-data
 
+ALL_TARGET=	all lang
 USE_GL=		yes
 USE_SDL=	sdl image mixer ttf
 USE_CXXSTD=	c++11
@@ -66,6 +67,7 @@ PLIST_SUB+=	UFO2MAP="@comment "
 .endif
 
 .if ${PORT_OPTIONS:MUFORADIANT}
+ALL_TARGET+=	uforadiant
 CONFIGURE_ARGS+=--enable-uforadiant
 USE_GNOME+=	gtk20 glib20 gtksourceview2 libxml2
 LIB_DEPENDS+=	libgtkglext-x11-1.0.so:x11-toolkits/gtkglext
@@ -95,12 +97,6 @@ post-extract:
 		${WRKSRC}/build/modes/release.mk
 .endif
 
-post-build:
-	@cd ${WRKSRC} && ${MAKE_CMD} lang
-.if ${PORT_OPTIONS:MUFORADIANT}
-	@cd ${WRKSRC} && ${MAKE_CMD} uforadiant
-.endif
-
 do-install:
 	${MKDIR} ${STAGEDIR}${UFO_DIR}
 .for FILE in ${UFO_FILES}



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