summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authoragc <agc>2000-09-26 11:09:26 +0000
committeragc <agc>2000-09-26 11:09:26 +0000
commitc2142f3ed4a05d3f9722bd45945da9af8452c20b (patch)
treed11efd6e038ecc7759b4c4b08a528d181e03401f /sysutils
parent542a074f3c962f6bc83b946fbc3d0a3af61fc29a (diff)
downloadpkgsrc-c2142f3ed4a05d3f9722bd45945da9af8452c20b.tar.gz
Introduce a new mk.conf definition MTOOLS_ENABLE_FLOPPYD, which
can either be defined or not. This governs the installation of the floppyd binary in the mtools package. The floppyd program needs the SM and ICE libs from the X11 distribution to link (floppyd's authorisation model to enable remote access to floppy drives closely resembles that of X11's xauth model). Modify the mtools Makefile accordingly.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/mtools/Makefile26
1 files changed, 16 insertions, 10 deletions
diff --git a/sysutils/mtools/Makefile b/sysutils/mtools/Makefile
index fbdbe3a5f96..778410c10aa 100644
--- a/sysutils/mtools/Makefile
+++ b/sysutils/mtools/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2000/01/04 17:49:41 bouyer Exp $
+# $NetBSD: Makefile,v 1.18 2000/09/26 11:09:27 agc Exp $
#
DISTNAME= mtools-3.9.5
@@ -13,11 +13,17 @@ HOMEPAGE= http://www.tux.org/pub/knaff/mtools/
GNU_CONFIGURE= yes
USE_GMAKE= yes
-CPPFLAGS+= -I${X11BASE}/include
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
-
INFO_FILES= mtools.info
+.include "../../mk/bsd.prefs.mk"
+
+.ifdef MTOOLS_ENABLE_FLOPPYD
+USE_X11= yes
+CPPFLAGS+= -I${X11BASE}/include
+CONFIGURE_ARGS+= --enable-floppyd
+.endif
+
PLIST_SRC= ${WRKDIR}/PLIST
pre-patch:
@@ -27,12 +33,12 @@ post-patch:
@${RM} ${WRKSRC}/mtools
post-install:
- @if [ -x ${PREFIX}/bin/floppyd ]; then \
- ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \
- else \
- ${ECHO} ${RM} -f ${PREFIX}/man/man1/floppyd.1; \
- ${RM} -f ${PREFIX}/man/man1/floppyd.1; \
- ${GREP} -v /floppyd ${PKGDIR}/PLIST >${PLIST_SRC}; \
- fi \
+.ifdef MTOOLS_ENABLE_FLOPPYD
+ ${RM} -f ${PREFIX}/man/man1/floppyd.1
+ ${RM} -f ${PREFIX}/bin/floppyd ${PREFIX}/bin/floppyd_installtest
+ ${GREP} -v /floppyd ${PKGDIR}/PLIST >${PLIST_SRC}
+.else
+ ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
+.endif
.include "../../mk/bsd.pkg.mk"