1995-04-15 03:46:07 +00:00
|
|
|
# New ports collection makefile for: mtools
|
1998-05-22 06:26:28 +00:00
|
|
|
# Version required: 3.9.1
|
1995-04-15 03:46:07 +00:00
|
|
|
# Date created: 5 October 1994
|
|
|
|
# Whom: jmz
|
|
|
|
#
|
1998-07-02 11:10:02 +00:00
|
|
|
# $Id: Makefile,v 1.22 1998/05/22 06:26:27 mph Exp $
|
1995-04-15 03:46:07 +00:00
|
|
|
#
|
|
|
|
|
1998-05-22 06:26:28 +00:00
|
|
|
DISTNAME= mtools-3.9.1
|
1996-11-12 02:19:40 +00:00
|
|
|
CATEGORIES= emulators
|
1998-05-07 01:59:27 +00:00
|
|
|
MASTER_SITES= ftp://linux.wauug.org/pub/knaff/mtools/
|
1998-01-21 08:57:16 +00:00
|
|
|
|
1998-07-02 11:10:02 +00:00
|
|
|
PATCHFILES= mtools-3.9.1-2906.diff.gz
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
1995-04-11 02:02:17 +00:00
|
|
|
MAINTAINER= jmz@FreeBSD.org
|
1994-10-05 22:32:58 +00:00
|
|
|
|
1998-05-07 01:59:27 +00:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-xdf --prefix=${PREFIX}
|
1997-04-03 02:39:05 +00:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
1996-11-17 05:48:49 +00:00
|
|
|
MAN1= mattrib.1 mbadblocks.1 mcd.1 mcopy.1 mdel.1 mdeltree.1 \
|
1998-05-07 09:52:37 +00:00
|
|
|
mdir.1 mdu.1 mformat.1 mkmanifest.1 mlabel.1 mmd.1 mmount.1 \
|
|
|
|
mmove.1 mpartition.1 mrd.1 mread.1 mren.1 mshowfat.1 \
|
|
|
|
mtoolstest.1 mtools.1 mtype.1 mzip.1
|
1996-11-17 05:48:49 +00:00
|
|
|
MAN5= mtools.5
|
1994-10-05 22:32:58 +00:00
|
|
|
|
1996-05-27 14:10:29 +00:00
|
|
|
post-patch:
|
|
|
|
@cd ${WRKSRC}; for f in config.c mtools.5 mtools.texi; do \
|
1998-05-07 01:59:27 +00:00
|
|
|
${MV} $$f $$f.orig; \
|
|
|
|
${SED} -e s:/etc/mtools.conf:${PREFIX}/etc/mtools.conf: \
|
1996-05-27 14:10:29 +00:00
|
|
|
< $$f.orig > $$f; done
|
1998-01-21 08:57:16 +00:00
|
|
|
@cd ${WRKSRC}/scripts; for f in ocopy xcopy; do \
|
1998-05-07 01:59:27 +00:00
|
|
|
if [ ! -f $$f -a -f $$f.orig ]; then ${CP} -p $$f.orig $$f ; fi \
|
1998-01-21 08:57:16 +00:00
|
|
|
done
|
1996-05-27 14:10:29 +00:00
|
|
|
|
|
|
|
post-install:
|
1998-05-07 09:52:37 +00:00
|
|
|
@# mwrite has been removed by author, but we'll keep it just a bit longer
|
|
|
|
@ln -sf ${PREFIX}/bin/mtools ${PREFIX}/bin/mwrite
|
|
|
|
@ln -sf ${PREFIX}/man/man1/mcopy.1.gz ${PREFIX}/man/man1/mwrite.1.gz
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/mtools.conf ${PREFIX}/etc
|
|
|
|
@${ECHO} "Please verify ${PREFIX}/etc/mtools.conf for your machine."
|
1997-10-08 21:12:22 +00:00
|
|
|
@if [ ! -f ${PREFIX}/info/dir ]; then \
|
|
|
|
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
|
|
|
|
fi
|
1997-04-20 01:28:48 +00:00
|
|
|
@install-info ${PREFIX}/info/mtools.info ${PREFIX}/info/dir
|
1994-10-05 22:32:58 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|