Index: biology/Makefile =================================================================== --- biology/Makefile +++ biology/Makefile @@ -115,6 +115,7 @@ SUBDIR += t_coffee SUBDIR += tinker SUBDIR += treepuzzle + SUBDIR += trimadap SUBDIR += trimmomatic SUBDIR += ugene SUBDIR += vcftools Index: biology/trimadap/Makefile =================================================================== --- /dev/null +++ biology/trimadap/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= trimadap +PORTVERSION= 0.1p20170211 +CATEGORIES= biology + +MAINTAINER= jwb@FreeBSD.org +COMMENT= Trim adapter sequences from Illumina data using heuristic rules + +LICENSE= GPLv2 + +USE_GITHUB= yes +GH_ACCOUNT= lh3 +GH_TAGNAME= ddfef210563830d9193b40949da3523b6fb93003 + +PLIST_FILES= bin/trimadap-mt + +.include + +.if ${ARCH} == i386 +CFLAGS+= -msse2 +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/trimadap-mt ${STAGEDIR}${PREFIX}/bin + +.include Index: biology/trimadap/distinfo =================================================================== --- /dev/null +++ biology/trimadap/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1520607051 +SHA256 (lh3-trimadap-0.1p20170211-ddfef210563830d9193b40949da3523b6fb93003_GH0.tar.gz) = 0aad29cc8f2fb65b464785b5787a29c0e0a6eab59f08eea82dffe15165151d4f +SIZE (lh3-trimadap-0.1p20170211-ddfef210563830d9193b40949da3523b6fb93003_GH0.tar.gz) = 13133 Index: biology/trimadap/files/patch-Makefile =================================================================== --- /dev/null +++ biology/trimadap/files/patch-Makefile @@ -0,0 +1,20 @@ +--- Makefile.orig 2017-02-11 22:31:35 UTC ++++ Makefile +@@ -1,10 +1,12 @@ +-CC=gcc +-CFLAGS=-g -Wall -O2 -Wno-unused-function ++CC ?= gcc ++CFLAGS ?= -g -Wall -O2 -Wno-unused-function ++LDFLAGS += -lz -lm + +-all:trimadap-mt ++all: trimadap-mt + + trimadap-mt:trimadap-mt.c ksw.c kthread.c kseq.h ksw.h +- $(CC) $(CFLAGS) -pthread ksw.c kthread.c trimadap-mt.c -o $@ -lz -lm ++ $(CC) $(CFLAGS) -pthread ksw.c kthread.c trimadap-mt.c -o $@ $(LDFLAGS) + + clean: +- rm -fr gmon.out *.o ext/*.o a.out seqtk trimadap *~ *.a *.dSYM session* trimadap-mt ++ rm -fr gmon.out *.o ext/*.o a.out seqtk trimadap *~ *.a \ ++ *.dSYM session* trimadap-mt Index: biology/trimadap/files/patch-kthread.c =================================================================== --- /dev/null +++ biology/trimadap/files/patch-kthread.c @@ -0,0 +1,10 @@ +--- kthread.c.orig 2017-02-11 22:31:35 UTC ++++ kthread.c +@@ -1,6 +1,7 @@ + #include + #include + #include ++#include + + /************ + * kt_for() * Index: biology/trimadap/pkg-descr =================================================================== --- /dev/null +++ biology/trimadap/pkg-descr @@ -0,0 +1,8 @@ +Trimadap is a small tool to trim adapter sequences from Illumina data. It +performs SSE2-SW between each read and each adapter sequence and identifies +adapter sequences with a few heuristic rules which can be found in the +ta_trim1() function in trimadap-mt.c. The default adapters it uses are included +in illumina.txt. These are typical Illumina adapters from paired-end +sequencing. + +WWW: https://github.com/lh3/trimadap