pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/perl58 Separate out hacks from package Makefile i...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8949d7a371a8
branches: trunk
changeset: 483524:8949d7a371a8
user: jlam <jlam%pkgsrc.org@localhost>
date: Sun Nov 14 07:48:30 2004 +0000
description:
Separate out hacks from package Makefile into hacks.mk.
diffstat:
lang/perl58/Makefile | 25 +------------------------
lang/perl58/hacks.mk | 26 ++++++++++++++++++++++++++
2 files changed, 27 insertions(+), 24 deletions(-)
diffs (69 lines):
diff -r ae8f7b99c323 -r 8949d7a371a8 lang/perl58/Makefile
--- a/lang/perl58/Makefile Sun Nov 14 07:24:37 2004 +0000
+++ b/lang/perl58/Makefile Sun Nov 14 07:48:30 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.58 2004/11/12 23:30:07 jlam Exp $
+# $NetBSD: Makefile,v 1.59 2004/11/14 07:48:30 jlam Exp $
# The following two variables should have empty values unless we're
# building a perl snapshot or release candidate.
@@ -188,29 +188,6 @@
CONFIGURE_ARGS+= -Duse64bitint
.endif
-.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
-. if !empty(CC_VERSION:Mgcc*)
-. if !defined(_GCC_IS_TOO_OLD)
-_GCC_IS_TOO_OLD!= \
- if ${PKG_ADMIN} pmatch 'gcc<3.3' ${CC_VERSION}; then \
- ${ECHO} "YES"; \
- else \
- ${ECHO} "NO"; \
- fi
-MAKEFLAGS+= _GCC_IS_TOO_OLD=${_GCC_IS_TOO_OLD}
-. endif
-. if !empty(_GCC_IS_TOO_OLD:M[yY][eE][sS])
-#
-# Fix brokenness when using an older toolchain (gcc<3.3) on sparc64.
-# Passing -g to the configure process triggers -DDEBUGGING, which plays
-# the real trick and circumvents some code-generation bugs, so we add
-# -g to CFLAGS to at least have a really debuggable build.
-#
-CFLAGS+= -g -msoft-quad-float -O2
-. endif
-. endif
-.endif
-
PERL5= ${PREFIX}/bin/perl${PERL5_VERS}
PERL5_PRIVLIB?= ${PREFIX}/lib/perl5/${PERL5_VERS}
PERL5_ARCHLIB?= ${PREFIX}/lib/perl5/${PERL5_VERS}/${MACHINE_ARCH}-${LOWER_OPSYS}
diff -r ae8f7b99c323 -r 8949d7a371a8 lang/perl58/hacks.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/perl58/hacks.mk Sun Nov 14 07:48:30 2004 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: hacks.mk,v 1.1 2004/11/14 07:48:30 jlam Exp $
+
+.include "../../mk/compiler.mk"
+
+### [Thu Jun 7 04:25:34 UTC 2001 : jlam]
+### Fix brokenness when using an older toolchain (gcc<3.3) on
+### NetBSD/sparc64. Pass -g and -DDEBUGGING to the compiler to
+### circumvent some code-generation bugs.
+###
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
+. if !empty(CC_VERSION:Mgcc*)
+. if !defined(_GCC_IS_TOO_OLD)
+_GCC_IS_TOO_OLD!= \
+ if ${PKG_ADMIN} pmatch 'gcc<3.3' ${CC_VERSION}; then \
+ ${ECHO} "yes"; \
+ else \
+ ${ECHO} "no"; \
+ fi
+MAKEFLAGS+= _GCC_IS_TOO_OLD=${_GCC_IS_TOO_OLD}
+. endif
+. if !empty(_GCC_IS_TOO_OLD:M[yY][eE][sS])
+PKG_HACKS+= sparc64-codegen
+CFLAGS+= -DDEBUGGING -g -msoft-quad-float -O2
+. endif
+. endif
+.endif
Home |
Main Index |
Thread Index |
Old Index