summaryrefslogtreecommitdiffstats
path: root/korean/ami/Makefile
blob: e73c1421a5637c503e294192ca00d5d9d2d99a19 (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
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:	ami
# Date created:		05 Jun 1999
# Whom:			CHOI Junho <cjh@kr.freebsd.org>
#
# $FreeBSD$
#

PORTNAME=	ami
PORTVERSION=	1.2.2
CATEGORIES=	korean x11
MASTER_SITES=	http://download.kldp.net/ami/ \
		http://www.kr.freebsd.org/~hwang/ami/:hjdic \
		http://master.debian.or.kr/~cwryu/archive/misc/:amidic
DISTFILES=	${DISTNAME}.tar.gz hanja.dic.gz:hjdic ami.dic:amidic
EXTRACT_ONLY=	${DISTNAME}.tar.gz

MAINTAINER=	cjh@FreeBSD.org
COMMENT=	Well-known Korean X11 Input Method

USE_X_PREFIX=	yes
USE_GMAKE=	yes
USE_GNOME=	gtk12 gdkpixbuf
WANT_GNOME=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-hangul-keyboard=2 --datadir=${PREFIX}/${DATADIR} \
		--with-libiconv-prefix=${LOCALBASE} \
		--with-gdk-pixbuf-prefix=${X11BASE} \
		--without-included-gettext
DATADIR=	share

.include <bsd.port.pre.mk>

# gnome support
.if ${HAVE_GNOME:Mlibpanel}!=""
USE_GNOME+=	gnomeprefix gnomehack libpanel
CONFIGURE_ARGS+=--enable-gnome-applet
DATADIR=	share/gnome
CATEGORIES+=	gnome
.endif

pre-everything::
.if ${HAVE_GNOME:Mlibpanel}==""
	@${ECHO} Define WITH_GNOME=yes if you want to enable GNOME applet support.
.else
	@${ECHO} Define WITHOUT_GNOME=yes if you want to build without GNOME
	@${ECHO} applet support and with minimal dependencies.
.endif

post-build:
	@cd ${WRKSRC}/hanjadic; \
	${MAKE_ENV} ${MAKE} ${MAKE_ARGS}

post-install:
	${MKDIR} ${PREFIX}/share/doc/ami
.for NAME in AUTHORS README README.en NEWS ChangeLog
	${INSTALL_DATA} ${WRKSRC}/${NAME} \
		${PREFIX}/share/doc/ami
.endfor
	${GUNZIP_CMD} -cd ${DISTDIR}/hanja.dic.gz > \
			${PREFIX}/${DATADIR}/ami/hanja.dic
	${CAT} ${DISTDIR}/ami.dic >> ${PREFIX}/${DATADIR}/ami/hanja.dic

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud