2dbe3cb4e7
Some ports use WITH_X11, some other WITHOUT_X11 or WITHOUT_X but it seems that only NO_X is documented and can be set in make.conf
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# New ports collection makefile for: mtools
|
|
# Date created: 5 October 1994
|
|
# Whom: jmz
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mtools
|
|
PORTVERSION= 3.9.7
|
|
PORTREVISION= 4
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= ftp://ftp.tux.org/pub/knaff/mtools/ \
|
|
http://mtools.linux.lu/
|
|
|
|
PATCH_SITES= http://mtools.linux.lu/
|
|
PATCHFILES= mtools-3.9.7-20001213.diff.gz
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= jmz@FreeBSD.org
|
|
|
|
GNU_CONFIGURE= yes
|
|
.if !defined(NO_X)
|
|
USE_XLIB= yes
|
|
CONFIGURE_ARGS= --enable-xdf --enable-floppyd
|
|
PLIST= pkg-plist.x11
|
|
.else
|
|
CONFIGURE_ARGS= --enable-xdf
|
|
.endif
|
|
|
|
USE_GMAKE= yes
|
|
|
|
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
|
|
MAN5= mtools.5
|
|
|
|
.if !defined(NO_X)
|
|
MAN1+= floppyd.1 floppyd_installtest.1
|
|
.endif
|
|
|
|
post-patch:
|
|
@cd ${WRKSRC}; for f in config.c mformat.c mtools.5 mtools.texi; do \
|
|
${MV} $$f $$f.orig; \
|
|
${SED} -e s:/etc/mtools.conf:${PREFIX}/etc/mtools.conf: \
|
|
< $$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
|
|
|
|
post-install:
|
|
@# 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/mtools.conf.sample
|
|
@${ECHO} "Please verify ${PREFIX}/etc/mtools.conf for your machine."
|
|
@install-info ${PREFIX}/info/mtools.info ${PREFIX}/info/dir
|
|
|
|
.include <bsd.port.mk>
|