$NetBSD: patch-ab,v 1.4 2009/08/01 20:01:57 dholland Exp $ --- Makefile.orig 2006-03-07 14:10:25.000000000 -0500 +++ Makefile 2009-08-01 16:02:17.000000000 -0400 @@ -4,40 +4,17 @@ BINDIR?= ${PREFIX}/bin MANDIR?= ${PREFIX}/man/man -UNAME!= /usr/bin/uname -s - PROG= csup SRCS= attrstack.c config.c detailer.c diff.c fattr.c fixups.c fnmatch.c \ globtree.c idcache.c keyword.c lister.c main.c misc.c mux.c parse.y \ pathcomp.c proto.c status.c stream.c threads.c token.l updater.c -CFLAGS+= -I. -I${.CURDIR} -g -pthread -DHAVE_FFLAGS -DNDEBUG +CFLAGS+= -I. -I${.CURDIR} -g -DNDEBUG WARNS?= 6 -# A bit of tweaking is needed to get this Makefile working -# with the bsd.prog.mk of all the *BSD OSes... -.if (${UNAME} == "NetBSD") -LDFLAGS+= -pthread +# The NetBSD rules apply on all pkgsrc platforms. YHEADER= yes -.elif (${UNAME} == "OpenBSD") -# I bet there's a better way to do this with the OpenBSD mk -# framework but well, this works and I got bored. -LDFLAGS+= -pthread -YFLAGS= -d -CLEANFILES+= parse.c parse.h y.tab.h - -config.c: parse.h - -token.l: parse.h - -y.tab.h: parse.c - -parse.h: y.tab.h - cp ${.ALLSRC} ${.TARGET} - -.endif - DPADD= ${LIBCRYPTO} ${LIBZ} LDADD= -lcrypto -lz