aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/unzoo/Makefile
blob: 1efc4624697a8f5ecc42cf9aa45f4a94f47b91c7 (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
39
40
41
42
43
# New ports collection makefile for:    unzoo
# Date created:             20 Jun 2005
# Whom:                 Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=   unzoo
PORTVERSION=    4.4
PORTREVISION=   2
CATEGORIES= archivers
MASTER_SITES=   CRITICAL
DISTNAME=   ${PORTNAME}_${PORTVERSION}.orig

PATCH_SITES=    ${MASTER_SITES}
PATCHFILES= unzoo_4.4-4.diff.gz
PATCH_DIST_STRIP=   -p1

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    A zoo archive extractor

MAKE_JOBS_SAFE= yes

EXTRA_DEFINES=  -DSYS_IS_UNIX -DSYS_HAS_MKDIR

MAN1=       unzoo.1
PLIST_FILES=    bin/unzoo

CFLAGS+=    -trigraphs

post-extract:
    @${MKDIR} ${WRKSRC}
    @${MV} ${WRKDIR}/${PORTNAME}.c ${WRKSRC}

do-build:
    ${CC} ${CFLAGS} ${EXTRA_DEFINES} -o ${WRKSRC}/${PORTNAME} \
        ${WRKSRC}/${PORTNAME}.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/debian/${PORTNAME}.1 ${MAN1PREFIX}/man/man1

.include <bsd.port.mk>