protobuf 3. All consumers tested by jca (sparc64) and myself (amd64). tweaks & ok jca; maintainer timeout
49 lines
1016 B
Makefile
49 lines
1016 B
Makefile
# $OpenBSD: Makefile,v 1.13 2018/07/10 10:49:43 tb Exp $
|
|
|
|
COMMENT = c protocol buffers
|
|
|
|
V = 1.3.0
|
|
DISTNAME = protobuf-c-$V
|
|
|
|
SHARED_LIBS = protobuf-c 2.0 # 2.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_CDROM = Yes
|
|
|
|
WANTLIB = c m protobuf protoc pthread ${COMPILER_LIBCXX} z
|
|
|
|
COMPILER = base-clang ports-gcc
|
|
CXXFLAGS += -std=gnu++11
|
|
|
|
BUILD_DEPENDS = devel/libtool \
|
|
${MODGNU_AUTOCONF_DEPENDS} \
|
|
${MODGNU_AUTOMAKE_DEPENDS}
|
|
|
|
LIB_DEPENDS = devel/protobuf
|
|
|
|
AUTOCONF_VERSION = 2.69
|
|
AUTOMAKE_VERSION = 1.15
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
SEPARATE_BUILD = Yes
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoreconf -f -i
|
|
|
|
.include <bsd.port.mk>
|