svn commit: r429469 - head/games/ufoai

Raphael Kubo da Costa rakuco at FreeBSD.org
Sun Dec 25 23:41:54 UTC 2016


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 at 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}


More information about the svn-ports-all mailing list