blob: 58713e318fa63218681002c64e7c09e11d1fd069 (
plain) (
blame)
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
64
65
66
67
68
69
|
# New ports collection makefile for: ami
# Date created: 05 Jun 1999
# Whom: CHOI Junho <cjh@kr.freebsd.org>
#
# $FreeBSD$
#
PORTNAME= ami
PORTVERSION= 1.0.6
CATEGORIES= korean x11
MASTER_SITES= http://www.kr.freebsd.org/~hwang/ami/ \
http://master.debian-kr.org/~cwryu/archive/misc/
DISTFILES= ${DISTNAME}.tar.gz hanja.dic.gz ami.dic
EXTRACT_ONLY= ${DISTNAME}.tar.gz
MAINTAINER= cjh@kr.freebsd.org
LIB_DEPENDS= gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf
GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
USE_X_PREFIX= YES
USE_GMAKE= YES
GNU_CONFIGURE= YES
CONFIGURE_ENV= GTK_CONFIG="${GTK_CONFIG}"
CONFIGURE_ARGS= --with-hangul-keyboard=2
MAKE_ENV= GLIB_CONFIG="${GLIB_CONFIG}"
# gnome panel applet support
.if defined(WITH_GNOME_APPLET)
PKGNAMESUFFIX= -gnome
RUN_DEPENDS+= panel:${PORTSDIR}/x11/gnomecore
CONFIGURE_ARGS+= --enable-gnome-applet
.else
pre-fetch:
@${ECHO_MSG} "Type \"make WITH_GNOME_APPLET=YES\" if you want GNOME panel applet support."
.endif
post-build:
@cd ${WRKSRC}/hanjadic; \
${MAKE_ENV} ${MAKE} ${MAKE_ARGS}
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/hanjadic/hanja-hwp2ami ${PREFIX}/bin
# patch XLC_LOCALE for ko_KR.EUC(harmless)
if [ -f ${PREFIX}/lib/X11/locale/ko/XLC_LOCALE; then \
${MV} -f ${PREFIX}/lib/X11/locale/ko/XLC_LOCALE \
${PREFIX}/lib/X11/locale/ko/XLC_LOCALE.orig; \
fi
${INSTALL_DATA} ${FILESDIR}/XLC_LOCALE \
${PREFIX}/lib/X11/locale/ko/
${MKDIR} ${PREFIX}/share/doc/ami
${INSTALL_DATA} ${FILESDIR}/XLC_LOCALE \
${PREFIX}/share/doc/ami
.for NAME in AUTHORS README NEWS ChangeLog
${INSTALL_DATA} ${WRKSRC}/${NAME} \
${PREFIX}/share/doc/ami
.endfor
# dic
${GUNZIP_CMD} -cd ${_DISTDIR}/hanja.dic.gz > \
${PREFIX}/share/ami/hanja.dic
${CAT} ${_DISTDIR}/ami.dic >> ${PREFIX}/share/ami/hanja.dic
.include <bsd.port.mk>
|