-
Notifications
You must be signed in to change notification settings - Fork 13
/
cndsrc.rb
52 lines (46 loc) · 1.68 KB
/
cndsrc.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
class Cndsrc < Formula
desc 'Collection of utils including mercator'
homepage 'https://www.biostat.wisc.edu/~cdewey/software.html'
url 'https://www.biostat.wisc.edu/~cdewey/software/cndsrc-2013.01.11.tar.gz'
sha256 'c75a0e337a67937130ae1d4d2c703ec19fefa6e870cc89a89e272f0e2fcf6de8'
version '2013.01.11'
patch :DATA
def install
system 'make', 'install', "prefix=#{prefix}"
cd "#{prefix}/bin" do
%w(faFilter faFrag faCount faAlign).each { |f| mv f, f+'Cndsrc' }
end
end
end
__END__
diff --git a/apps/mercator/util/maskRepetitive.cc b/apps/mercator/util/maskRepetitive.cc
index bdd7239..1733fd8 100644
--- a/apps/mercator/util/maskRepetitive.cc
+++ b/apps/mercator/util/maskRepetitive.cc
@@ -20,6 +20,7 @@
#include <iostream>
#include <vector>
#include <ctime>
+#include <stdint.h>
#include "bio/formats/fasta.hh"
#include "util/string.hh"
diff --git a/makefile b/makefile
index c3df2dd..2d1f76b 100644
--- a/makefile
+++ b/makefile
@@ -27,6 +27,7 @@ CC = $(CXX)
CXXFLAGS += -Wall
CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
CPPFLAGS += -Iinclude
+CPPFLAGS += -D_GLIBCXX_USE_CXX11_ABI=0
LDFLAGS += #-ggdb
ifeq ($(OS),MACOSX)