pkgsrc-WIP-changes archive

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

canu: Add NetBSD support to build system



Module Name:	pkgsrc-wip
Committed By:	Jason Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Fri Jan 4 09:15:42 2019 -0600
Changeset:	72a42e61cb6f69bb22191a1bf0bc2c801700a723

Added Files:
	canu/patches/patch-Makefile

Log Message:
canu: Add NetBSD support to build system

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=72a42e61cb6f69bb22191a1bf0bc2c801700a723

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 canu/patches/patch-Makefile | 47 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diffs:
diff --git a/canu/patches/patch-Makefile b/canu/patches/patch-Makefile
new file mode 100644
index 0000000000..4bbabddab8
--- /dev/null
+++ b/canu/patches/patch-Makefile
@@ -0,0 +1,47 @@
+$NetBSD$
+
+# Requires platform-specific defaults
+
+--- Makefile.orig	2018-10-22 16:47:31.000000000 +0000
++++ Makefile
+@@ -545,6 +545,40 @@ endif
+ endif
+ 
+ 
++ifeq (${OSTYPE}, NetBSD)
++  CC       ?= gcc
++  CXX      ?= g++
++
++  #  GCC
++  CXXFLAGS  += -pthread -fopenmp -fPIC
++  LDFLAGS   += -pthread -fopenmp -lm -lexecinfo
++
++  #CXXFLAGS  += -Wall -Wextra -Wformat  -Wno-unused   -Wno-parentheses
++  CXXFLAGS  += -Wall -Wextra -Wformat -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -Wno-char-subscripts -Wno-write-strings -Wno-sign-compare -Wno-format-truncation
++
++  #  Google Performance Tools malloc and heapchecker (HEAPCHECK=normal)
++  #CXXFLAGS  +=
++  #LDFLAGS   += -ltcmalloc
++
++  #  Google Performance Tools cpu profiler (CPUPROFILE=/path)
++  #CXXFLAGS  +=
++  #LDFLAGS   += -lprofiler
++
++  #  callgrind
++  #CXXFLAGS  += -g3 -Wa,--gstabs -save-temps
++
++  ifeq ($(BUILDOPTIMIZED), 1)
++  else
++    CXXFLAGS += -g3
++  endif
++
++  ifeq ($(BUILDDEBUG), 1)
++  else
++    CXXFLAGS += -O3   -finline-functions -fomit-frame-pointer
++  endif
++endif
++
++
+ ifneq (,$(findstring CYGWIN, ${OSTYPE}))
+   CC        ?= gcc
+   CXX       ?= g++


Home | Main Index | Thread Index | Old Index