From owner-svn-ports-all@FreeBSD.ORG Fri May 30 12:21:12 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AB56AA74; Fri, 30 May 2014 12:21:12 +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 98F2E20BD; Fri, 30 May 2014 12:21:12 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4UCLCWr034945; Fri, 30 May 2014 12:21:12 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4UCLC7H034944; Fri, 30 May 2014 12:21:12 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201405301221.s4UCLC7H034944@svn.freebsd.org> From: Pawel Pekala Date: Fri, 30 May 2014 12:21:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r355823 - head/korean/ami X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2014 12:21:12 -0000 Author: pawel Date: Fri May 30 12:21:12 2014 New Revision: 355823 URL: http://svnweb.freebsd.org/changeset/ports/355823 QAT: https://qat.redports.org/buildarchive/r355823/ Log: - Add staging support - Use options subs, helpers Modified: head/korean/ami/Makefile Modified: head/korean/ami/Makefile ============================================================================== --- head/korean/ami/Makefile Fri May 30 11:29:02 2014 (r355822) +++ head/korean/ami/Makefile Fri May 30 12:21:12 2014 (r355823) @@ -18,28 +18,17 @@ LICENSE= GPLv2 USES= iconv gmake USE_GNOME= gtk12 gdkpixbuf -WANT_GNOME= yes GNU_CONFIGURE= yes -NO_STAGE= yes +PORTDOCS= AUTHORS ChangeLog NEWS README README.en OPTIONS_DEFINE= DOCS NLS +OPTIONS_SUB= yes -.include - -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -LDFLAGS+= -L${LOCALBASE}/lib -CPPFLAGS+= -I${LOCALBASE}/include -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+=--disable-nls -PLIST_SUB+= NLS="@comment " -.endif - -PORTDOCS= AUTHORS ChangeLog NEWS README README.en - -.include +NLS_CONFIGURE_ENABLE= nls +NLS_USES= gettext +NLS_LDFLAGS= -L${LOCALBASE}/lib +NLS_CPPFLAGS= -I${LOCALBASE}/include post-build: ( cd ${WRKSRC}/hanjadic && ${SETENV} ${MAKE_ENV} ${MAKE} ) @@ -47,10 +36,8 @@ post-build: ${CAT} ${DISTDIR}/ami.dic >> ${WRKDIR}/hanja.dic post-install: -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${PREFIX}/share/doc/ami - ( cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} ) -.endif - ${INSTALL_DATA} ${WRKDIR}/hanja.dic ${DATADIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ( cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} ) + ${INSTALL_DATA} ${WRKDIR}/hanja.dic ${STAGEDIR}${DATADIR} -.include +.include