1998-04-28 11:19:58 -04:00
|
|
|
# New ports collection makefile for: mtools + support 1232KB , Unicode LFN
|
|
|
|
# Date created: 6 October 1997
|
|
|
|
# Whom: WATANABE junya <junya-w@remus.dti.ne.jp>
|
|
|
|
#
|
1999-08-25 01:28:01 -04:00
|
|
|
# $FreeBSD$
|
1998-04-28 11:19:58 -04:00
|
|
|
#
|
|
|
|
|
2000-04-11 10:15:53 -04:00
|
|
|
PORTNAME= mtools
|
2000-04-30 15:15:37 -04:00
|
|
|
PORTVERSION= 3.9.6
|
1998-04-28 11:19:58 -04:00
|
|
|
CATEGORIES= japanese emulators
|
2000-04-30 15:15:37 -04:00
|
|
|
MASTER_SITES= ftp://ftp.tux.org/pub/knaff/mtools/ \
|
|
|
|
http://mtools.linux.lu/ \
|
2000-07-07 14:44:49 -04:00
|
|
|
${MASTER_SITE_LOCAL} \
|
2000-04-30 15:15:37 -04:00
|
|
|
${MASTER_SITE_PORTS_JP}
|
2000-07-07 14:44:49 -04:00
|
|
|
MASTER_SITE_SUBDIR= steve
|
2000-04-11 10:15:53 -04:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
${DISTNAME}.PC98.patch.gz
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1998-04-28 11:19:58 -04:00
|
|
|
|
|
|
|
MAINTAINER= junya-w@remus.dti.ne.jp
|
|
|
|
|
2000-04-30 15:15:37 -04:00
|
|
|
GNU_CONFIGURE= yes
|
1998-04-28 11:19:58 -04:00
|
|
|
CONFIGURE_ARGS= --enable-xdf
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2000-04-30 15:15:37 -04:00
|
|
|
MAN1= mattrib.1 mbadblocks.1 mcat.1 mcd.1 mcopy.1 mdel.1 mdeltree.1 \
|
|
|
|
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
|
1998-04-28 11:19:58 -04:00
|
|
|
MAN5= mtools.5
|
2000-07-07 14:46:46 -04:00
|
|
|
MLINKS= mcopy.1 mwrite.1
|
1998-04-28 11:19:58 -04:00
|
|
|
|
|
|
|
post-patch:
|
2000-04-30 15:15:37 -04:00
|
|
|
@cd ${WRKSRC}; \
|
|
|
|
${GZCAT} ${DISTDIR}/mtools-3.9.6.PC98.patch.gz | ${PATCH} -d . >/dev/null 2>&1; \
|
1998-04-28 11:19:58 -04:00
|
|
|
for f in config.c mtools.5 mtools.texi; do \
|
|
|
|
${MV} $$f $$f.orig; \
|
|
|
|
${SED} -e s:/etc/mtools.conf:${PREFIX}/etc/mtools.conf: \
|
2000-04-30 15:15:37 -04:00
|
|
|
< $$f.orig > $$f; done
|
|
|
|
@cd ${WRKSRC}/scripts; for f in ocopy xcopy; do \
|
|
|
|
if [ ! -f $$f -a -f $$f.orig ]; then ${CP} -p $$f.orig $$f ; fi \
|
|
|
|
done
|
1998-04-28 11:19:58 -04:00
|
|
|
|
|
|
|
post-install:
|
2000-04-30 15:15:37 -04:00
|
|
|
@# mwrite has been removed by author, but we'll keep it just a bit longer
|
|
|
|
@${LN} -sf ${PREFIX}/bin/mtools ${PREFIX}/bin/mwrite
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/mtools.conf ${PREFIX}/etc
|
|
|
|
@${ECHO} "Please verify ${PREFIX}/etc/mtools.conf for your machine."
|
1998-04-28 11:19:58 -04:00
|
|
|
@install-info ${PREFIX}/info/mtools.info ${PREFIX}/info/dir
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|