1999-08-25 05:41:14 +00:00
|
|
|
# New ports collection makefile for: ami
|
|
|
|
# Date created: 05 Jun 1999
|
|
|
|
# Whom: CHOI Junho <cjh@kr.freebsd.org>
|
|
|
|
#
|
1999-08-30 12:09:14 +00:00
|
|
|
# $FreeBSD$
|
1999-08-25 05:41:14 +00:00
|
|
|
#
|
|
|
|
|
2000-04-13 09:17:26 +00:00
|
|
|
PORTNAME= ami
|
2000-04-30 20:12:21 +00:00
|
|
|
PORTVERSION= 1.0.5
|
1999-08-25 05:41:14 +00:00
|
|
|
CATEGORIES= korean x11
|
2000-01-29 21:34:46 +00:00
|
|
|
MASTER_SITES= http://www.kr.freebsd.org/~hwang/ami/ \
|
|
|
|
http://adam.kaist.ac.kr/~cwryu/archive/misc/
|
|
|
|
DISTFILES= ${DISTNAME}.tar.gz hanja.dic.gz ami.dic
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}.tar.gz
|
1999-08-25 05:41:14 +00:00
|
|
|
|
|
|
|
MAINTAINER= cjh@kr.freebsd.org
|
|
|
|
|
|
|
|
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
|
|
|
|
|
1999-08-31 21:14:46 +00:00
|
|
|
USE_X_PREFIX= YES
|
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
CONFIGURE_ENV= GLIB_CONFIG=${LOCALBASE}/bin/glib12-config \
|
|
|
|
GTK_CONFIG=${X11BASE}/bin/gtk12-config
|
2000-01-29 21:34:46 +00:00
|
|
|
CONFIGURE_ARGS+= --with-hangul-keyboard=2
|
|
|
|
|
|
|
|
# Korean input in dvorak keyboard
|
|
|
|
.if defined(WITH_DVORAK)
|
|
|
|
CONFIGURE_ARGS+= --with-english-keyboard=dvorak
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# gnome support
|
|
|
|
.if defined(WITH_GNOME_APPLET)
|
2000-04-13 09:17:26 +00:00
|
|
|
PKGNAMESUFFIX= -gnome
|
2000-01-29 21:34:46 +00:00
|
|
|
RUN_DEPENDS+= panel:${PORTSDIR}/x11/gnomecore
|
2000-06-01 16:25:45 +00:00
|
|
|
LIB_DEPENDS+= gnome.4:${PORTSDIR}/x11/gnomelibs
|
2000-01-29 21:34:46 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-gnome-applet
|
|
|
|
.endif
|
1999-08-25 05:41:14 +00:00
|
|
|
|
1999-08-31 21:14:46 +00:00
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}/hanjadic; \
|
|
|
|
${MAKE}
|
1999-08-25 05:41:14 +00:00
|
|
|
|
1999-08-31 21:14:46 +00:00
|
|
|
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
|
|
|
|
|
2000-01-29 21:34:46 +00:00
|
|
|
.for NAME in AUTHORS README NEWS COPYING ChangeLog
|
1999-08-31 21:14:46 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${NAME} \
|
|
|
|
${PREFIX}/share/doc/ami
|
|
|
|
.endfor
|
1999-08-25 05:41:14 +00:00
|
|
|
|
2000-01-29 21:34:46 +00:00
|
|
|
# dic
|
|
|
|
${GUNZIP_CMD} -cd ${_DISTDIR}/hanja.dic.gz > \
|
|
|
|
${PREFIX}/share/ami/hanja.dic
|
|
|
|
${CAT} ${_DISTDIR}/ami.dic >> ${PREFIX}/share/ami/hanja.dic
|
|
|
|
|
1999-08-25 05:41:14 +00:00
|
|
|
.include <bsd.port.mk>
|