From 86196f7dc46fa57723de326fe4e60f71cd39ce4a Mon Sep 17 00:00:00 2001 From: asau Date: Mon, 23 Sep 2013 17:56:32 +0000 Subject: [PATCH] Do not create duplicate definitions. From FreeBSD ports. This fixes package on FreeBSD. --- lang/g95/PLIST.FreeBSD | 5 ++++ lang/g95/distinfo | 3 ++- .../patches/patch-gcc_config_freebsd-spec.h | 23 +++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 lang/g95/PLIST.FreeBSD create mode 100644 lang/g95/patches/patch-gcc_config_freebsd-spec.h diff --git a/lang/g95/PLIST.FreeBSD b/lang/g95/PLIST.FreeBSD new file mode 100644 index 0000000000000..b1a0b78be81f2 --- /dev/null +++ b/lang/g95/PLIST.FreeBSD @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST.FreeBSD,v 1.1 2013/09/23 17:56:32 asau Exp $ +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtbegin.o +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtbeginS.o +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtend.o +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.1.2/crtendS.o diff --git a/lang/g95/distinfo b/lang/g95/distinfo index 25e538ec42b66..7b8b1e404198e 100644 --- a/lang/g95/distinfo +++ b/lang/g95/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.17 2013/09/20 23:06:07 joerg Exp $ +$NetBSD: distinfo,v 1.18 2013/09/23 17:56:32 asau Exp $ SHA1 (g95_source.tgz) = b5e503fd6459b65cbda73190685f9490230d9cff RMD160 (g95_source.tgz) = 98d03e9a1835f4b3553a72a798bdf1d90a757176 @@ -13,6 +13,7 @@ SHA1 (patch-gcc_Makefile.in) = cc5cc142a85612ebf2d38513e4b05db0ae795268 SHA1 (patch-gcc_config.gcc) = 9da8f32372c64b1590d97e3f26aec0d5652cc959 SHA1 (patch-gcc_config_dragonfly-spec.h) = bf0c97caa314714542cf8cc63fdf0c73bda80511 SHA1 (patch-gcc_config_dragonfly.h) = 6d46b7b4637a20b36e19a15e1eaffdfff6638de9 +SHA1 (patch-gcc_config_freebsd-spec.h) = 8a1b78b479a386caec14e6a6333fde4a8af6de2c SHA1 (patch-gcc_config_i386_dragonfly.h) = 7d60d29b5ae636d69650e8c412a94f7a6045f6d9 SHA1 (patch-gcc_config_i386_dragonfly64.h) = 9d2d8512a913e58055fa5c1b7d85a109117dcfba SHA1 (patch-gcc_config_t-dragonfly) = dd8d5919af737dfb9e3c18be9a41b4e2c6f31155 diff --git a/lang/g95/patches/patch-gcc_config_freebsd-spec.h b/lang/g95/patches/patch-gcc_config_freebsd-spec.h new file mode 100644 index 0000000000000..675efa8b81ff9 --- /dev/null +++ b/lang/g95/patches/patch-gcc_config_freebsd-spec.h @@ -0,0 +1,23 @@ +$NetBSD: patch-gcc_config_freebsd-spec.h,v 1.1 2013/09/23 17:56:32 asau Exp $ + +Do not create duplicate definitions. +From FreeBSD ports. + +--- ../gcc-4.1.2/gcc/config/freebsd-spec.h.orig 2005-07-20 13:12:58.000000000 +0200 ++++ ../gcc-4.1.2/gcc/config/freebsd-spec.h 2012-06-20 15:57:35.000000000 +0200 +@@ -51,11 +51,13 @@ + #define FBSD_TARGET_OS_CPP_BUILTINS() \ + do \ + { \ +- if (FBSD_MAJOR == 9) \ ++ if (FBSD_MAJOR == 10) \ ++ builtin_define ("__FreeBSD__=10"); \ ++ else if (FBSD_MAJOR == 9) \ + builtin_define ("__FreeBSD__=9"); \ + else if (FBSD_MAJOR == 8) \ + builtin_define ("__FreeBSD__=8"); \ +- if (FBSD_MAJOR == 7) \ ++ else if (FBSD_MAJOR == 7) \ + builtin_define ("__FreeBSD__=7"); \ + else if (FBSD_MAJOR == 6) \ + builtin_define ("__FreeBSD__=6"); \