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

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Wed Oct 28 15:39:56 CET 2009


Revision: 6996
          http://gar.svn.sourceforge.net/gar/?rev=6996&view=rev
Author:   dmichelsen
Date:     2009-10-28 14:39:56 +0000 (Wed, 28 Oct 2009)

Log Message:
-----------
libmhash: Comment out clashing defines with including software

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

Modified: csw/mgar/pkg/libmhash/trunk/Makefile
===================================================================
--- csw/mgar/pkg/libmhash/trunk/Makefile	2009-10-28 12:40:19 UTC (rev 6995)
+++ csw/mgar/pkg/libmhash/trunk/Makefile	2009-10-28 14:39:56 UTC (rev 6996)
@@ -34,3 +34,12 @@
 PACKAGES = CSWlibmhash
 
 include gar/category.mk
+
+# Don't include the most common defines. In general it is a bad idea to include
+# the config file as it may collide with the config file from the main package
+# using libmhash.
+post-install-modulated:
+	perl -pi -e 's,^(#define (?:PACKAGE|PACKAGE_BUGREPORT|PACKAGE_NAME|PACKAGE_STRING|PACKAGE_TARNAME|PACKAGE_VERSION|VERSION) .*),/* \1 */,' \
+		$(DESTDIR)$(includedir)/mutils/mhash_config.h
+	@$(MAKECOOKIE)
+


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