pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
fastahack: use upstream & our Makefile
Module Name: pkgsrc-wip
Committed By: Winston Weinert <winston%ml1.net@localhost>
Pushed By: winston
Date: Thu Mar 29 20:47:34 2018 -0500
Changeset: 9936d99fb63d45007628e1dcb74ce09e21cb4d70
Modified Files:
fastahack/Makefile
fastahack/distinfo
Added Files:
fastahack/files/Makefile
Log Message:
fastahack: use upstream & our Makefile
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9936d99fb63d45007628e1dcb74ce09e21cb4d70
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
fastahack/Makefile | 9 +++----
fastahack/distinfo | 8 +++----
fastahack/files/Makefile | 62 ++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 71 insertions(+), 8 deletions(-)
diffs:
diff --git a/fastahack/Makefile b/fastahack/Makefile
index 9999071512..553f260004 100644
--- a/fastahack/Makefile
+++ b/fastahack/Makefile
@@ -4,10 +4,10 @@
# Generated by fbsd2pkg #
###########################################################
-DISTNAME= fastahack-${PORTVERSION}
+DISTNAME= fastahack-0.0.0.20160702
CATEGORIES= biology
-MASTER_SITES= ${MASTER_SITE_GITHUB:=outpaddling/}
-GITHUB_TAG= ${PORTVERSION}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=ekg/}
+GITHUB_TAG= bbc645f2f7966cb7b44446200c02627c3168b399
MAINTAINER= bacon%NetBSD.org@localhost
HOMEPAGE= https://github.com/ekg/fastahack
@@ -21,6 +21,7 @@ LICENSE= gnu-gpl-v2
USE_LANGUAGES= c c++
INSTALL_TARGET= install-strip
-PORTVERSION= 18ed4b86ef962fa1b40f89b78625b2f271d9b155
+pre-configure:
+ ${CP} ${FILESDIR}/Makefile ${WRKSRC}
.include "../../mk/bsd.pkg.mk"
diff --git a/fastahack/distinfo b/fastahack/distinfo
index 5327545355..75942c1a78 100644
--- a/fastahack/distinfo
+++ b/fastahack/distinfo
@@ -1,6 +1,6 @@
$NetBSD$
-SHA1 (fastahack-18ed4b86ef962fa1b40f89b78625b2f271d9b155-18ed4b86ef962fa1b40f89b78625b2f271d9b155.tar.gz) = 62184e06d5d76e795987ca8910635bf9c44da2be
-RMD160 (fastahack-18ed4b86ef962fa1b40f89b78625b2f271d9b155-18ed4b86ef962fa1b40f89b78625b2f271d9b155.tar.gz) = 8705c9e1d359d872b4c1955ab454eaf107a2d408
-SHA512 (fastahack-18ed4b86ef962fa1b40f89b78625b2f271d9b155-18ed4b86ef962fa1b40f89b78625b2f271d9b155.tar.gz) = 28012a0c4acd406b3e982b61f9096fc1068f2e8a6b65a27dc4050b83251cdddddf3fe2e0ad7862b761aa78f81f850504347b5781fb567491388446646e8ba067
-Size (fastahack-18ed4b86ef962fa1b40f89b78625b2f271d9b155-18ed4b86ef962fa1b40f89b78625b2f271d9b155.tar.gz) = 17724 bytes
+SHA1 (fastahack-0.0.0.20160702-bbc645f2f7966cb7b44446200c02627c3168b399.tar.gz) = 540817aa0386a0e96fecc07de6d9eb9428305a0f
+RMD160 (fastahack-0.0.0.20160702-bbc645f2f7966cb7b44446200c02627c3168b399.tar.gz) = 8cec082f7d6507ce5000bc41cdbd4cd4c05d9250
+SHA512 (fastahack-0.0.0.20160702-bbc645f2f7966cb7b44446200c02627c3168b399.tar.gz) = b61ee3a5daec634cfb5f4881eedf0b5805ef20f1f833cd7aad9ecc1b1b527a81c92df30f06848857bf16b580d610fe51f7644ea4a94571cea7bc302561d3c60d
+Size (fastahack-0.0.0.20160702-bbc645f2f7966cb7b44446200c02627c3168b399.tar.gz) = 18200 bytes
diff --git a/fastahack/files/Makefile b/fastahack/files/Makefile
new file mode 100644
index 0000000000..1082c33f97
--- /dev/null
+++ b/fastahack/files/Makefile
@@ -0,0 +1,62 @@
+
+# Use ?= to allow overriding from the env or command-line, e.g.
+#
+# make CXXFLAGS="-O3 -fPIC" install
+#
+# Package managers will override many of these variables automatically, so
+# this is aimed at making it easy to create packages (Debian packages,
+# FreeBSD ports, MacPorts, pkgsrc, etc.)
+
+CXX ?= c++
+CXXFLAGS ?= -O3
+DESTDIR ?= stage
+PREFIX ?= /usr/local
+STRIP ?= strip
+INSTALL ?= install -c
+MKDIR ?= mkdir -p
+AR ?= ar
+
+# Required flags that we shouldn't override
+# Must be compiler-independent
+CXXFLAGS += -D_FILE_OFFSET_BITS=64
+
+BIN = fastahack
+LIB = libfastahack.a
+OBJS = Fasta.o split.o disorder.o
+MAIN = FastaHack.o
+
+all: $(BIN) $(LIB)
+
+$(BIN): $(OBJS) $(MAIN)
+ $(CXX) $(CXXFLAGS) $(OBJS) $(MAIN) -o $(BIN)
+
+$(LIB): $(OBJS)
+ $(AR) -rs $(LIB) $(OBJS)
+
+FastaHack.o: Fasta.h FastaHack.cpp
+ $(CXX) $(CXXFLAGS) -c FastaHack.cpp
+
+Fasta.o: Fasta.h Fasta.cpp
+ $(CXX) $(CXXFLAGS) -c Fasta.cpp
+
+split.o: split.h split.cpp
+ $(CXX) $(CXXFLAGS) -c split.cpp
+
+disorder.o: disorder.c disorder.h
+ $(CXX) $(CXXFLAGS) -c disorder.c
+
+install: all
+ $(MKDIR) $(DESTDIR)$(PREFIX)/bin
+ $(MKDIR) $(DESTDIR)$(PREFIX)/include/fastahack
+ $(MKDIR) $(DESTDIR)$(PREFIX)/lib
+ $(INSTALL) $(BIN) $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL) -m644 *.h $(DESTDIR)$(PREFIX)/include/fastahack
+ $(INSTALL) -m644 $(LIB) $(DESTDIR)$(PREFIX)/lib
+
+install-strip: install
+ $(STRIP) $(DESTDIR)$(PREFIX)/bin/$(BIN)
+
+clean:
+ rm -rf $(BIN) $(LIB) $(OBJS) $(DESTDIR)
+
+.PHONY: clean
Home |
Main Index |
Thread Index |
Old Index