Date: Mon, 14 Jul 2014 10:02:27 +0000 (UTC) From: "Vanilla I. Shu" <vanilla@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r361757 - head/games/chanta Message-ID: <201407141002.s6EA2Rnx072695@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407141002.s6EA2Rnx072695>