freebsd-ports/russian/pgp.language/Makefile
Satoshi Asami 5114e2637e Adjust port Makefiles to new EXTRACT_* variable defaults. See log of
bsd.port.mk rev. 1.304 for details on the change.

The fix here is one of the following.

(1) Define USE_BZIP2 instead of BUILD_DEPENDS on bzip2 and redefining
    EXTRACT_* commands.

(2) Change ${EXTRACT_CMD} to ${TAR} when the command is obviously
    calling the "tar" command (i.e., arguments like "-xzf" are spelled
    out).

(3) If ${EXTRACT_CMD} is called directly with ${EXTRACT_BEFORE_ARGS},
    add ${EXTRACT_AFTER_ARGS} to the command line as well.

(4) If any of EXTRACT_CMD, EXTRACT_BEFORE_ARGS or EXTRACT_AFTER_ARGS
    is set, define the other two too.
1999-02-03 11:12:01 +00:00

41 lines
1.1 KiB
Makefile

# New ports collection makefile for: pgp.language
# Version required: 2.6.3ia
# Date created: 4 May 1995
# Whom: ache
#
# $Id: Makefile,v 1.20 1998/10/19 20:00:35 ache Exp $
#
DISTNAME= pgp26ru
PKGNAME= ru-pgp-2.6.3ia
CATEGORIES= russian
MASTER_SITES= ftp://ftp.kiarchive.ru/pub/unix/crypto/pgp/
EXTRACT_SUFX= .zip
MAINTAINER= ache@FreeBSD.ORG
RESTRICTED= "Crypto"
BUILD_DEPENDS += unzip:${PORTSDIR}/archivers/unzip
RUN_DEPENDS += ${PREFIX}/lib/pgp/config.txt:${PORTSDIR}/security/pgp
EXTRACT_CMD= unzip
EXTRACT_BEFORE_ARGS= -q
EXTRACT_AFTER_ARGS= # empty
NO_WRKSUBDIR= YES
NO_BUILD= YES
PGPLIB= ${PREFIX}/lib/pgp
OBJS= language.txt ru.hlp
do-install:
[ -d ${PGPLIB} ] || mkdir -p ${PGPLIB}
cd ${WRKSRC}; install -c -o bin -g bin -m 444 ${OBJS} ${PGPLIB}
cd ${WRKSRC}; tr -d '\015' < NOTES.ru > ${PGPLIB}/NOTES.ru
cd ${PGPLIB}; grep -l -q '^Language.*=.*ru' config.txt || { \
cp config.txt config.txt.bak; \
sed 's/^Language.*=.*$$/Language = ru/' < config.txt.bak > config.txt; }
-pgp > /dev/null 2>&1 # update .idx file
.include <bsd.port.mk>