diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2006-05-07 16:52:33 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2006-05-07 16:52:33 +0000 |
commit | edab74313c449f0cd86473a96695cf4ee180b285 (patch) | |
tree | c3bf51d41ecfd7565ffdd1d553b3c86a6d2f7a03 /biology/fasta3/files | |
parent | 55948d035556365cd80842ea55332a4b7491061b (diff) |
Notes
Diffstat (limited to 'biology/fasta3/files')
-rw-r--r-- | biology/fasta3/files/Makefile.freebsd | 67 | ||||
-rw-r--r-- | biology/fasta3/files/patch-Makefile | 33 |
2 files changed, 67 insertions, 33 deletions
diff --git a/biology/fasta3/files/Makefile.freebsd b/biology/fasta3/files/Makefile.freebsd new file mode 100644 index 000000000000..5bd489001187 --- /dev/null +++ b/biology/fasta3/files/Makefile.freebsd @@ -0,0 +1,67 @@ +# +# Makefile for building fasta3 on FreeBSD +# +# Fernan Aguero - <fernan@iib.unsam.edu.ar> + +# we take care of doing variable assignment using the '?=' and '+=' +# operators to preserve the value of variables if they are already +# defined. In FreeBSD this happens when fasta3 is build from the port or +# when the user has set these variables -- most notably CC and/or CFLAGS +# -- in /etc/make.conf + +# Compiler executable, and optional flags +CC?= gcc +CFLAGS?= -g -O2 + +# your FASTA host +FASTA_HOST?= "your_fasta_host" + +# common CFLAGS. These are the set of CFLAGS that are always used +COMMON_CFLAGS= -DSHOWSIM -DUNIX -DTIMES -DHZ=100 -c -DMAX_WORKERS=2 \ + -DTHR_EXIT=pthread_exit -DPROGRESS -DUSE_MMAP -D_REENTRANT \ + -D_LARGE_FILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_FSEEKO \ + -DHAS_INTTYPES -DSAMP_STATS + +# standard options, these will be added to the common CFLAGS if +# selected below +STANDARD_CFLAGS= -DSFCHAR="':'" -DFASTA_HOST='${FASTA_HOST}' \ + -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DPGM_DOC + +# options for superfamily validations, these will be added to the common +# CFLAGS if selected below +SUPERFAMILY_CFLAGS= -DSFCHAR="'|'" -DSUPERFAMNUM -DBIG_LIB64 + +# here we define CFLAGS to be the sum of common flags plus a subset of +# optional flags that define our intended use. +# The default standard flags are selected by default, although the user +# can override this if s/he wants +CFLAGS+= ${COMMON_CFLAGS} ${STANDARD_CFLAGS} + +XDIR?= /usr/local/bin + +LIB_M+= -lm + +HFLAGS+= -o +NFLAGS+= -o + + + +# FreeBSD users BEWARE! Different threading models ahead! + +# The threading model has changed along the way from FreeBSD-4 to +# FreeBSD-6. If you're building fasta3 on your own, you will need to +# adjust this accordingly. The default works in FreeBSD-6x (currently +# the recommended major version for use in production). Or better yet, +# use the biology/fasta3 port from the ports collection, which will use +# the correct threading library for your OSVERSION + +THR_SUBS?= pthr_subs2 +THR_LIBS?= -lpthread +THR_CC?= + +DROPNFA_O = drop_nfa.o +DROPGSW_O = dropgsw.o +DROPRSS_O = dropnsw.o +DROPTFA_O = drop_tfa.o + +include Makefile34m.common diff --git a/biology/fasta3/files/patch-Makefile b/biology/fasta3/files/patch-Makefile deleted file mode 100644 index 60b18c9b84a0..000000000000 --- a/biology/fasta3/files/patch-Makefile +++ /dev/null @@ -1,33 +0,0 @@ ---- Makefile.orig Thu Feb 9 12:03:37 2006 -+++ Makefile Thu Feb 9 12:07:21 2006 -@@ -7,7 +7,7 @@ - # in dropnfa.c (wrp 3/19/1998) - # - --CC= gcc -g -O3 -+#CC= gcc -g -O3 - #CC=gcc -Wall -pedantic -ansi -g -O - #CC = gcc -g -DDEBUG - #CC= /opt/parasoft/bin.linux2/insure -g -pg -DDEBUG -@@ -21,7 +21,7 @@ - #CFLAGS= -DSHOWSIM -DUNIX -DTIMES -DHZ=100 -DSFCHAR="'|'" -c -DMAX_WORKERS=2 -DTHR_EXIT=pthread_exit -DPROGRESS -DSUPERFAMNUM -DUSE_MMAP -D_REENTRANT -DBIG_LIB64 -D_LARGE_FILE_SOURCE -DUSE_FSEEKO -D_FILE_OFFSET_BITS=64 -DHAS_INTTYPES -DSAMP_STATS - - # standard options --CFLAGS= -DSHOWSIM -DUNIX -DTIMES -DHZ=100 -DSFCHAR="':'" -c -DMAX_WORKERS=2 -DTHR_EXIT=pthread_exit -DPROGRESS -DFASTA_HOST='"wrpx00.bioch.virginia.edu/fasta/cgi"' -DUSE_MMAP -D_REENTRANT -DHAS_INTTYPES -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_FSEEKO -DSAMP_STATS -DPGM_DOC -+CFLAGS+= -DSHOWSIM -DUNIX -DTIMES -DHZ=100 -DSFCHAR="':'" -c -DMAX_WORKERS=2 -DTHR_EXIT=pthread_exit -DPROGRESS -DFASTA_HOST='"wrpx00.bioch.virginia.edu/fasta/cgi"' -DUSE_MMAP -D_REENTRANT -DHAS_INTTYPES -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_FSEEKO -DSAMP_STATS -DPGM_DOC - # -I/usr/local/include/mysql -DMYSQL_DB - # - #(for mySQL databases) (also requires change to Makefile34.common) -@@ -35,10 +35,10 @@ - - # for Linux - THR_SUBS = pthr_subs2 --THR_LIBS = -lpthread -+#THR_LIBS = -lpthread - THR_CC = - --XDIR = /seqprg/bin -+XDIR = ${PREFIX}/bin - - DROPNFA_O = drop_nfa.o - DROPGSW_O = dropgsw.o |