# $OpenBSD: Makefile.template,v 1.58 2010/07/21 12:27:41 edd Exp $
# $FreeBSD/NetBSD: credit FreeBSD/NetBSD if thats where the port came from $
# Original from: credit the original author here

COMMENT = library for modbus rtu/tcp protocol

DISTNAME = libmodbus-2.0.3
CATEGORIES = devel

SHARED_LIBS += modbus 0.0 # 2.0

HOMEPAGE = http://www.libmodbus.org
MAINTAINER = Anibal Limon <limon.anibal@gmail.com>

# LGPLv3
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP =	Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes

MASTER_SITES = http://github.com/downloads/stephane/libmodbus/

WANTLIB = c
USE_LIBTOOL = Yes

SEPARATE_BUILD = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include" \
      LDFLAGS="-L${LOCALBASE}/lib" 
CONFIGURE_ARGS = ${CONFIGURE_SHARED}

.include <bsd.port.mk>
