diff options
author | jlam <jlam@pkgsrc.org> | 2008-04-10 21:19:19 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-04-10 21:19:19 +0000 |
commit | 2ef6f9a883a9c2fa44045b5fdfa13dfe143ced4e (patch) | |
tree | c137c76d92c6ac8cf99f74c9eb438b3fae2e1767 /sysutils | |
parent | ba8d4b3c72bce680a9ae60c31ba7808b7cd372b6 (diff) | |
download | pkgsrc-2ef6f9a883a9c2fa44045b5fdfa13dfe143ced4e.tar.gz |
+ Use the options framework instead of using MTOOLS_ENABLE_FLOPPYD.
+ Convert to use PLIST_VARS instead of manually passing "@comment "
to the plist module.
Bump the PKGREVISION to 1 due to the options changes.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/mtools/Makefile | 23 | ||||
-rw-r--r-- | sysutils/mtools/PLIST | 10 | ||||
-rw-r--r-- | sysutils/mtools/options.mk | 19 |
3 files changed, 30 insertions, 22 deletions
diff --git a/sysutils/mtools/Makefile b/sysutils/mtools/Makefile index 53095db9aac..f9d1ca4a0e3 100644 --- a/sysutils/mtools/Makefile +++ b/sysutils/mtools/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.41 2007/12/09 23:38:21 wiz Exp $ +# $NetBSD: Makefile,v 1.42 2008/04/10 21:19:19 jlam Exp $ DISTNAME= mtools-3.9.11 +PKGREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://mtools.linux.lu/ EXTRACT_SUFX= .tar.bz2 @@ -11,24 +12,12 @@ COMMENT= FAT (MS-DOS, Atari) disk access tools PKG_DESTDIR_SUPPORT= user-destdir -NOT_FOR_PLATFORM = *-*-alpha *-*-sparc64 # LP64 problem +NOT_FOR_PLATFORM= *-*-alpha *-*-sparc64 # LP64 problem -GNU_CONFIGURE= YES +GNU_CONFIGURE= yes USE_TOOLS+= gmake makeinfo -INFO_FILES= YES +INFO_FILES= yes -.include "../../mk/bsd.prefs.mk" - -.if defined(MTOOLS_ENABLE_FLOPPYD) && !empty(MTOOLS_ENABLE_FLOPPYD:M[Yy][Ee][Ss]) -BUILDLINK_DEPMETHOD.libXt?= build -.include "../../x11/libX11/buildlink3.mk" -.include "../../x11/libXt/buildlink3.mk" -CPPFLAGS+= -I${X11BASE}/include -CONFIGURE_ARGS+= --enable-floppyd -PLIST_SUBST+= NOFLOPPYD= -.else -CONFIGURE_ARGS+= --disable-floppyd -PLIST_SUBST+= NOFLOPPYD="@comment " -.endif +.include "options.mk" .include "../../mk/bsd.pkg.mk" diff --git a/sysutils/mtools/PLIST b/sysutils/mtools/PLIST index b6f56d4e025..4d831cc3d63 100644 --- a/sysutils/mtools/PLIST +++ b/sysutils/mtools/PLIST @@ -1,7 +1,7 @@ -@comment $NetBSD: PLIST,v 1.8 2006/04/07 19:54:17 jlam Exp $ +@comment $NetBSD: PLIST,v 1.9 2008/04/10 21:19:19 jlam Exp $ bin/amuFormat.sh -${NOFLOPPYD}bin/floppyd -${NOFLOPPYD}bin/floppyd_installtest +${PLIST.floppyd}bin/floppyd +${PLIST.floppyd}bin/floppyd_installtest bin/lz bin/mattrib bin/mbadblocks @@ -34,8 +34,8 @@ bin/mzip bin/tgz bin/uz info/mtools.info -${NOFLOPPYD}man/man1/floppyd.1 -${NOFLOPPYD}man/man1/floppyd_installtest.1 +${PLIST.floppyd}man/man1/floppyd.1 +${PLIST.floppyd}man/man1/floppyd_installtest.1 man/man1/mattrib.1 man/man1/mbadblocks.1 man/man1/mcat.1 diff --git a/sysutils/mtools/options.mk b/sysutils/mtools/options.mk new file mode 100644 index 00000000000..b54e1a3536c --- /dev/null +++ b/sysutils/mtools/options.mk @@ -0,0 +1,19 @@ +# $NetBSD: options.mk,v 1.1 2008/04/10 21:19:19 jlam Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.mtools +PKG_SUPPORTED_OPTIONS= floppyd +PKG_OPTIONS_LEGACY_VARS= MTOOLS_ENABLE_FLOPPYD:floppyd + +.include "../../mk/bsd.options.mk" + +PLIST_VARS+= floppyd +.if !empty(PKG_OPTIONS:Mfloppyd) +BUILDLINK_DEPMETHOD.libXt?= build +. include "../../x11/libX11/buildlink3.mk" +. include "../../x11/libXt/buildlink3.mk" +CPPFLAGS+= -I${X11BASE}/include +CONFIGURE_ARGS+= --enable-floppyd +PLIST.floppyd= yes +.else +CONFIGURE_ARGS+= --disable-floppyd +.endif |