OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
perl.port.mk SHARED_ONLY handling

From: Stuart Henderson (stuspacehopper.org)
Date: Fri Sep 24 2010 - 04:25:33 CDT


To handle the forthcoming perl update we will need to bump perl
SHARED_ONLY ports. Doing something like this at the same time will
reduce the chance of handling it again in future and I think has
no real down-side.

Any comments/ok's?

Index: perl.port.mk
===================================================================
RCS file: /cvs/ports/infrastructure/mk/perl.port.mk,v
retrieving revision 1.16
diff -u -p -r1.16 perl.port.mk
--- perl.port.mk 12 Aug 2009 22:36:48 -0000 1.16
+++ perl.port.mk 24 Sep 2010 09:22:23 -0000
-6,6 +6,7
 
 REGRESS_TARGET ?= test
 MODPERL_BUILD ?= Build
+SHARED_ONLY ?=
 
 .if ${CONFIGURE_STYLE:L:Mmodbuild}
 MODPERL_configure = \
-65,6 +66,10 do-install:
 pre-configure:
         rm -rf ${WRKSRC}/inc/Module/*Install*
 . endif
+.endif
+
+.if ${SHARED_ONLY:L:Myes}
+WANTLIB += perl
 .endif
 
 P5SITE=libdata/perl5/site_perl