aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/unzip/Makefile
blob: 9fdaa7aba5168950d0764b436711a24976f91172 (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:    unzip
# Version required:     5.3.2
# Date created:         17 October 1994
# Whom:                 jmz
#
# $Id: Makefile,v 1.19 1998/10/04 10:31:38 jkh Exp $
#

DISTNAME=   unzip532
PKGNAME=    unzip-5.3.2
CATEGORIES= archivers
MASTER_SITES=   ftp://ftp.cdrom.com/pub/infozip/src/

MAINTAINER=     ache@FreeBSD.ORG

WRKSRC=     ${WRKDIR}/unzip-5.32
MAKEFILE=       unix/Makefile
.if ${ARCH} == alpha
ALL_TARGET= bsd
.else
ALL_TARGET=     freebsd
.endif
MAKE_FLAGS=     LOCAL_UNZIP="${CFLAGS} -DUSE_UNSHRINK" -f
MAN1=           funzip.1 unzip.1 unzipsfx.1 zipgrep.1 zipinfo.1

do-install:
    cd ${WRKSRC} && \
        ${INSTALL_PROGRAM} unzip funzip unzipsfx ${PREFIX}/bin
    ln -sf unzip ${PREFIX}/bin/zipinfo
    cd ${WRKSRC}/unix && \
        ${INSTALL_SCRIPT} zipgrep ${PREFIX}/bin
    cd ${WRKSRC}/unix && \
        ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1
    ${INSTALL} -d -m 555 -o ${SHAREOWN} -g ${SHAREGRP} ${PREFIX}/share/doc/unzip
    cd ${WRKSRC} && \
        ${INSTALL_DATA} README COPYING WHERE ${PREFIX}/share/doc/unzip

.include <bsd.port.mk>