summaryrefslogtreecommitdiffstats
path: root/korean/pgp.language/Makefile
blob: bb3870523936144b2ca9e9124fce03812b9ca368 (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
# New ports collection makefile for: pgp.language (korean)
# Date created:         22 Jul 1998
# Whom:                 CHOI Junho <cjh@kr.freebsd.org>
#
# $FreeBSD$
#
# This is based on ja-pgp.
#

PORTNAME=	pgp
PORTVERSION=	2.6.3
CATEGORIES=	korean security
MASTER_SITES=	http://sparcs.kaist.ac.kr/~firiel/Works/ \
		ftp://ftp.kr.freebsd.org/pub/FreeBSD-kr/distfiles/
DISTNAME=	pgp263i-${PGP_LANGUAGE}

MAINTAINER=	cjh@kr.freebsd.org
COMMENT=	Korean language module for PGP

RUN_DEPENDS=	pgp:${PORTSDIR}/security/pgp

USE_ZIP=	YES
NO_BUILD=	YES

# version and language specifications
PGP_LANGUAGE=	korean
PGP_LANG=	ko
PGP_CHARSET=	noconv

PGPLIB=		${PREFIX}/share/pgp
OBJS=		language.txt ${PGP_LANG}.hlp README.${PGP_LANG} \
		${PGP_LANG}2.hlp

do-install:
	-[ -d ${PGPLIB} ] || { \
		${MKDIR} ${PGPLIB} ; \
		${CHOWN} bin:bin ${PGPLIB} ; \
		${CHMOD} 555 ${PGPLIB} ; }
	-[ -f ${PGPLIB}/language.txt ] && \
		${MV} ${PGPLIB}/language.txt ${PGPLIB}/language.txt.bak
	@cd ${WRKDIR}; \
		${INSTALL_DATA} ${OBJS} ${PGPLIB}; \
		${INSTALL_DATA} voca.txt dict.txt ${PGPLIB}
	@cd ${PGPLIB}; \
		${GREP} -l -q '^Language.*=.*${PGP_LANG}' config.txt || \
		${SH} ${SCRIPTDIR}/pgp.config.l10n.sh \
			${PGPLIB} ${PGP_LANG} ${PGP_CHARSET}
	-pgp > /dev/null  2>&1  # update .idx file
	@${CAT} ${PKGMESSAGE}

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