diff options
author | agc <agc@pkgsrc.org> | 2000-09-26 11:09:26 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2000-09-26 11:09:26 +0000 |
commit | a2088e84f574e0200a7d7997047d52e0d1525a43 (patch) | |
tree | d11efd6e038ecc7759b4c4b08a528d181e03401f /sysutils/mtools | |
parent | cab414acf0145b661cde775748b2556f7006386a (diff) | |
download | pkgsrc-a2088e84f574e0200a7d7997047d52e0d1525a43.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/mtools')
-rw-r--r-- | sysutils/mtools/Makefile | 26 |
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" |