* Need OpenSSL to build. * Ensure to use BSD_MAKEFILE and pass appropriate CFLAGS. Fixes PR 40171.diff -r1.3 -r1.4 pkgsrc/net/csup/Makefile
(obache)
@@ -1,29 +1,43 @@ | @@ -1,29 +1,43 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2007/12/02 08:32:24 rillig Exp $ | 1 | # $NetBSD: Makefile,v 1.4 2008/12/23 11:22:05 obache Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= csup-snap-20070216 | 4 | DISTNAME= csup-snap-20070216 | |
5 | PKGNAME= ${DISTNAME:S/-snap//} | 5 | PKGNAME= ${DISTNAME:S/-snap//} | |
6 | CATEGORIES= net devel | 6 | CATEGORIES= net devel | |
7 | MASTER_SITES= ${MASTER_SITE_BACKUP} | 7 | MASTER_SITES= ${MASTER_SITE_BACKUP} | |
8 | 8 | |||
9 | MAINTAINER= imil@gcu.info | 9 | MAINTAINER= imil@gcu.info | |
10 | HOMEPAGE= http://www.mu.org/~mux/csup.html | 10 | HOMEPAGE= http://www.mu.org/~mux/csup.html | |
11 | COMMENT= Rewrite of the CVSup file updating client in C | 11 | COMMENT= Rewrite of the CVSup file updating client in C | |
12 | 12 | |||
13 | PKG_DESTDIR_SUPPORT= user-destdir | |||
14 | ||||
13 | USE_TOOLS+= lex yacc | 15 | USE_TOOLS+= lex yacc | |
16 | ||||
17 | USE_BSD_MAKEFILE= yes | |||
18 | ||||
14 | WRKSRC= ${WRKDIR}/csup | 19 | WRKSRC= ${WRKDIR}/csup | |
15 | 20 | |||
16 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 | 21 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/cat1 | |
17 | 22 | |||
18 | CFLAGS+= ${PTHREAD_CFLAGS} | 23 | CFLAGS+= ${PTHREAD_CFLAGS} | |
19 | LDFLAGS+= ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} | 24 | LDFLAGS+= ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} | |
20 | 25 | |||
21 | BUILDLINK_TRANSFORM+= rm:-Werror | 26 | BUILDLINK_TRANSFORM+= rm:-Werror | |
22 | 27 | |||
23 | do-install: | 28 | .include "../../mk/bsd.prefs.mk" | |
24 | ${INSTALL_PROGRAM} ${WRKSRC}/csup ${PREFIX}/bin | 29 | ||
25 | ${INSTALL_MAN} ${WRKSRC}/csup.1 ${PREFIX}/${PKGMANDIR}/man1/csup.1 | 30 | .if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" \ | |
31 | || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin" | |||
32 | CFLAGS+= -DHAVE_FFLAGS | |||
33 | .endif | |||
34 | ||||
35 | # taken from ${WRKSRC}/GNUmakefile | |||
36 | .if ${OPSYS} == "Linux" | |||
37 | CFLAGS+= -D_XOPEN_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 | |||
38 | .endif | |||
26 | 39 | |||
27 | .include "../../devel/zlib/buildlink3.mk" | 40 | .include "../../devel/zlib/buildlink3.mk" | |
41 | .include "../../security/openssl/buildlink3.mk" | |||
28 | .include "../../mk/pthread.buildlink3.mk" | 42 | .include "../../mk/pthread.buildlink3.mk" | |
29 | .include "../../mk/bsd.pkg.mk" | 43 | .include "../../mk/bsd.pkg.mk" |
@@ -1,7 +1,6 @@ | @@ -1,7 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.3 2007/07/12 06:11:54 xtraeme Exp $ | 1 | $NetBSD: distinfo,v 1.4 2008/12/23 11:22:05 obache Exp $ | |
2 | 2 | |||
3 | SHA1 (csup-snap-20070216.tar.gz) = b2a5b5a95496f166caa6f4c03003fe354a4e76c2 | 3 | SHA1 (csup-snap-20070216.tar.gz) = b2a5b5a95496f166caa6f4c03003fe354a4e76c2 | |
4 | RMD160 (csup-snap-20070216.tar.gz) = 7d96422461d7538b8f5ff2afaff9341a38ad2a8f | 4 | RMD160 (csup-snap-20070216.tar.gz) = 7d96422461d7538b8f5ff2afaff9341a38ad2a8f | |
5 | Size (csup-snap-20070216.tar.gz) = 80734 bytes | 5 | Size (csup-snap-20070216.tar.gz) = 80734 bytes | |
6 | SHA1 (patch-aa) = 9f0792cb8d3f6acd28df3db6fd6b629800c4cc1c | 6 | SHA1 (patch-ab) = 06a9523e87eccd566fe14115698aadcfa2fb3270 | |
7 | SHA1 (patch-ab) = 3ae5cc715d204d2b08042b0ace24092cbc423f01 |
@@ -1,3 +1,4 @@ | @@ -1,3 +1,4 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1.1.1 2007/02/16 12:06:39 xtraeme Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2008/12/23 11:22:05 obache Exp $ | |
2 | bin/csup | 2 | bin/csup | |
3 | man/cat1/csup.0 | |||
3 | man/man1/csup.1 | 4 | man/man1/csup.1 |
@@ -1,24 +1,23 @@ | @@ -1,24 +1,23 @@ | |||
1 | $NetBSD: patch-ab,v 1.2 2007/02/20 13:31:19 joerg Exp $ | 1 | $NetBSD: patch-ab,v 1.3 2008/12/23 11:22:06 obache Exp $ | |
2 | 2 | |||
3 | --- Makefile.orig 2006-03-07 19:10:25.000000000 +0000 | 3 | --- Makefile.orig 2006-03-08 04:10:25.000000000 +0900 | |
4 | +++ Makefile | 4 | +++ Makefile | |
5 | @@ -11,33 +11,13 @@ SRCS= attrstack.c config.c detailer.c di | 5 | @@ -11,33 +11,12 @@ SRCS= attrstack.c config.c detailer.c di | |
6 | globtree.c idcache.c keyword.c lister.c main.c misc.c mux.c parse.y \ | 6 | globtree.c idcache.c keyword.c lister.c main.c misc.c mux.c parse.y \ | |
7 | pathcomp.c proto.c status.c stream.c threads.c token.l updater.c | 7 | pathcomp.c proto.c status.c stream.c threads.c token.l updater.c | |
8 | 8 | |||
9 | -CFLAGS+= -I. -I${.CURDIR} -g -pthread -DHAVE_FFLAGS -DNDEBUG | 9 | -CFLAGS+= -I. -I${.CURDIR} -g -pthread -DHAVE_FFLAGS -DNDEBUG | |
10 | +CFLAGS+= -I. -I${.CURDIR} -g ${PTHREAD_CFLAGS} -DHAVE_FFLAGS -DNDEBUG | 10 | +CFLAGS+= -I. -I${.CURDIR} -g -DNDEBUG | |
11 | +LDFLAGS+= ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} | |||
12 | WARNS?= 6 | 11 | WARNS?= 6 | |
13 | 12 | |||
14 | -# A bit of tweaking is needed to get this Makefile working | 13 | -# A bit of tweaking is needed to get this Makefile working | |
15 | -# with the bsd.prog.mk of all the *BSD OSes... | 14 | -# with the bsd.prog.mk of all the *BSD OSes... | |
16 | -.if (${UNAME} == "NetBSD") | 15 | -.if (${UNAME} == "NetBSD") | |
17 | -LDFLAGS+= -pthread | 16 | -LDFLAGS+= -pthread | |
18 | +# The NetBSD rules apply on all pkgsrc platforms. | 17 | +# The NetBSD rules apply on all pkgsrc platforms. | |
19 | YHEADER= yes | 18 | YHEADER= yes | |
20 | 19 | |||
21 | -.elif (${UNAME} == "OpenBSD") | 20 | -.elif (${UNAME} == "OpenBSD") | |
22 | -# I bet there's a better way to do this with the OpenBSD mk | 21 | -# I bet there's a better way to do this with the OpenBSD mk | |
23 | -# framework but well, this works and I got bored. | 22 | -# framework but well, this works and I got bored. | |
24 | -LDFLAGS+= -pthread | 23 | -LDFLAGS+= -pthread |