From owner-svn-ports-head@freebsd.org Sun Dec 25 23:41:53 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8FD0C91943; Sun, 25 Dec 2016 23:41:53 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B87E41038; Sun, 25 Dec 2016 23:41:53 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBPNfqHd076368; Sun, 25 Dec 2016 23:41:52 GMT (envelope-from rakuco@FreeBSD.org) Received: (from rakuco@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBPNfqxP076367; Sun, 25 Dec 2016 23:41:52 GMT (envelope-from rakuco@FreeBSD.org) Message-Id: <201612252341.uBPNfqxP076367@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rakuco set sender to rakuco@FreeBSD.org using -f From: Raphael Kubo da Costa Date: Sun, 25 Dec 2016 23:41:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r429469 - head/games/ufoai X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2016 23:41:54 -0000 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}