forked from Lainports/freebsd-ports
The changes since version 1.0.2 were significant enough to warrant a major library version bump. However, libnvpair.so.2 exists in FreeBSD base, so the port version builds libnvpair.so.3 instead. With one exception, all of the Solaris/Illumos types have been replaced with BSD equivalents, including boolean_t. This changes several prototypes, and also allows for the type compatibility header to be removed. The one type that remains is hrtime_t (equivalent to int64_t). Internally, the regression tests for print_json (functionality that does not exist in FreeBSD base, at least on F9) have been added from Illumos regression tests and both DragonFly and FreeBSD pass.
27 lines
531 B
Makefile
27 lines
531 B
Makefile
# Created by: John Marino <marino@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libnvpair
|
|
PORTVERSION= 2.0
|
|
CATEGORIES= databases devel
|
|
|
|
MAINTAINER= marino@FreeBSD.org
|
|
COMMENT= Illumos name-value pair library
|
|
|
|
LICENSE= CDDL
|
|
|
|
GH_ACCOUNT= jrmarino
|
|
USE_GITHUB= yes
|
|
|
|
MAKE_ARGS= LIBDIR=${PREFIX}/lib
|
|
PLIST_FILES= include/libnvpair.h \
|
|
include/nvpair.h \
|
|
lib/libnvpair.a \
|
|
lib/libnvpair.so \
|
|
lib/libnvpair.so.3
|
|
|
|
post-install:
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} libnvpair.h nvpair.h \
|
|
${STAGEDIR}${PREFIX}/include/)
|
|
|
|
.include <bsd.port.mk>
|