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

skayser at users.sourceforge.net skayser at users.sourceforge.net
Fri Jun 19 00:25:08 CEST 2009


Revision: 5319
          http://gar.svn.sourceforge.net/gar/?rev=5319&view=rev
Author:   skayser
Date:     2009-06-18 22:25:08 +0000 (Thu, 18 Jun 2009)

Log Message:
-----------
mtr: pimped build -> set TINY=1 to build an alternative CSWmtrtiny package

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

Modified: csw/mgar/pkg/mtr/trunk/Makefile
===================================================================
--- csw/mgar/pkg/mtr/trunk/Makefile	2009-06-18 21:49:02 UTC (rev 5318)
+++ csw/mgar/pkg/mtr/trunk/Makefile	2009-06-18 22:25:08 UTC (rev 5319)
@@ -25,8 +25,7 @@
 DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
 UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
 
-REQUIRED_PKGS  = CSWggettextrt CSWglib2 CSWgtk2 CSWlibatk CSWlibcairo
-REQUIRED_PKGS += CSWncurses CSWpango
+REQUIRED_PKGS  = CSWncurses
 
 # 1) Check for socklen_t via sys/socket.h (not netinet/in.h)
 # 2) Don't cast sin_addr to (struct in_addr), cc bails out with invalid cast
@@ -41,6 +40,21 @@
 	$$$$3 ~ /sbin\/mtr$$$$/ { $$$$4 = "4755" } \
 	{ print }'
 
+# Call with gmake TINY=1 to build and packaage the non-X11 version ...
+ifeq ($(TINY), 1)
+CONFIGURE_ARGS += --without-gtk
+PACKAGES = CSWmtrtiny
+CATALOGNAME = mtr_tiny
+INCOMPATIBLE_PKGS = CSWmtr
+endif
+
+# ... default is with X11
+ifneq ($(TINY), 1)
+REQUIRED_PKGS += CSWgtk2 CSWlibatk CSWpango CSWlibcairo
+REQUIRED_PKGS += CSWggettextrt CSWglib2
+INCOMPATIBLE_PKGS = CSWmtrtiny
+endif
+
 include gar/category.mk
 
 # curses detection is somehow broken, ncurses.h is included but no curses


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