aboutsummaryrefslogtreecommitdiffstats
path: root/misc/mmv/Makefile
blob: e8ef68af2a8aeb1562fd00d98074d3581216b840 (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
# New ports collection makefile for:    mmv
# Date created:     2 Feb 1995
# Whom:         Michael Elbel (me)
#
# $FreeBSD$
#

PORTNAME=   mmv
PORTVERSION=    1.01b
CATEGORIES= misc
MASTER_SITES=   http://www.xs4all.nl/~tournoij/distfiles/ \
        ftp://ftp.unicamp.br/pub/unix-c/file-mgmt/ \
        http://carpetsmoker.xs4all.nl/distfiles/
DISTNAME=   mmv
EXTRACT_SUFX=   .tar.Z

MAINTAINER= carpetsmoker@gmail.com
COMMENT=    Move/copy/append/link multiple files with sophisticated wildcard matching

RESTRICTED= No modification or redistribution for charge
CFLAGS+=    -DDIRENT
MAKE_FLAGS= -e
MAN1=       mmv.1
PLIST_FILES=    bin/mad \
        bin/mcp \
        bin/mln \
        bin/mmv

post-extract:
    (cd ${WRKSRC} ; \
     ${CAT} mmv.c.? >mmv.c ; \
     ${PATCH} mmv.c < mmv.patch1 ; )

do-install:
    (cd ${PREFIX}/bin ; ${RM} -f mmv mad mcp mln ; \
     ${INSTALL_PROGRAM} ${WRKSRC}/mmv ${PREFIX}/bin ; \
     ${LN} -fs ${PREFIX}/bin/mmv ${PREFIX}/bin/mad ; \
     ${LN} -fs ${PREFIX}/bin/mmv ${PREFIX}/bin/mcp ; \
     ${LN} -fs ${PREFIX}/bin/mmv ${PREFIX}/bin/mln ; \
     ${INSTALL_MAN} ${WRKSRC}/mmv.1 ${PREFIX}/man/man1 ; )

.include <bsd.port.mk>