summaryrefslogtreecommitdiff
path: root/archivers/zip1/Makefile
blob: 1ba6e74d8c0af7501474603ed515bfb885792723 (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
# $NetBSD: Makefile,v 1.5 1999/04/01 14:07:52 agc Exp $
#

DISTNAME=	zip1-1.1
CATEGORIES=	archivers
MASTER_SITES=	ftp://ftp.cdrom.com/pub/infozip/src/ \
		ftp://ftp.icce.rug.nl/infozip/src/
DISTFILES=	zip11.zip

MAINTAINER=	tv@netbsd.org
HOMEPAGE=	http://www.cdrom.com/pub/infozip/

BUILD_DEPENDS=	unzip:../../archivers/unzip

EXTRACT_CMD=	unzip -qo ${DOWNLOADED_DISTFILE}

MAKEFILE=	makefile
MAKE_FLAGS=	CFLAGS="${CFLAGS} -DDIRENT" LFLAGS2="-lcompat"
ALL_TARGET=	zip

NO_WRKSUBDIR=	yes
PLIST_SRC=	${WRKSRC}/PLIST

.include "../../mk/bsd.prefs.mk"

.if defined(ZIP_ENCRYPTION)
DISTFILES+=	zcrypt10.zip
ALL_TARGET+=	zipcloak
RESTRICTED=	crypto
MIRROR_DISTFILE=no
.endif

do-install:
	@${CP} ${PKGDIR}/PLIST.pre ${PLIST_SRC}
	cd ${WRKSRC} && ${INSTALL_PROGRAM} zip ${PREFIX}/bin/zip1
	cd ${WRKSRC} && ${INSTALL_MAN} zip.1 ${PREFIX}/man/man1/zip1.1
.if defined(ZIP_ENCRYPTION)
	cd ${WRKSRC} && ${INSTALL_PROGRAM} zipcloak ${PREFIX}/bin/zipcloak1
	ln -fs zip1.1 ${PREFIX}/man/man1/zipcloak1.1
	@${ECHO} >>${PLIST_SRC} "bin/zipcloak1"
	@${ECHO} >>${PLIST_SRC} "man/man1/zipcloak1.1"
.endif

.include "../../mk/bsd.pkg.mk"