# $OpenBSD$

COMMENT =	library for communicating with dive computers
DISTNAME =	libdivecomputer-0.5.0

SHARED_LIBS +=	divecomputer 0.0

CATEGORIES =	devel
HOMEPAGE =	http://www.libdivecomputer.org/
MAINTAINER =	Kristaps Dzonsons <kristaps@bsd.lv>

# LGPLv2.1
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB +=	c m pthread usb-1.0

MASTER_SITES =	http://www.libdivecomputer.org/releases/

LIB_DEPENDS =	devel/libusb1

USE_GMAKE =	Yes

CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --without-hidapi --disable-static
CONFIGURE_ENV =	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"

# Remove obvious third-party files
# that have no author information and no license.
post-extract:
	rm ${WRKSRC}/src/aes.{c,h}

.include <bsd.port.mk>
