# Ports collection makefile for: webcamd # Date created: 13 January 2010 # Whom: Andrew Thompson # # $FreeBSD$ # PORTNAME= webcamd PORTVERSION= 0.1.16 CATEGORIES= multimedia MASTER_SITES= http://www.selasky.org/hans_petter/video4bsd/releases/ MAINTAINER= hselasky@FreeBSD.org COMMENT= A port of Linux USB webcam and DVB drivers into userspace BUILD_DEPENDS= v4l_compat>=1.0.20100321:${PORTSDIR}/multimedia/v4l_compat \ cuse4bsd-kmod>=0.1.8:${PORTSDIR}/multimedia/cuse4bsd-kmod LIB_DEPENDS= v4l1.0:${PORTSDIR}/multimedia/libv4l USE_RC_SUBR= webcamd USE_BZIP2= yes USE_LDCONFIG= yes MAKE_JOBS_SAFE= yes LIBDIR= ${PREFIX}/lib OPTIONS= HAL "Build with HAL and DBUS support" On .include LIBCUSE=${LIBDIR}/libcuse4bsd.so .if defined(WITH_HAL) MAKE_ARGS+="HAVE_HAL=YES" LIBHAL=${LIBDIR}/libhal.so:${LIBDIR}/libdbus-1.so: LIB_DEPENDS+=hal.1:${PORTSDIR}/sysutils/hal LIB_DEPENDS+=dbus-1:${PORTSDIR}/devel/dbus .else LIBHAL= .endif .if ${OSVERSION} < 800000 IGNORE= requires FreeBSD 8.0-RELEASE or later .endif post-patch: @cd ${WRKSRC}/patches; ${SH} ./do_patch.sh @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Makefile post-install: @${MKDIR} ${PREFIX}/etc/devd @${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \ -e "s|%%LIBHAL%%|${LIBHAL}|g" \ -e "s|%%LIBCUSE%%|${LIBCUSE}|g" \ < ${FILESDIR}/webcamd.conf.in > ${WRKDIR}/webcamd.conf ${INSTALL_DATA} "${WRKDIR}/webcamd.conf" ${PREFIX}/etc/devd @${CAT} ${PKGMESSAGE} .include