aboutsummaryrefslogtreecommitdiff
path: root/emulators/mtools
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>2001-04-05 00:23:09 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>2001-04-05 00:23:09 +0000
commitf30eb2793a1662a07a8080ffcf349748cee2e1e3 (patch)
tree77ca19d37da583a695023e280f413b64a5cf8493 /emulators/mtools
parentad5221ed8d71a760ed22e17621376447a3e0187e (diff)
downloadports-f30eb2793a1662a07a8080ffcf349748cee2e1e3.tar.gz
ports-f30eb2793a1662a07a8080ffcf349748cee2e1e3.zip
Notes
Diffstat (limited to 'emulators/mtools')
-rw-r--r--emulators/mtools/Makefile12
-rw-r--r--emulators/mtools/pkg-plist2
-rw-r--r--emulators/mtools/pkg-plist.x1137
3 files changed, 48 insertions, 3 deletions
diff --git a/emulators/mtools/Makefile b/emulators/mtools/Makefile
index 5ed0a743c9fc..962fd68de8bf 100644
--- a/emulators/mtools/Makefile
+++ b/emulators/mtools/Makefile
@@ -19,16 +19,26 @@ PATCH_DIST_STRIP= -p1
MAINTAINER= jmz@FreeBSD.org
GNU_CONFIGURE= yes
+.if defined(WITH_X11)
+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 floppyd.1 floppyd_installtest.1
+ mtoolstest.1 mtools.1 mtype.1 mzip.1
MAN5= mtools.5
+.if defined(WITH_X11)
+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; \
diff --git a/emulators/mtools/pkg-plist b/emulators/mtools/pkg-plist
index 095bc13e664a..df85e547b4fd 100644
--- a/emulators/mtools/pkg-plist
+++ b/emulators/mtools/pkg-plist
@@ -1,5 +1,3 @@
-bin/floppyd
-bin/floppyd_installtest
bin/mattrib
bin/mbadblocks
bin/mcat
diff --git a/emulators/mtools/pkg-plist.x11 b/emulators/mtools/pkg-plist.x11
new file mode 100644
index 000000000000..095bc13e664a
--- /dev/null
+++ b/emulators/mtools/pkg-plist.x11
@@ -0,0 +1,37 @@
+bin/floppyd
+bin/floppyd_installtest
+bin/mattrib
+bin/mbadblocks
+bin/mcat
+bin/mcd
+bin/mcheck
+bin/mcomp
+bin/mcopy
+bin/mdel
+bin/mdeltree
+bin/mdir
+bin/mdu
+bin/mformat
+bin/minfo
+bin/mkmanifest
+bin/mlabel
+bin/mmd
+bin/mmount
+bin/mmove
+bin/mpartition
+bin/mrd
+bin/mread
+bin/mren
+bin/mshowfat
+bin/mtools
+bin/mtoolstest
+bin/mtype
+bin/mwrite
+bin/mxtar
+bin/mzip
+@unexec install-info --delete %D/info/mtools.info %D/info/dir
+info/mtools.info
+@exec install-info %D/info/mtools.info %D/info/dir
+etc/mtools.conf.sample
+@exec ln -fs %D/man/man1/mcopy.1.gz %D/man/man1/mwrite.1.gz
+@unexec rm %D/man/man1/mwrite.1.gz