1995-04-15 05:46:07 +02:00
|
|
|
# New ports collection makefile for: mtools
|
|
|
|
# Date created: 5 October 1994
|
|
|
|
# Whom: jmz
|
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1995-04-15 05:46:07 +02:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:56:17 +02:00
|
|
|
PORTNAME= mtools
|
2001-09-06 15:46:44 +02:00
|
|
|
PORTVERSION= 3.9.8
|
|
|
|
PORTREVISION= 0
|
1996-11-12 03:19:40 +01:00
|
|
|
CATEGORIES= emulators
|
1999-01-31 13:31:06 +01:00
|
|
|
MASTER_SITES= ftp://ftp.tux.org/pub/knaff/mtools/ \
|
|
|
|
http://mtools.linux.lu/
|
1998-01-21 09:57:16 +01:00
|
|
|
|
1995-04-11 04:02:17 +02:00
|
|
|
MAINTAINER= jmz@FreeBSD.org
|
1994-10-05 23:32:58 +01:00
|
|
|
|
1999-04-18 14:04:27 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2001-06-05 13:38:35 +02:00
|
|
|
.if !defined(WITHOUT_X11)
|
2001-04-05 02:23:09 +02:00
|
|
|
USE_XLIB= yes
|
|
|
|
CONFIGURE_ARGS= --enable-xdf --enable-floppyd
|
2001-04-29 02:01:00 +02:00
|
|
|
PLIST_SUB= WITH_X11=""
|
2001-04-05 02:23:09 +02:00
|
|
|
.else
|
1999-04-18 14:04:27 +02:00
|
|
|
CONFIGURE_ARGS= --enable-xdf
|
2001-04-29 02:01:00 +02:00
|
|
|
PLIST_SUB= WITH_X11="@comment "
|
2001-04-05 02:23:09 +02:00
|
|
|
.endif
|
1997-04-03 04:39:05 +02:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
1999-04-18 14:04:27 +02:00
|
|
|
MAN1= mattrib.1 mbadblocks.1 mcat.1 mcd.1 mcopy.1 mdel.1 mdeltree.1 \
|
2001-05-16 00:14:45 +02:00
|
|
|
mdir.1 mdu.1 mformat.1 mkmanifest.1 minfo.1 mlabel.1 mmd.1 mmount.1 \
|
2001-09-06 15:46:44 +02:00
|
|
|
mmove.1 mpartition.1 mrd.1 mren.1 mshowfat.1 \
|
2001-04-05 02:23:09 +02:00
|
|
|
mtoolstest.1 mtools.1 mtype.1 mzip.1
|
1996-11-17 06:48:49 +01:00
|
|
|
MAN5= mtools.5
|
1994-10-05 23:32:58 +01:00
|
|
|
|
2001-06-05 13:38:35 +02:00
|
|
|
.if !defined(WITHOUT_X11)
|
2001-04-05 02:23:09 +02:00
|
|
|
MAN1+= floppyd.1 floppyd_installtest.1
|
|
|
|
.endif
|
|
|
|
|
1996-05-27 16:10:29 +02:00
|
|
|
post-patch:
|
2000-11-26 05:13:14 +01:00
|
|
|
@cd ${WRKSRC}; for f in config.c mformat.c mtools.5 mtools.texi; do \
|
1998-05-07 03:59:27 +02:00
|
|
|
${MV} $$f $$f.orig; \
|
|
|
|
${SED} -e s:/etc/mtools.conf:${PREFIX}/etc/mtools.conf: \
|
1996-05-27 16:10:29 +02:00
|
|
|
< $$f.orig > $$f; done
|
1998-01-21 09:57:16 +01:00
|
|
|
@cd ${WRKSRC}/scripts; for f in ocopy xcopy; do \
|
1998-05-07 03:59:27 +02:00
|
|
|
if [ ! -f $$f -a -f $$f.orig ]; then ${CP} -p $$f.orig $$f ; fi \
|
1998-01-21 09:57:16 +01:00
|
|
|
done
|
1996-05-27 16:10:29 +02:00
|
|
|
|
|
|
|
post-install:
|
2001-04-29 02:01:00 +02:00
|
|
|
# mwrite has been removed by author, but we'll keep it just a bit longer
|
1999-08-28 03:58:05 +02:00
|
|
|
@${LN} -sf ${PREFIX}/bin/mtools ${PREFIX}/bin/mwrite
|
|
|
|
@${LN} -sf ${PREFIX}/man/man1/mcopy.1.gz ${PREFIX}/man/man1/mwrite.1.gz
|
2001-03-06 17:35:13 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/mtools.conf ${PREFIX}/etc/mtools.conf.sample
|
1998-05-07 11:52:37 +02:00
|
|
|
@${ECHO} "Please verify ${PREFIX}/etc/mtools.conf for your machine."
|
1997-04-20 03:28:48 +02:00
|
|
|
@install-info ${PREFIX}/info/mtools.info ${PREFIX}/info/dir
|
1994-10-05 23:32:58 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|