[csw-devel] SF.net SVN: gar:[14208] csw/mgar/gar/v2/categories/cpan/category.mk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Fri Apr 15 16:14:52 CEST 2011


Revision: 14208
          http://gar.svn.sourceforge.net/gar/?rev=14208&view=rev
Author:   dmichelsen
Date:     2011-04-15 14:14:52 +0000 (Fri, 15 Apr 2011)

Log Message:
-----------
mGAR v2: cpan category fixup for 64 bit

Modified Paths:
--------------
    csw/mgar/gar/v2/categories/cpan/category.mk

Modified: csw/mgar/gar/v2/categories/cpan/category.mk
===================================================================
--- csw/mgar/gar/v2/categories/cpan/category.mk	2011-04-15 13:42:52 UTC (rev 14207)
+++ csw/mgar/gar/v2/categories/cpan/category.mk	2011-04-15 14:14:52 UTC (rev 14208)
@@ -9,6 +9,7 @@
 
 # Tests are enabled by default, unless overridden at the test level
 ENABLE_TEST ?= 1
+TEST_TARGET ?= test
 
 # Test target is test by default (in CPAN category)
 TEST_TARGET ?= test
@@ -16,6 +17,9 @@
 # Every CPAN module depends on Perl
 #DEPENDS += lang/perl
 
+# Build also for 64 bit Perl by default
+BUILD64 ?= $(if $(shell if test -f $(bindir_install)/$(ISA_DEFAULT64)/perl; then echo perl64; fi),1)
+
 # Standard Perl module configuration script
 CONFIGURE_SCRIPTS ?= $(WORKSRC)/Makefile.PL
 
@@ -66,7 +70,7 @@
 configure-%/Makefile.PL:
 	@echo " ==> Running Makefile.PL in $*"
 	( cd $* ; \
-	    $(CONFIGURE_ENV) perl Makefile.PL \
+	    $(CONFIGURE_ENV) $(bindir)/perl Makefile.PL \
 	        $(CONFIGURE_ARGS) $(PERL_CONFIGURE_ARGS) )
 	@$(MAKECOOKIE)
 
@@ -74,7 +78,7 @@
 configure-%/Build.PL:
 	@echo " ==> Running Build.PL in $*"
 	( cd $* ; \
-	    $(CONFIGURE_ENV) perl Build.PL \
+	    $(CONFIGURE_ENV) $(bindir)/perl Build.PL \
 	        $(PERLBUILD_CONFIGURE_ARGS) $(CONFIGURE_ARGS) )
 	@$(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