summaryrefslogtreecommitdiffstats
path: root/korean/ami/Makefile
blob: bbfc75b63a37da8f8f13011c3e05ada79ecbffb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# 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
.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>
OpenPOWER on IntegriCloud