summaryrefslogtreecommitdiff
path: root/lang/perl5/hacks.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-06-24 06:43:43 +0000
committerjlam <jlam@pkgsrc.org>2005-06-24 06:43:43 +0000
commitc2fb31ba79b4e2677da1e193c01a2acd5a84987c (patch)
tree666a7e5cc344f7ca6390ba1b81aaa8b1490d242a /lang/perl5/hacks.mk
parentda0eb1e229aed50d42e5ca1cc26107c9a3660e51 (diff)
downloadpkgsrc-c2fb31ba79b4e2677da1e193c01a2acd5a84987c.tar.gz
Drop the perl-5.6.x package from pkgsrc. Remove lang/perl58 and update
lang/perl5 to perl-5.8.6nb4. Modify packages that referred to lang/perl58 to point to lang/perl5 instead.
Diffstat (limited to 'lang/perl5/hacks.mk')
-rw-r--r--lang/perl5/hacks.mk72
1 files changed, 72 insertions, 0 deletions
diff --git a/lang/perl5/hacks.mk b/lang/perl5/hacks.mk
new file mode 100644
index 00000000000..c65ce0aee4b
--- /dev/null
+++ b/lang/perl5/hacks.mk
@@ -0,0 +1,72 @@
+# $NetBSD: hacks.mk,v 1.1 2005/06/24 06:43:45 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
+
+### [Sun Nov 14 02:35:50 EST 2004 : jlam]
+### On PowerPC, building with optimisation with GCC causes an "attempt
+### to free unreference scalar". Remove optimisation flags as a
+### workaround until GCC is fixed.
+###
+.if !empty(CC_VERSION:Mgcc*) && !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc)
+PKG_HACKS+= powerpc-codegen
+BUILDLINK_TRANSFORM+= rm:-O[0-9]*
+.endif
+
+### [Fri Dec 10 18:09:51 EST 2004 : jlam]
+### On VAX, feeding a base "NaN" to nawk causes nawk to core dump since
+### it tries to interpret it as a number, which causes an FP exception.
+### Modify files that pass through nawk to not have bare "NaN"s.
+###
+.if !empty(MACHINE_PLATFORM:M*-*-vax)
+PKG_HACKS+= NaN-vax-exception
+.PHONY: NaN-vax-exception
+pre-configure: NaN-vax-exception
+NaN-vax-exception:
+ cd ${WRKSRC}; for file in MANIFEST; do \
+ ${MV} $$file $$file.NaN; \
+ ${SED} -e "s,NaN,*NaN*,g" $$file.NaN > $$file; \
+ done
+.endif
+
+### [Fri Dec 10 18:46:19 EST 2004 : jlam]
+### On NetBSD/alpha, building perl with -mieee causes perl to not pass
+### the test for integer.pm (pkg/28498). Until this is fixed in either
+### NetBSD, GCC or perl, strip out -mieee from the compiler command
+### line.
+###
+.if !empty(CC_VERSION:Mgcc*) && !empty(MACHINE_PLATFORM:MNetBSD-*-alpha)
+PKG_HACKS+= alpha-mieee
+BUILDLINK_TRANSFORM+= rm:-mieee
+.endif
+
+### [Mon May 9 15:35:44 UTC 2005 : jlam]
+### On NetBSD/arm, skipping one part of the optimization pass empirically
+### "fixes" the build of perl using gcc-3.x.
+###
+.if !empty(CC_VERSION:Mgcc-3.*) && !empty(MACHINE_ARCH:Marm*)
+PKG_HACKS+= arm-codegen
+CFLAGS+= -fno-cse-skip-blocks
+.endif