aboutsummaryrefslogtreecommitdiffstats
path: root/korean
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-05-30 20:21:12 +0800
committerpawel <pawel@FreeBSD.org>2014-05-30 20:21:12 +0800
commit52e7e353374664f1107fd3f2438399c4ddeded01 (patch)
treeb177fc214aaaeb1b0f21027d499838a89c7c6a74 /korean
parent07cad55e42603eafc5777c3f01601fef35fae0d0 (diff)
downloadfreebsd-ports-gnome-52e7e353374664f1107fd3f2438399c4ddeded01.tar.gz
freebsd-ports-gnome-52e7e353374664f1107fd3f2438399c4ddeded01.tar.zst
freebsd-ports-gnome-52e7e353374664f1107fd3f2438399c4ddeded01.zip
- Add staging support
- Use options subs, helpers
Diffstat (limited to 'korean')
-rw-r--r--korean/ami/Makefile33
1 files changed, 10 insertions, 23 deletions
diff --git a/korean/ami/Makefile b/korean/ami/Makefile
index a2d02d094a9d..c0b39ebd1bdc 100644
--- a/korean/ami/Makefile
+++ b/korean/ami/Makefile
@@ -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 <bsd.port.options.mk>
-
-.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 <bsd.port.pre.mk>
+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 <bsd.port.post.mk>
+.include <bsd.port.mk>