aboutsummaryrefslogtreecommitdiff
path: root/archivers/zip/Makefile
blob: 5443e7f55974ea3abc9df3c7e1eb29b32157f35f (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
# New ports collection makefile for:    zip
# ftp://ftp.info-zip.org/pub/infozip/Info-ZIP.html
# Date created:		22 Dec 1994
# Whom:			ache
#
# $FreeBSD$
#

PORTNAME=	zip
PORTVERSION=	2.3
CATEGORIES=	archivers
MASTER_SITES=   ftp://ftp.freesoftware.com/pub/infozip/src/
ZCRYPT_SRC=     zcrypt29-exportable.zip
DISTFILES=	zip23${EXTRACT_SUFX} ${ZCRYPT_SRC}

MAINTAINER=	ache@FreeBSD.org

BUILD_DEPENDS=  unzip:${PORTSDIR}/archivers/unzip

Y2K=            ftp://ftp.info-zip.org/pub/infozip/FAQ.html#Y2K

WRKSRC=         ${WRKDIR}/${PORTNAME}-${PORTVERSION}
EXTRACT_ONLY=   zip23${EXTRACT_SUFX}
MAKEFILE=	unix/Makefile
MAKE_FLAGS=     LOCAL_ZIP="-DUSE_CRYPT" -f
ALL_TARGET=	generic
MAN1=		zip.1

post-extract:
	unzip -q -aa -o ${_DISTDIR}${ZCRYPT_SRC} -d ${WRKSRC} -x WHERE

do-install:
.for file in zip zipcloak zipnote zipsplit
	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
	${INSTALL_MAN} ${WRKSRC}/man/zip.1 ${PREFIX}/man/man1

.include <bsd.port.mk>