# $OpenBSD$

COMMENT =	Subsurface library for communication with dive computers

DISTNAME =	libdivecomputer-subsurface-branch-4.8.1

EXTRACT_SUFX =	.tgz

CATEGORIES =	devel

HOMEPAGE =	https://subsurface-divelog.org

MAINTAINER =	Kristaps Dzonsons <kristaps@bsd.lv>

# LGPLv2.1
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB += c

MASTER_SITES =		https://subsurface-divelog.org/downloads/

BUILD_DEPENDS =		devel/libtool \
			${MODGNU_AUTOCONF_DEPENDS} \
                        ${MODGNU_AUTOMAKE_DEPENDS}

CONFIGURE_STYLE =	gnu

AUTOCONF_VERSION=       2.67
AUTOMAKE_VERSION=       1.11

USE_GMAKE =		Yes

CONFIGURE_ARGS = 	--without-libusb --without-hidapi --without-bluez \
			--disable-shared --disable-examples --disable-doc \
			--libdir=${LOCALBASE}/lib/subsurface \
			--includedir=${LOCALBASE}/include/subsurface

NO_TEST =		Yes

pre-configure:
	cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
                AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoreconf -f -i

.include <bsd.port.mk>
