aboutsummaryrefslogtreecommitdiffstats
path: root/misc/mmv/Makefile
blob: 636fc87b2365aebc6ec7bb8cea585f0098048747 (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:    mmv
# Date created:     2 Feb 1995
# Whom:         Michael Elbel (me)
#
# $FreeBSD$
#

PORTNAME=   mmv
PORTVERSION=    1.01b.15
CATEGORIES= misc
MASTER_SITES=   ${MASTER_SITE_DEBIAN_POOL}
DISTNAME=   ${PORTNAME}_1.01b.orig

PATCH_SITES=    ${MASTER_SITES}
PATCHFILES= ${PORTNAME}_1.01b-15.diff.gz
PATCH_DIST_STRIP=   -p1

MAINTAINER= simon@olofsson.de
COMMENT=    Move/Copy/Append/Link multiple files

CFLAGS+=    -DHAS_DIRENT
MAN1=       mmv.1 mad.1 mcp.1 mln.1
PLIST_FILES=    bin/mmv bin/mad bin/mcp bin/mln
WRKSRC=     ${WRKDIR}/${PORTNAME}-1.01b.orig

do-build:
    @(cd ${WRKSRC} ; \
    ${CC} ${CFLAGS} -o ${PORTNAME} ${PORTNAME}.c ; )

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
    @${INSTALL_MAN} ${WRKSRC}/mmv.1 ${PREFIX}/man/man1/${PORTNAME}.1
.for i in mcp mad mln
    @${LN} ${PREFIX}/bin/${PORTNAME} ${PREFIX}/bin/${i}
    @${LN} ${PREFIX}/man/man1/${PORTNAME}.1 ${PREFIX}/man/man1/${i}.1
.endfor

.include <bsd.port.mk>