pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/perl5 Further refine AIX support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7aa73004d85f
branches:  trunk
changeset: 551954:7aa73004d85f
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Dec 21 14:02:59 2008 +0000

description:
Further refine AIX support.

diffstat:

 lang/perl5/Makefile |  26 ++++++++++++++++++++++----
 1 files changed, 22 insertions(+), 4 deletions(-)

diffs (47 lines):

diff -r ed83343b89ed -r 7aa73004d85f lang/perl5/Makefile
--- a/lang/perl5/Makefile       Sun Dec 21 13:58:28 2008 +0000
+++ b/lang/perl5/Makefile       Sun Dec 21 14:02:59 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.145 2008/12/20 13:08:00 joerg Exp $
+# $NetBSD: Makefile,v 1.146 2008/12/21 14:02:59 joerg Exp $
 
 DISTNAME=      perl-5.10.0
 CATEGORIES=    lang devel perl5
@@ -202,9 +202,16 @@
 .elif ${OBJECT_FMT} == "ELF"
 LOCLIBRPATHFLAGS=      ${LOCLIBPATH:S/^/${COMPILER_RPATH_FLAG}/g}
 .elif ${OBJECT_FMT} == "XCOFF"
-LOCLIBRPATHFLAGS=      ${LOCLIBPATH:S/^/${COMPILER_RPATH_FLAG}/g} \
-       ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib/perl5/${PKGVERSION_NOREV}/${MACHINE_ARCH}-${LOWER_OPSYS}${MACHINE_ARCH}-${LOWER_OPSYS}-thread-multi-64all/CORE \
-       ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib/perl5/${PKGVERSION_NOREV}/${MACHINE_ARCH}-${LOWER_OPSYS}${MACHINE_ARCH}-${LOWER_OPSYS}-thread-multi-all/CORE
+LOCLIBRPATHFLAGS=      ${LOCLIBPATH:S/^/${COMPILER_RPATH_FLAG}/g}
+.  if !empty(PKG_OPTIONS:Mthreads)
+LOCLIBRPATHFLAGS+=
+       ${COMPILER_RPATH_FLAG}${PERL5_PRIVLIB}/${MACHINE_ARCH}-${LOWER_OPSYS}-thread-multi-64all/CORE \
+       ${COMPILER_RPATH_FLAG}${PERL5_PRIVLIB}/${MACHINE_ARCH}-${LOWER_OPSYS}-thread-multi/CORE
+.  else
+LOCLIBRPATHFLAGS+=
+       ${COMPILER_RPATH_FLAG}${PERL5_PRIVLIB}/${MACHINE_ARCH}-${LOWER_OPSYS}-multi-64all/CORE \
+       ${COMPILER_RPATH_FLAG}${PERL5_PRIVLIB}/${MACHINE_ARCH}-${LOWER_OPSYS}-multi/CORE
+.  endif
 .else
 LOCLIBRPATHFLAGS=      # empty
 .endif
@@ -287,6 +294,17 @@
 SUBST_FILES.miniperl=  lib/ExtUtils/xsubpp
 SUBST_SED.miniperl=    -e "1s:\#!./miniperl:\#!${PERL5}:"
 
+.if ${PKGSRC_COMPILER} == "xlc"
+SUBST_CLASSES+=                cpprun
+SUBST_STAGE.cpprun=    pre-install
+SUBST_FILES.cpprun=    lib/Config_heavy.pl
+.if !empty(PKG_OPTIONS:Mthreads)
+SUBST_SED.cpprun=      -e "s/cpprun=''/cpprun-'cc_r -E'/"
+.else
+SUBST_SED.cpprun=      -e "s/cpprun=''/cpprun-'cc -E'/"
+.endif
+.endif
+
 # Some platforms may want the directory mode not to be 0755.  This
 # is, unfortunately, hardcoded in quite a few places in Perl, so
 # let's substitute what pkgsrc says instead.



Home | Main Index | Thread Index | Old Index