1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/korean/ami/Makefile
Emanuel Haupt 5005b67362 According to the Porter's Handbook (5.12.2.3.) default options must be added to
OPTIONS_DEFINE. This policy has been implemented only recently that's why we
have many ports violating this policy.

This patch adds the default options specified in the Porter's Handbook to
OPTIONS_DEFINE where they are being used. Ports maintained by
gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded.

Approved by:    portmgr (bapt)
2014-02-10 13:54:26 +00:00

58 lines
1.3 KiB
Makefile

# Created by: Junho CHOI <junho.choi@gmail.com>
# $FreeBSD$
PORTNAME= ami
PORTVERSION= 1.2.3
PORTREVISION= 1
CATEGORIES= korean x11
MASTER_SITES= http://kldp.net/frs/download.php/942/ \
http://www.kr.freebsd.org/~hwang/ami/:hjdic \
ftp://ftp.kr.freebsd.org/pub/FreeBSD-kr/distfiles/:amidic
DISTFILES= ${DISTNAME}.tar.gz hanja.dic.gz:hjdic ami.dic:amidic
EXTRACT_ONLY= ${DISTNAME}.tar.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= Well-known Korean X11 Input Method
LICENSE= GPLv2
USES= iconv
USE_GMAKE= yes
USE_GNOME= gtk12 gdkpixbuf
WANT_GNOME= yes
GNU_CONFIGURE= yes
NO_STAGE= yes
OPTIONS_DEFINE= DOCS NLS
.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>
post-build:
( cd ${WRKSRC}/hanjadic && ${SETENV} ${MAKE_ENV} ${MAKE} )
${GUNZIP_CMD} -cd ${DISTDIR}/hanja.dic.gz > ${WRKDIR}/hanja.dic
${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}
.include <bsd.port.post.mk>