Make it depend on zlib explicitly. This fixes linking problems on platforms with no builtin zlib. Found by Jason Bacon on CentOS.diff -r1.5 -r1.6 pkgsrc/devel/protobuf/Makefile
(asau)
@@ -1,17 +1,18 @@ | @@ -1,17 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.5 2013/03/17 14:50:13 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.6 2013/03/29 09:17:26 asau Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= protobuf-2.5.0 | 4 | DISTNAME= protobuf-2.5.0 | |
5 | PKGREVISION= 1 | |||
5 | CATEGORIES= devel | 6 | CATEGORIES= devel | |
6 | MASTER_SITES= http://protobuf.googlecode.com/files/ | 7 | MASTER_SITES= http://protobuf.googlecode.com/files/ | |
7 | 8 | |||
8 | MAINTAINER= aran@100acres.us | 9 | MAINTAINER= aran@100acres.us | |
9 | HOMEPAGE= http://code.google.com/p/protobuf/ | 10 | HOMEPAGE= http://code.google.com/p/protobuf/ | |
10 | COMMENT= Google protocol buffers | 11 | COMMENT= Google protocol buffers | |
11 | LICENSE= modified-bsd | 12 | LICENSE= modified-bsd | |
12 | 13 | |||
13 | GNU_CONFIGURE= yes | 14 | GNU_CONFIGURE= yes | |
14 | USE_LIBTOOL= yes | 15 | USE_LIBTOOL= yes | |
15 | USE_LANGUAGES= c++ c | 16 | USE_LANGUAGES= c++ c | |
16 | 17 | |||
17 | CONFIGURE_ARGS+= --libdir=${PREFIX}/lib | 18 | CONFIGURE_ARGS+= --libdir=${PREFIX}/lib |
@@ -1,13 +1,14 @@ | @@ -1,13 +1,14 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.1 2012/07/20 03:13:48 agc Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.2 2013/03/29 09:17:26 asau Exp $ | |
2 | 2 | |||
3 | BUILDLINK_TREE+= protobuf | 3 | BUILDLINK_TREE+= protobuf | |
4 | 4 | |||
5 | .if !defined(PROTOBUF_BUILDLINK3_MK) | 5 | .if !defined(PROTOBUF_BUILDLINK3_MK) | |
6 | PROTOBUF_BUILDLINK3_MK:= | 6 | PROTOBUF_BUILDLINK3_MK:= | |
7 | 7 | |||
8 | BUILDLINK_API_DEPENDS.protobuf+= protobuf>=2.4.1 | 8 | BUILDLINK_API_DEPENDS.protobuf+= protobuf>=2.4.1 | |
9 | BUILDLINK_PKGSRCDIR.protobuf?= ../../devel/protobuf | 9 | BUILDLINK_PKGSRCDIR.protobuf?= ../../devel/protobuf | |
10 | 10 | |||
11 | .include "../../devel/zlib/buildlink3.mk" | |||
11 | .endif # PROTOBUF_BUILDLINK3_MK | 12 | .endif # PROTOBUF_BUILDLINK3_MK | |
12 | 13 | |||
13 | BUILDLINK_TREE+= -protobuf | 14 | BUILDLINK_TREE+= -protobuf |