summaryrefslogtreecommitdiff
path: root/misc/mmv/Makefile
blob: 5e5f40a176ea1a75081e11a6e354aa0840ef3fa4 (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
44
45
46
47
48
# New ports collection makefile for:	mmv
# Version required:	1.01b
# Date created:		2 Feb 1995
# Whom:			Michael Elbel (me)
#
# $Id: Makefile,v 1.15 1996/12/08 12:02:01 max Exp $
#

DISTNAME=	mmv
PKGNAME=	mmv-1.01b
CATEGORIES=	misc
MASTER_SITES=	ftp://gatekeeper.dec.com/pub/usenet/comp.sources.unix/volume21/mmv/
DISTFILES=	part01.Z part02.Z

PATCH_SITES=			ftp://gatekeeper.dec.com/pub/usenet/comp.sources.unix/volume22/
PATCHFILES=	mmv.pch.Z

MAINTAINER=	me@FreeBSD.org

NO_CDROM=	"No redistribution for charge"
NO_PACKAGE=	"No modification"
DIST_SUBDIR=	${DISTNAME}
NO_WRKSUBDIR=	yes
PATCH_DIST_ARGS=	-d ${WRKSRC} --forward --quiet -E ${PATCH_DIST_STRIP} mmv.c
MAN1=		mmv.1

do-extract:
	@${RM} -rf ${WRKDIR}
	@${MKDIR} ${WRKDIR}/tmp
	@(for file in ${DISTFILES}; do \
		${CP} ${DISTDIR}/${DIST_SUBDIR}/$$file ${WRKDIR}/tmp; \
	 done ; \
	 uncompress ${WRKDIR}/tmp/*; \
	 cd ${WRKDIR}; \
	 for file in tmp/part0* ; do \
	     ${SH} ${SCRIPTDIR}/unshar $$file; \
	 done ; \
	 ${CAT} mmv.c.? >mmv.c ; ${RM} mmv.c.? )

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>