diff -x CVS -ruN pkgsrc-2017Q1/wip/qrupdate/buildlink3.mk pkgsrc/wip/qrupdate/buildlink3.mk
--- pkgsrc-2017Q1/wip/qrupdate/buildlink3.mk	1970-01-01 01:00:00.000000000 +0100
+++ pkgsrc/wip/qrupdate/buildlink3.mk	2017-04-14 23:28:42.943845237 +0200
@@ -0,0 +1,11 @@
+# $NetBSD$
+BUILDLINK_TREE+=	qrupdate
+
+.if !defined(QRUPDATE_BUILDLINK3_MK)
+QRUPDATE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.qrupdate+=	qrupdate>=1.1.2
+BUILDLINK_PKGSRCDIR.qrupdate?=	../../wip/qrupdate
+.endif	# QRUPDATE_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-qrupdate
diff -x CVS -ruN pkgsrc-2017Q1/wip/qrupdate/DESCR pkgsrc/wip/qrupdate/DESCR
--- pkgsrc-2017Q1/wip/qrupdate/DESCR	1970-01-01 01:00:00.000000000 +0100
+++ pkgsrc/wip/qrupdate/DESCR	2017-04-14 23:29:40.045876141 +0200
@@ -0,0 +1,45 @@
+The following operations are supported:
+
+QR rank-1 update (qr1up)
+        Updates the QR factorization after an additive rank-1 update to the
+        original matrix (A = A + u*v'). Works for full & economized 
+        factorization.
+QR column insert (qrinc)
+        Updates the QR factorization after an inserting a column to the
+        original matrix. Works for full & economized factorization.
+QR column delete (qrdec)
+        Updates the QR factorization after an deleting a column from the
+        original matrix. Works for full & economized factorization.
+QR column shift (qrshc)
+        Updates the QR factorization after a circular shift of columns in 
+        the original matrix. Works for full & economized factorization.
+QR row insert (qrinr)
+        Updates the QR factorization after an inserting a row to the
+        original matrix. Works for full factorization only.
+QR row delete (qrder)
+        Updates the QR factorization after an deleting a row from the
+        original matrix. Works for full factorization only.
+
+Cholesky rank-1 update (ch1up)
+        Updates the Cholesky factorization after positive rank-1 update
+        A = A + u*u'. 
+Cholesky rank-1 downdate (ch1dn)
+        Updates the Cholesky factorization after positive rank-1 downdate
+        A = A - u*u'. 
+Cholesky symmetric insert (chinx)
+        Updates the Cholesky factorization after a symmetric column/row
+        insertion.
+Cholesky symmetric insert (chdex)
+        Updates the Cholesky factorization after a symmetric column/row
+        deletion.
+Cholesky symmetric shift (chshx)
+        Updates the Cholesky factorization after a symmetric column/row
+        left/right circular shift.
+
+LU rank-1 update (lu1up)
+        Updates the LU factorization after a rank-1 update (A = A + u*v.'). 
+        No pivoting available. Faster than lup1up, but less stable.
+LU pivoted rank-1 update (lup1up)
+        Updates a row-pivoted LUP factorization after a rank-1 update
+        (A = A + u*v.'). Also updates the row permutation matrix. Slower
+        than lu1up, but more stable.
diff -x CVS -ruN pkgsrc-2017Q1/wip/qrupdate/distinfo pkgsrc/wip/qrupdate/distinfo
--- pkgsrc-2017Q1/wip/qrupdate/distinfo	1970-01-01 01:00:00.000000000 +0100
+++ pkgsrc/wip/qrupdate/distinfo	2017-04-14 23:44:22.232339234 +0200
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (qrupdate-1.1.2.tar.gz) = f7403b646ace20f4a2b080b4933a1e9152fac526
+RMD160 (qrupdate-1.1.2.tar.gz) = 9d23b2d13278c335f6208ebb6775df4b4049785c
+SHA512 (qrupdate-1.1.2.tar.gz) = cc4e466ea91958e15c66be82b0c4c8ad813fbe4643f21259a9cb3ca8e0a411dd764bb2397ece848a7045f322d30316801d1540c4ebf7912030bef6995b44917c
+Size (qrupdate-1.1.2.tar.gz) = 49734 bytes
+SHA1 (patch-src-makefile) = 269fd891f99c1a5472a0315f1407c727d4c68216
diff -x CVS -ruN pkgsrc-2017Q1/wip/qrupdate/Makefile pkgsrc/wip/qrupdate/Makefile
--- pkgsrc-2017Q1/wip/qrupdate/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ pkgsrc/wip/qrupdate/Makefile	2017-04-14 23:34:55.914049369 +0200
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+DISTNAME=	qrupdate-1.1.2
+CATEGORIES=	math
+MASTER_SITES=	https://downloads.sourceforge.net/project/qrupdate/qrupdate/1.2/
+
+MAINTAINER=	thomas.orgis@uni-hamburg.de
+HOMEPAGE=	https://downloads.sourceforge.net/project/qrupdate/qrupdate/1.2/
+COMMENT=	library for fast updating of QR and Cholesky decompositions
+LICENSE=	gnu-gpl-v2
+
+USE_LIBTOOL=    yes
+USE_LANGUAGES=	fortran
+USE_TOOLS=      gmake
+
+MAKE_FLAGS= FC=${FC:Q} FFLAGS=${FFLAGS:Q} PREFIX=${PREFIX:Q} LIBDIR=lib
+
+do-build:
+	cd ${WRKDIR}/${DISTNAME}/src && gmake ${MAKE_FLAGS} lalib
+
+do-install:
+	cd ${WRKDIR}/${DISTNAME}/src && gmake DESTDIR=${DESTDIR}/ ${MAKE_FLAGS} lainstall
+
+.include "../../mk/bsd.pkg.mk"
diff -x CVS -ruN pkgsrc-2017Q1/wip/qrupdate/patches/patch-src-makefile pkgsrc/wip/qrupdate/patches/patch-src-makefile
--- pkgsrc-2017Q1/wip/qrupdate/patches/patch-src-makefile	1970-01-01 01:00:00.000000000 +0100
+++ pkgsrc/wip/qrupdate/patches/patch-src-makefile	2017-04-14 23:44:08.856333842 +0200
@@ -0,0 +1,35 @@
+$NetBSD
+
+--- src/Makefile.orig	2017-04-14 22:09:56.691696785 +0200
++++ src/Makefile	2017-04-14 23:16:19.705455550 +0200
+@@ -34,6 +34,19 @@
+ 
+ OBJS = $(SRC:%.f=%.o)
+ 
++.SUFFIXES:      .f      .lo     .o
++LOBJS = $(SRC:%.f=%.lo)
++.f.lo:  
++	libtool --tag=FC --mode=compile $(FC) -o $@ -c $(FFLAGS) $<
++
++lalib: ../libqrupdate.la
++
++../libqrupdate.la: $(LOBJS)
++	libtool --tag=FC --mode=link $(FC) $(FFLAGS) -o $@  -version-info $(MAJOR) -rpath $(PREFIX)/$(LIBDIR) $(LOBJS)
++
++lainstall: lalib
++	libtool --tag=FC --mode=install install -D ../libqrupdate.la $(DESTDIR)$(PREFIX)/$(LIBDIR)/libqrupdate.la
++
+ lib: ../libqrupdate.a
+ 
+ ifeq ($(shell uname),Darwin)
+@@ -59,6 +72,10 @@
+ 
+ clean:
+ 	rm -f $(OBJS)
++	rm -f $(LOBJS)
++	rm -rf .libs
++	rm -f ../libqrupdate.la
++	rm -rf ../.libs
+ 
+ install: install-shlib install-staticlib
+ 
diff -x CVS -ruN pkgsrc-2017Q1/wip/qrupdate/PLIST pkgsrc/wip/qrupdate/PLIST
--- pkgsrc-2017Q1/wip/qrupdate/PLIST	1970-01-01 01:00:00.000000000 +0100
+++ pkgsrc/wip/qrupdate/PLIST	2017-04-14 23:33:31.787002861 +0200
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+lib/libqrupdate.la
