1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/korean/ami/Makefile
2000-10-05 07:22:56 +00:00

63 lines
1.6 KiB
Makefile

# 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
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GTK= yes
WANT_GNOME= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-hangul-keyboard=2
.include <bsd.port.pre.mk>
# gnome support
.if defined(HAVE_GNOME)
USE_GNOME= yes
CONFIGURE_ARGS+=--enable-gnome-applet
DATADIR= share/gnome
.else
DATADIR= share
.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
${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>