38 lines
733 B
Makefile
38 lines
733 B
Makefile
# $OpenBSD: Makefile,v 1.18 2020/03/12 19:02:21 tb Exp $
|
|
|
|
COMMENT = c protocol buffers
|
|
|
|
V = 1.3.3
|
|
DISTNAME = protobuf-c-$V
|
|
|
|
SHARED_LIBS = protobuf-c 2.0 # 1.0
|
|
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = https://github.com/protobuf-c/protobuf-c/wiki
|
|
|
|
MASTER_SITES= https://github.com/protobuf-c/protobuf-c/releases/download/v$V/
|
|
|
|
MAINTAINER = Jonathon Sisson <sisson.j@gmail.com>
|
|
|
|
# New BSD
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB = c m protobuf protoc pthread ${COMPILER_LIBCXX} z
|
|
|
|
COMPILER = base-clang ports-gcc
|
|
CXXFLAGS += -std=gnu++11
|
|
|
|
LIB_DEPENDS = devel/protobuf
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
SEPARATE_BUILD = Yes
|
|
|
|
.include <bsd.port.mk>
|