diff options
author | rillig <rillig> | 2005-02-12 22:59:28 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-02-12 22:59:28 +0000 |
commit | 198d2b90bfdca292b8cd901e1bf858edeafd4965 (patch) | |
tree | de12b941e0be6c1c590197a28bca825bf35a7a2d /sysutils/mc/Makefile | |
parent | cccd070a6d28c5685193ec9309f8fe37645d8152 (diff) | |
download | pkgsrc-198d2b90bfdca292b8cd901e1bf858edeafd4965.tar.gz |
Converted the package to the pkg.options.mk framework. Bumped PKGREVISION,
because the +BUILD_INFO file changed.
Diffstat (limited to 'sysutils/mc/Makefile')
-rw-r--r-- | sysutils/mc/Makefile | 80 |
1 files changed, 13 insertions, 67 deletions
diff --git a/sysutils/mc/Makefile b/sysutils/mc/Makefile index 7b294148331..365f4e17c7d 100644 --- a/sysutils/mc/Makefile +++ b/sysutils/mc/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.48 2005/02/12 01:02:50 rillig Exp $ +# $NetBSD: Makefile,v 1.49 2005/02/12 22:59:28 rillig Exp $ DISTNAME= mc-4.6.1-pre2b PKGNAME= mc-4.6.1rc2 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= sysutils MASTER_SITES= http://pavelsh.pp.ru/mc/ #MASTER_SITES= http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/ \ @@ -12,12 +12,20 @@ MAINTAINER= pavel.arnost@clnet.cz HOMEPAGE= http://www.ibiblio.org/mc/ COMMENT= User-friendly file manager and visual shell -.include "../../mk/bsd.prefs.mk" - USE_BUILDLINK3= YES GNU_CONFIGURE= YES USE_GNU_TOOLS+= make USE_PKGLOCALEDIR= YES +CPPFLAGS.NetBSD+= -D__unix__ + +# see options.mk for an explanation of these options +PKG_OPTIONS_VAR= PKG_OPTIONS.mc +PKG_SUPPORTED_OPTIONS= charset edit largefile ncurses samba slang \ + subshell vfs x11 +PKG_DEFAULT_OPTIONS= charset edit largefile slang subshell vfs + +.include "../../mk/bsd.prefs.mk" +.include "../../mk/bsd.options.mk" .if ${OPSYS} == "Linux" PLIST_SRC+= ${PKGDIR}/PLIST.cons.saver @@ -31,71 +39,9 @@ post-install: CONFIGURE_ARGS+= --without-ext2undel CONFIGURE_ARGS+= --without-gpm-mouse -MC_FEATURES= edit charset largefile samba subshell vfs x11 -MC_DISABLE_FEATURES= x11 samba - -MC_SCREEN_LIBRARY= slang - -.for feature in ${MC_FEATURES} - -__feature:=${feature} - -. if empty(MC_DISABLE_FEATURES:M${feature}) - -. if ${__feature} == edit -CONFIGURE_ARGS+= --with-edit -PLIST_SRC+= ${PKGDIR}/PLIST.mcedit -. elif ${__feature} == charset -CONFIGURE_ARGS+= --enable-charset -.include "../../converters/libiconv/buildlink3.mk" -PLIST_SRC+= ${PKGDIR}/PLIST.charset -. elif ${__feature} == largefile -CONFIGURE_ARGS+= --enable-largefile -. elif ${__feature} == samba -CONFIGURE_ARGS+= --with-samba -. elif ${__feature} == subshell -CONFIGURE_ARGS+= --with-subshell -. elif ${__feature} == vfs -CONFIGURE_ARGS+= --with-vfs -PLIST_SRC+= ${PKGDIR}/PLIST.vfs -. elif ${__feature} == x11 -USE_X11= YES -CONFIGURE_ARGS+= --with-x -. endif - -. else - -. if ${__feature} == edit -CONFIGURE_ARGS+= --without-edit -. elif ${__feature} == charset -CONFIGURE_ARGS+= --disable-charset -. elif ${__feature} == largefile -CONFIGURE_ARGS+= --disable-largefile -. elif ${__feature} == samba -CONFIGURE_ARGS+= --without-samba -. elif ${__feature} == subshell -CONFIGURE_ARGS+= --without-subshell -. elif ${__feature} == vfs -CONFIGURE_ARGS+= --without-vfs -. elif ${__feature} == x11 -CONFIGURE_ARGS+= --without-x -. endif - -. endif - -.endfor - PLIST_SRC+= ${PKGDIR}/PLIST -.if ${MC_SCREEN_LIBRARY} == "slang" -CONFIGURE_ARGS+= --with-screen=slang -.include "../../devel/libslang/buildlink3.mk" -.elif ${MC_SCREEN_LIBRARY} == "ncurses" -CONFIGURE_ARGS+= --with-screen=ncurses -.include "../../devel/ncurses/buildlink3.mk" -.else -CONFIGURE_ARGS+= --with-screen=mcslang -.endif +.include "options.mk" .include "../../devel/glib2/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk" |