# New ports collection makefile for:	scanbuttond
# Date created:		31 March 2006
# Whom:			Daniel Thiele
#
# $FreeBSD: ports/sysutils/scanbuttond/Makefile,v 1.3 2007/10/04 06:10:14 edwin Exp $
#

PORTNAME=	scanbuttond
PORTVERSION=	0.2.3
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	dthiele@gmx.net
COMMENT=	A daemon to monitor and configure modern scanner's buttons

LIB_DEPENDS=	usb-0.1.8:${PORTSDIR}/devel/libusb

USE_GCC=	3.3+
USE_GETOPT_LONG=yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB=	yes

SUB_FILES+=	pkg-message

pre-configure:
	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \
		${REINPLACE_CMD} -e 's|-ldl||g'
post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>


syntax highlighted by Code2HTML, v. 0.9.1