blob: 6bee5cbfd6ab04b2732b369c03058e9f54b92d6b (
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
52
53
|
# $NetBSD: Makefile,v 1.47 2005/10/23 20:55:14 rillig Exp $
DISTNAME= zip231
PKGNAME= zip-2.31
CATEGORIES= archivers
MASTER_SITES= ftp://ftp.info-zip.org/pub/infozip/src/ \
http://ftp.info-zip.org/pub/infozip/src/ \
http://sunsite.cnlab-switch.ch/ftp/mirror/infozip/src/ \
ftp://sunsite.cnlab-switch.ch/mirror/infozip/src/ \
http://www.mirrorservice.org/sites/ftp.info-zip.org/pub/infozip/src/
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://www.info-zip.org/pub/infozip/Zip.html
COMMENT= Create/update ZIP files compatible with pkzip
PKG_INSTALLATION_TYPES= overwrite pkgviews
MAKEFILE= unix/Makefile
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
.include "../../mk/bsd.prefs.mk"
MAKE_FLAGS+= LOCAL_ZIP=${CFLAGS:Q}
MAKE_FLAGS+= LFLAGS1=${_STRIPFLAG_CC:Q}
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "powerpc"
CFLAGS+= -O0
.endif
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc*)
BUILD_TARGET= generic_gcc
.else
BUILD_TARGET= generic
CFLAGS+= -O
.endif
.if ${OPSYS} == "Linux"
CFLAGS+= -DHAVE_DIRENT_H
.endif
INSTALLATION_DIRS= bin man/man1
do-install:
cd ${WRKSRC} && \
${INSTALL_PROGRAM} zip zipnote zipsplit zipcloak ${PREFIX}/bin
cd ${WRKSRC}/man && \
${INSTALL_MAN} zip.1 ${PREFIX}/man/man1
${LN} -f -s zip.1 ${PREFIX}/man/man1/zipcloak.1
${LN} -f -s zip.1 ${PREFIX}/man/man1/zipnote.1
${LN} -f -s zip.1 ${PREFIX}/man/man1/zipsplit.1
.include "../../mk/bsd.pkg.mk"
|