[csw-devel] SF.net SVN: gar:[4328] csw/mgar/pkg/wget/trunk/Makefile
idogan23 at users.sourceforge.net
idogan23 at users.sourceforge.net
Wed Apr 15 18:15:27 CEST 2009
Revision: 4328
http://gar.svn.sourceforge.net/gar/?rev=4328&view=rev
Author: idogan23
Date: 2009-04-15 16:15:27 +0000 (Wed, 15 Apr 2009)
Log Message:
-----------
wget: added modulation for static binary, config file handled by cswpreserveconf
Modified Paths:
--------------
csw/mgar/pkg/wget/trunk/Makefile
Modified: csw/mgar/pkg/wget/trunk/Makefile
===================================================================
--- csw/mgar/pkg/wget/trunk/Makefile 2009-04-15 15:37:58 UTC (rev 4327)
+++ csw/mgar/pkg/wget/trunk/Makefile 2009-04-15 16:15:27 UTC (rev 4328)
@@ -20,12 +20,40 @@
# We define upstream file regex so we can be notifed of new upstream software release
UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+EXTRA_MODULATORS = STATIC
+MODULATIONS_STATIC = disable enable
+
+EXTRA_CONFIGURE_STATIC-disable = --with-ssl
+EXTRA_CONFIGURE_STATIC-enable = --disable-shared
+EXTRA_CONFIGURE_STATIC-enable += --enable-static
+EXTRA_CONFIGURE_STATIC-enable += --without-ssl
+
CONFIGURE_ARGS = $(DIRPATHS)
CONFIGURE_ARGS += --with-ssl
CONFIGURE_ARGS += --disable-nls
+CONFIGURE_ARGS += $(EXTRA_CONFIGURE_STATIC-$(STATIC))
-REQUIRED_PKGS = CSWosslrt
-
TEST_TARGET = check
+REQUIRED_PKGS = CSWosslrt CSWcswclassutils
+SPKG_CLASSES = none cswcpsampleconf
+PROTOTYPE_FILTER = awk '$$$$3 ~ /\/wgetrc.CSW$$$$/ { $$$$2 = "cswcpsampleconf" } { print }'
+
+MERGE_SCRIPTS_isa-sparcv8-static-disable = copy-all
+
+MERGE_SCRIPTS_isa-sparcv8-static-enable = rename-wget copy-only
+MERGE_DIRS_isa-sparcv8-static-enable = $(bindir)
+
+merge-rename-wget:
+ @mv $(DESTDIR)$(bindir)/wget $(DESTDIR)$(bindir)/wget.static
+
+post-install-modulated:
+ (cd $(DESTDIR)$(prefix)/etc; \
+ for i in wgetrc; do \
+ if [ -r "$$i" ]; then \
+ echo "$$i -> $$i.CSW"; \
+ mv "$$i" "$$i.CSW"; \
+ fi \
+ done)
+
include gar/category.mk
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