[csw-devel] SF.net SVN: gar:[13215] csw/mgar/pkg/dialog/trunk/Makefile

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Sun Feb 6 22:55:41 CET 2011


Revision: 13215
          http://gar.svn.sourceforge.net/gar/?rev=13215&view=rev
Author:   bdwalton
Date:     2011-02-06 21:55:40 +0000 (Sun, 06 Feb 2011)

Log Message:
-----------
dialog/trunk: modulate the build for ncurses and legacy curses

Modified Paths:
--------------
    csw/mgar/pkg/dialog/trunk/Makefile

Modified: csw/mgar/pkg/dialog/trunk/Makefile
===================================================================
--- csw/mgar/pkg/dialog/trunk/Makefile	2011-02-06 17:45:20 UTC (rev 13214)
+++ csw/mgar/pkg/dialog/trunk/Makefile	2011-02-06 21:55:40 UTC (rev 13215)
@@ -14,20 +14,36 @@
 MASTER_SITES = http://invisible-island.net/datafiles/release/
 DISTFILES = $(NAME).tar.gz
 
-RUNTIME_DEP_PKGS += CSWncurses
+EXTRA_MODULATORS = CURSES
+MODULATIONS_CURSES = ncurses minimal
+MERGE_SCRIPTS_isa-default-curses-ncurses = copy-all
+MERGE_SCRIPTS_isa-default-curses-minimal = copy-all
 
+PACKAGES = CSWdialog CSWdialog-minimal
+SPKG_DESC_CSWdialog = A script-interpreter which provides a set of curses widgets
+SPKG_DESC_CSWdialog-minimal = A script-interpreter which provides a set of curses widgets (traditional curses version)
+
+RUNTIME_DEP_PKGS_CSWdialog += CSWncurses
+
 CHECKPKG_OVERRIDES_CSWdialog += file-with-bad-content
 CHECKPKG_OVERRIDES_CSWdialog += missing-dependency|CSWpython
 
 SKIPTEST = 1
 
 CONFIGURE_ARGS = $(DIRPATHS)
+ifeq ($(CURSES),ncurses)
 CONFIGURE_ARGS += --with-ncurses
+endif
 
 include gar/category.mk
 
 post-install-modulated:
 	@echo " ==> Post-install for $(NAME) (custom)"
-	@ginstall -d $(DESTDIR)$(docdir)/$(NAME)/samples
-	@cp -r $(WORKSRC)/samples $(DESTDIR)$(docdir)/$(NAME)/
+
+	@mv $(DESTDIR)$(bindir)/dialog $(DESTDIR)$(bindir)/dialog.$(CURSES)
 	@$(MAKECOOKIE)
+
+post-merge:
+	@echo " ==> Post-merge for $(NAME) (custom)"
+	@ginstall -d $(PKGROOT)$(docdir)/$(NAME)/samples
+	@cp -r $(WORKSRC_FIRSTMOD)/samples $(PKGROOT)$(docdir)/$(NAME)/


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list