Skip to content

Commit

Permalink
biology/seqtk: Update to 1.3
Browse files Browse the repository at this point in the history
A few minor fixes and enhancements

Changes: https://github.com/lh3/seqtk/tags
  • Loading branch information
Jason W. Bacon authored and Jason W. Bacon committed Dec 18, 2021
1 parent ddc9eb4 commit 02105a9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 17 deletions.
11 changes: 4 additions & 7 deletions biology/seqtk/Makefile
@@ -1,7 +1,7 @@
PORTNAME= seqtk
DISTVERSION= 1.2-8
DISTVERSIONSUFFIX= -gd210c57
CATEGORIES= biology
PORTNAME= seqtk
DISTVERSIONPREFIX= v
DISTVERSION= 1.3
CATEGORIES= biology

MAINTAINER= jwb@FreeBSD.org
COMMENT= Tool for processing sequences in FASTA/FASTQ format
Expand All @@ -13,7 +13,4 @@ GH_ACCOUNT= lh3

PLIST_FILES= bin/seqtk

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/seqtk ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions biology/seqtk/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1522780777
SHA256 (lh3-seqtk-1.2-8-gd210c57_GH0.tar.gz) = 557317aab7f8cc306a98cd1148449f1e2edd7cd7c78ad5254ba955dfee518fa0
SIZE (lh3-seqtk-1.2-8-gd210c57_GH0.tar.gz) = 21166
TIMESTAMP = 1639855187
SHA256 (lh3-seqtk-v1.3_GH0.tar.gz) = 5a1687d65690f2f7fa3f998d47c3c5037e792f17ce119dab52fff3cfdca1e563
SIZE (lh3-seqtk-v1.3_GH0.tar.gz) = 21196
29 changes: 22 additions & 7 deletions biology/seqtk/files/patch-Makefile
@@ -1,20 +1,35 @@
--- Makefile.orig 2017-11-07 19:42:14 UTC
--- Makefile.orig 2018-06-18 00:15:09 UTC
+++ Makefile
@@ -1,10 +1,11 @@
@@ -1,14 +1,23 @@
-CC=gcc
-CFLAGS=-g -Wall -O2 -Wno-unused-function
+CC ?= gcc
+CFLAGS ?= -g -Wall -O2 -Wno-unused-function
+LDFLAGS += -lz -lm
-BINDIR=/usr/local/bin

-all:seqtk
+all: seqtk
+# Respect user's build environment by using ?= to set defaults for variables
+# not set in the env or make arguments. Use += to add essential args.

-seqtk:seqtk.c khash.h kseq.h
- $(CC) $(CFLAGS) seqtk.c -o $@ -lz -lm
+CC ?= gcc
+CFLAGS ?= -g -Wall -O2 -Wno-unused-function
+LDFLAGS += -lz -lm
+PREFIX ?= /usr/local
+MKDIR ?= mkdir
+INSTALL ?= install
+# DESTDIR is empty by default to install straight to PREFIX

-install:all
- install seqtk $(BINDIR)
+all: seqtk

+seqtk: seqtk.c khash.h kseq.h
+ $(CC) $(CFLAGS) seqtk.c -o $@ $(LDFLAGS)

+
+install: all
+ $(MKDIR) -p $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL) -c -m 0755 seqtk $(DESTDIR)$(PREFIX)/bin
+
clean:
- rm -fr gmon.out *.o ext/*.o a.out seqtk trimadap *~ *.a *.dSYM session*
+ rm -fr gmon.out *.o ext/*.o a.out seqtk trimadap *~ *.a *.dSYM session*

0 comments on commit 02105a9

Please sign in to comment.