diff --git a/multimedia/sms1xxx-kmod/Makefile b/multimedia/sms1xxx-kmod/Makefile index 748090c18ec0..d0f6998e101e 100644 --- a/multimedia/sms1xxx-kmod/Makefile +++ b/multimedia/sms1xxx-kmod/Makefile @@ -1,108 +1,110 @@ # Created by: Ganael Laplanche PORTNAME= sms1xxx PORTVERSION= 20120113 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= multimedia MASTER_SITES= http://contribs.martymac.org/FreeBSD-siano/ PKGNAMESUFFIX= -kmod DISTNAME= siano-${PORTVERSION} DIST_SUBDIR= ${PORTNAME} MAINTAINER= martymac@FreeBSD.org COMMENT= Native FreeBSD driver for Siano-based USB DVB devices LICENSE= GPLv2 +DEPRECATED= Supports DVB API v3 only. Use multimedia/webcamd instead +EXPIRATION_DATE=2021-09-30 + ONLY_FOR_ARCHS= amd64 i386 +USES= kmod tar:tgz WRKSRC= ${WRKDIR}/siano-${PORTVERSION} NO_PACKAGE= should be recompiled for a particular FreeBSD kernel NO_OPTIONS_SORT= yes OPTIONS_DEFINE= DOCS RC5WATCH DEBUG OPTIONS_MULTI= FIRMWARE OPTIONS_MULTI_FIRMWARE= STELLAR NOVA OPTIONS_DEFAULT= RC5WATCH NOVA OPTIONS_SUB= yes RC5WATCH_DESC= Build rc5watch IR utility DEBUG_ALL_TARGET= debug STELLAR_DESC= Build Terratec Cinergy Piranha FW NOVA_DESC= Build Hauppauge WinTV MiniStick FW SUB_FILES= pkg-message PORTDOCS= CHANGELOG README COPYING # Supported firmwares / firmwares to build STELLAR_FW= stellar_dvbt NOVA_FW= novab0_dvbbda BUILD_FWS= -USES= kmod tar:tgz - .include .if ${PORT_OPTIONS:MSTELLAR} BUILD_FWS+= ${STELLAR_FW} .if !exists(${DISTDIR}/${DIST_SUBDIR}/${STELLAR_FW}.fw) .if !defined(DISTFILE_INSTRUCTIONS) DISTFILE_INSTRUCTIONS=\n\ Due to licensing restrictions, firmware files must be fetched manually.\n .endif DISTFILE_INSTRUCTIONS+= \ \n- Please, get the appropriate firmware for your Stellar device\n\ and copy the file to '${DISTDIR}/${DIST_SUBDIR}/${STELLAR_FW}.fw'\n .endif .endif .if ${PORT_OPTIONS:MNOVA} BUILD_FWS+= ${NOVA_FW} .if !exists(${DISTDIR}/${DIST_SUBDIR}/${NOVA_FW}.fw) .if !defined(DISTFILE_INSTRUCTIONS) DISTFILE_INSTRUCTIONS=\n\ Due to licensing restrictions, firmware files must be fetched manually.\n .endif DISTFILE_INSTRUCTIONS+= \ \n- Please, get the appropriate firmware for your Nova device\n\ and copy the file to '${DISTDIR}/${DIST_SUBDIR}/${NOVA_FW}.fw'\n .endif .endif .if defined(DISTFILE_INSTRUCTIONS) .if defined(PACKAGE_BUILDING) IGNORE= requires manual fetch .else pre-fetch: @${MKDIR} ${DISTDIR}/${DIST_SUBDIR}; \ ${PRINTF} "${DISTFILE_INSTRUCTIONS}"; \ exit 1 .endif .endif post-patch: @${REINPLACE_CMD} -e 's|SUBDIR=|SUBDIR= ${BUILD_FWS}|' \ ${WRKSRC}/firmwares/Makefile pre-build: .if ${PORT_OPTIONS:MSTELLAR} @${CP} ${DISTDIR}/${DIST_SUBDIR}/${STELLAR_FW}.fw ${WRKSRC}/firmwares/${STELLAR_FW}/ .endif .if ${PORT_OPTIONS:MNOVA} @${CP} ${DISTDIR}/${DIST_SUBDIR}/${NOVA_FW}.fw ${WRKSRC}/firmwares/${NOVA_FW}/ .endif post-build: .if ${PORT_OPTIONS:MRC5WATCH} @cd ${WRKSRC}/apps/rc5watch/ && ${MAKE} all .endif post-install: .if ${PORT_OPTIONS:MRC5WATCH} ${INSTALL_PROGRAM} ${WRKSRC}/apps/rc5watch/rc5watch ${STAGEDIR}${PREFIX}/bin/rc5watch .endif @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include diff --git a/multimedia/sms1xxx-kmod/files/patch-8cf5b276 b/multimedia/sms1xxx-kmod/files/patch-8cf5b276 index 2ef03b9c531d..4ad166039dde 100644 --- a/multimedia/sms1xxx-kmod/files/patch-8cf5b276 +++ b/multimedia/sms1xxx-kmod/files/patch-8cf5b276 @@ -1,31 +1,31 @@ commit 8cf5b276a25047ed9cef710f73c59e0f63d7f337 Author: Ganael Laplanche Date: Wed Feb 11 09:04:46 2015 +0100 Use int instead of u8 for variables handled through SYSCTL_ADD_INT ---- sms1xxx-gpio.h.orig +--- sms1xxx-gpio.h.orig 2012-01-13 09:45:26 UTC +++ sms1xxx-gpio.h @@ -88,7 +88,7 @@ struct sms1xxx_gpio { /* Other */ u32 get_res; /* last GET result */ int status_led_state; /* current status led state */ - u8 use_lna; /* sysctl, use LNA when tuning ? */ + int use_lna; /* sysctl, use LNA when tuning ? */ }; int sms1xxx_gpio_get_pin_params(u32, u32 *, u32 *, u32 *); ---- sms1xxx-ir.h.orig +--- sms1xxx-ir.h.orig 2012-01-13 09:45:26 UTC +++ sms1xxx-ir.h @@ -37,9 +37,9 @@ /* Board IR configuration */ struct sms1xxx_ir { /* IR module state */ - u8 module_avail; /* Has board an IR module ? + int module_avail; /* Has board an IR module ? XXX Should be based on GPIO cfg ? */ - u8 module_started; /* Is IR module started ? */ + int module_started; /* Is IR module started ? */ struct cdev *dev; /* ir0 device */ /* MSG_SMS_START_IR_REQ Msg parameters */ diff --git a/multimedia/sms1xxx-kmod/files/patch-Makefile b/multimedia/sms1xxx-kmod/files/patch-Makefile index 04da184bf93b..d06bff0a6df7 100644 --- a/multimedia/sms1xxx-kmod/files/patch-Makefile +++ b/multimedia/sms1xxx-kmod/files/patch-Makefile @@ -1,13 +1,13 @@ ---- Makefile.orig 2013-12-03 06:24:57.000000000 +0100 -+++ Makefile 2013-12-03 06:25:48.000000000 +0100 -@@ -26,8 +26,8 @@ +--- Makefile.orig 2012-01-13 08:51:27 UTC ++++ Makefile +@@ -26,8 +26,8 @@ installkld: ${MAKE} -f Makefile.kld install installman: - ${INSTALL_MAN} man/man4/sms1xxx.4 ${MANPREFIX}/man/man4 - ${GZIP_CMD} ${MANPREFIX}/man/man4/sms1xxx.4 + ${INSTALL_MAN} man/man4/sms1xxx.4 ${DESTDIR}${MANPREFIX}/man/man4 + ${GZIP_CMD} ${DESTDIR}${MANPREFIX}/man/man4/sms1xxx.4 install: installkld installman diff --git a/multimedia/sms1xxx-kmod/files/patch-firmwares-Makefile b/multimedia/sms1xxx-kmod/files/patch-firmwares-Makefile index 85e8445e6901..753f8e22634f 100644 --- a/multimedia/sms1xxx-kmod/files/patch-firmwares-Makefile +++ b/multimedia/sms1xxx-kmod/files/patch-firmwares-Makefile @@ -1,12 +1,12 @@ ---- firmwares/Makefile.orig 2010-02-12 07:09:22.519462110 +0000 -+++ firmwares/Makefile 2010-02-12 07:17:10.216239773 +0000 +--- firmwares/Makefile.orig 2012-01-13 08:51:31 UTC ++++ firmwares/Makefile @@ -1,8 +1,3 @@ -SUBDIR= stellar_dabtdmb \ - stellar_dvbh \ - stellar_dvbt \ - novab0_dvbbda \ - novab0_isdbtbda -# novab0_tdmb +SUBDIR= .include