diff options
author | kwm <kwm@FreeBSD.org> | 2015-12-01 23:32:10 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2015-12-01 23:32:10 +0800 |
commit | 4340c7dd31be4731f7bbd2681ce86b70693b8acc (patch) | |
tree | 8384ad1a6cf518777f8d070fa5636bec042a82b9 /multimedia/webcamd | |
parent | e7b99782486d10fab7792393e00d44953336e5ca (diff) | |
download | freebsd-ports-gnome-4340c7dd31be4731f7bbd2681ce86b70693b8acc.tar.gz freebsd-ports-gnome-4340c7dd31be4731f7bbd2681ce86b70693b8acc.tar.zst freebsd-ports-gnome-4340c7dd31be4731f7bbd2681ce86b70693b8acc.zip |
Update webcamd to 4.2.0.8.
- Add webcamd.conf to SUB_FILES instead of doing it manualy
- Exclude the CUSE option if it present in base
- Make use of Option handlers for MAKE_ARGS variables
- Remove bogus text before the do-configure step
Submitted by: maintainer (via IRC)
Diffstat (limited to 'multimedia/webcamd')
-rw-r--r-- | multimedia/webcamd/Makefile | 101 | ||||
-rw-r--r-- | multimedia/webcamd/distinfo | 4 |
2 files changed, 38 insertions, 67 deletions
diff --git a/multimedia/webcamd/Makefile b/multimedia/webcamd/Makefile index e0a64782b613..f76b72eaf314 100644 --- a/multimedia/webcamd/Makefile +++ b/multimedia/webcamd/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= webcamd -PORTVERSION= 3.18.0.1 +PORTVERSION= 4.2.0.8 CATEGORIES= multimedia MASTER_SITES= http://www.selasky.org/hans_petter/distfiles/ \ http://home.selasky.org:8192/distfiles/ @@ -16,81 +16,61 @@ BUILD_DEPENDS= v4l_compat>=1.0.20100321:${PORTSDIR}/multimedia/v4l_compat LIB_DEPENDS= libv4l1.so:${PORTSDIR}/multimedia/libv4l USES= pkgconfig tar:bzip2 uidfix +MAKE_ARGS= LIBDIR="${LOCALBASE}/lib" USE_RC_SUBR= webcamd +SUB_FILES= webcamd.conf USE_LDCONFIG= yes -LIBDIR= ${PREFIX}/lib - OPTIONS_DEFINE= CUSE DEBUG HAL VT_CLIENT VT_SERVER DVB INPUT RADIO WEBCAM OPTIONS_DEFAULT=DVB HAL INPUT RADIO WEBCAM -CUSE_DESC= Use CUSE and not CUSE4BSD (FreeBSD-11+ only) + +.if exists(/usr/lib/libcuse.so) +OPTIONS_DEFAULT+= CUSE +.else +OPTIONS_EXCLUDE+= CUSE +.endif + +CUSE_DESC= Use cuse(3) over multimedia/cuse4bsd-kmod +CUSE_MAKE_ARGS= HAVE_CUSE="YES" +CUSE_SUB_LIST= LIBCUSE="" +CUSE_BUILD_DEPENDS_OFF= cuse4bsd-kmod>=0.1.24:${PORTSDIR}/multimedia/cuse4bsd-kmod +CUSE_LIB_DEPENDS_OFF= libcuse4bsd.so:${PORTSDIR}/multimedia/cuse4bsd-kmod +CUSE_SUB_LIST_OFF= LIBCUSE="${LOCALBASE}/lib/libcuse4bsd.so" + HAL_DESC= Build with HAL and DBUS support +HAL_LIB_DEPENDS+= libhal.so:${PORTSDIR}/sysutils/hal +HAL_LIB_DEPENDS+= libdbus-1.so:${PORTSDIR}/devel/dbus +HAL_MAKE_ARGS= HAVE_HAL="YES" +HAL_SUB_LIST= LIBHAL="${LOCALBASE}/lib/libhal.so:${LOCALBASE}/lib/libdbus-1.so:" +HAL_SUB_LIST_OFF= LIBHAL="" + DEBUG_DESC= Build with debugging support +DEBUG_MAKE_ARGS= HAVE_DEBUG="YES" + VT_CLIENT_DESC= Build with vTuner client support +VT_CLIENT_MAKE_ARGS= HAVE_VTUNER_CLIENT="YES" + VT_SERVER_DESC= Build with vTuner server support +VT_SERVER_MAKE_ARGS= HAVE_VTUNER_SERVER="YES" DVB_DESC= Build with USB DVB support (DVB-X, analog TV, ...) +DVB_MAKE_ARGS= HAVE_DVB_DRV="YES" + INPUT_DESC= Build with USB input support (tablet, joystick, HID, IR, ...) +INPUT_MAKE_ARGS= HAVE_INPUT_DRV="YES" + RADIO_DESC= Build with USB radio support +RADIO_MAKE_ARGS= HAVE_RADIO_DRV="YES" + WEBCAM_DESC= Build with USB webcam support (UVC, gspca, ...) +WEBCAM_MAKE_ARGS= HAVE_WEBCAM_DRV="YES" USERS= webcamd GROUPS= webcamd -.include <bsd.port.pre.mk> - MAKE_ARGS+= HAVE_MAN="YES" MAKE_ARGS+= PTHREAD_LIBS="-lpthread" -.if ${PORT_OPTIONS:MCUSE} -MAKE_ARGS+= HAVE_CUSE="YES" -LIBCUSE= /usr/lib/libcuse.so -.else -BUILD_DEPENDS+= cuse4bsd-kmod>=0.1.31:${PORTSDIR}/multimedia/cuse4bsd-kmod -LIB_DEPENDS+= libcuse4bsd.so:${PORTSDIR}/multimedia/cuse4bsd-kmod -LIBCUSE= ${LIBDIR}/libcuse4bsd.so -.endif - -.if ${PORT_OPTIONS:MDVB} -MAKE_ARGS+= HAVE_DVB_DRV="YES" -.endif - -.if ${PORT_OPTIONS:MINPUT} -MAKE_ARGS+= HAVE_INPUT_DRV="YES" -.endif - -.if ${PORT_OPTIONS:MRADIO} -MAKE_ARGS+= HAVE_RADIO_DRV="YES" -.endif - -.if ${PORT_OPTIONS:MWEBCAM} -MAKE_ARGS+= HAVE_WEBCAM_DRV="YES" -.endif - -.if ${PORT_OPTIONS:MHAL} -MAKE_ARGS+= HAVE_HAL="YES" -LIBHAL= ${LIBDIR}/libhal.so:${LIBDIR}/libdbus-1.so: -LIB_DEPENDS+= libhal.so:${PORTSDIR}/sysutils/hal -LIB_DEPENDS+= libdbus-1.so:${PORTSDIR}/devel/dbus -.else -LIBHAL= -.endif - -.if ${PORT_OPTIONS:MVT_CLIENT} -MAKE_ARGS+= HAVE_VTUNER_CLIENT="YES" -.endif - -.if ${PORT_OPTIONS:MVT_SERVER} -MAKE_ARGS+= HAVE_VTUNER_SERVER="YES" -.endif - -.if ${PORT_OPTIONS:MDEBUG} -MAKE_ARGS+= HAVE_DEBUG="YES" -.endif - -# -# This step is optional -# do-configure: ${MAKE} -C${WRKSRC}/tools/linux_make ${MAKE} ${MAKE_ARGS} configure -C${WRKSRC} @@ -98,17 +78,8 @@ do-configure: post-patch: @(cd ${WRKSRC}/patches && ${SH} ./do_patch.sh) -pre-install: - ${SED} -i .orig \ - -e "s|%%PREFIX%%|${PREFIX}|g" \ - -e "s|%%LIBHAL%%|${LIBHAL}|g" \ - -e "s|%%LIBCUSE%%|${LIBCUSE}|g" \ - ${WRKDIR}/webcamd - post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/etc/devd - ${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \ - < ${FILESDIR}/webcamd.conf.in > ${WRKDIR}/webcamd.conf ${INSTALL_DATA} "${WRKDIR}/webcamd.conf" ${STAGEDIR}${PREFIX}/etc/devd -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/multimedia/webcamd/distinfo b/multimedia/webcamd/distinfo index efe062b92ce5..19342c20e619 100644 --- a/multimedia/webcamd/distinfo +++ b/multimedia/webcamd/distinfo @@ -1,2 +1,2 @@ -SHA256 (webcamd-3.18.0.1.tar.bz2) = 69cb0cfa2c0b71ec5ea544b35e059ac423a52746d5fcba3d4c335fc26110b69c -SIZE (webcamd-3.18.0.1.tar.bz2) = 10462299 +SHA256 (webcamd-4.2.0.8.tar.bz2) = 285e789747148895c280d1be6c2bfbdc310a56a56b8861ec41e4825170f11df3 +SIZE (webcamd-4.2.0.8.tar.bz2) = 10982558 |