From owner-svn-ports-head@FreeBSD.ORG Mon Jul 14 10:02:28 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2EE945AF; Mon, 14 Jul 2014 10:02:28 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 1C62425BC; Mon, 14 Jul 2014 10:02:28 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6EA2RBA072696; Mon, 14 Jul 2014 10:02:27 GMT (envelope-from vanilla@svn.freebsd.org) Received: (from vanilla@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6EA2Rnx072695; Mon, 14 Jul 2014 10:02:27 GMT (envelope-from vanilla@svn.freebsd.org) Message-Id: <201407141002.s6EA2Rnx072695@svn.freebsd.org> From: "Vanilla I. Shu" Date: Mon, 14 Jul 2014 10:02:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r361757 - head/games/chanta 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.18 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: Mon, 14 Jul 2014 10:02:28 -0000 Author: vanilla Date: Mon Jul 14 10:02:27 2014 New Revision: 361757 URL: http://svnweb.freebsd.org/changeset/ports/361757 QAT: https://qat.redports.org/buildarchive/r361757/ Log: 1: Stagify. 2: use options helper Approved by: portmgr@ (blanket) Modified: head/games/chanta/Makefile Modified: head/games/chanta/Makefile ============================================================================== --- head/games/chanta/Makefile Mon Jul 14 09:59:13 2014 (r361756) +++ head/games/chanta/Makefile Mon Jul 14 10:02:27 2014 (r361757) @@ -15,27 +15,23 @@ USE_SDL= sdl image mixer GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD} +OPTIONS_DEFINE= DOCS CHANTADIRS= data ima -NO_STAGE= yes post-configure: @${REINPLACE_CMD} -e 's|-lSDL |`sdl-config --libs` |g' ${WRKSRC}/src/${MAKEFILE} @${REINPLACE_CMD} -e 's|^CXXFLAGS|^CXXFLAGS?|g' ${WRKSRC}/src/${MAKEFILE} do-install: - ${MKDIR} ${DATADIR} + ${MKDIR} ${STAGEDIR}${DATADIR} @cd ${WRKSRC}/src && \ - ${INSTALL_PROGRAM} chanta ${PREFIX}/bin && \ - ${FIND} ${CHANTADIRS} -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \ + ${INSTALL_PROGRAM} chanta ${STAGEDIR}${PREFIX}/bin && \ + ${FIND} ${CHANTADIRS} -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \ ${FIND} -E ${CHANTADIRS} -type f -iregex ".*\.(png|dat)" \ - -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \; - -post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} + -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \; + ${MKDIR} ${STAGEDIR}${DOCSDIR} @cd ${WRKSRC} && \ - ${INSTALL_DATA} AUTHORS ChangeLog README ${DOCSDIR} -.endif + ${INSTALL_DATA} AUTHORS ChangeLog README ${STAGEDIR}${DOCSDIR} .include