2013-08-29 16:27:20 +02:00
|
|
|
# Created by: Ganael Laplanche <ganael.laplanche@martymac.org>
|
2010-06-19 23:50:18 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sms1xxx
|
2012-01-16 08:32:40 +01:00
|
|
|
PORTVERSION= 20120113
|
2016-06-15 22:41:42 +02:00
|
|
|
PORTREVISION= 2
|
2013-11-09 20:13:27 +01:00
|
|
|
CATEGORIES= multimedia
|
2010-06-19 23:50:18 +02:00
|
|
|
MASTER_SITES= http://contribs.martymac.org/FreeBSD-siano/
|
|
|
|
PKGNAMESUFFIX= -kmod
|
|
|
|
DISTNAME= siano-${PORTVERSION}
|
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
|
2010-09-27 14:08:23 +02:00
|
|
|
MAINTAINER= martymac@FreeBSD.org
|
2010-06-21 18:34:06 +02:00
|
|
|
COMMENT= Native FreeBSD driver for Siano-based USB DVB devices
|
2010-06-19 23:50:18 +02:00
|
|
|
|
2010-11-10 14:30:59 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2010-06-19 23:50:18 +02:00
|
|
|
WRKSRC= ${WRKDIR}/siano-${PORTVERSION}
|
|
|
|
|
|
|
|
NO_PACKAGE= should be recompiled for a particular FreeBSD kernel
|
|
|
|
|
2012-06-11 10:08:34 +02:00
|
|
|
NO_OPTIONS_SORT= yes
|
|
|
|
OPTIONS_DEFINE= RC5WATCH DEBUG
|
|
|
|
OPTIONS_MULTI= FIRMWARE
|
|
|
|
OPTIONS_MULTI_FIRMWARE= STELLAR NOVA
|
|
|
|
OPTIONS_DEFAULT= RC5WATCH NOVA
|
2013-12-05 08:59:09 +01:00
|
|
|
OPTIONS_SUB= yes
|
2012-06-11 10:08:34 +02:00
|
|
|
RC5WATCH_DESC= Build rc5watch IR utility
|
2013-12-05 08:59:09 +01:00
|
|
|
DEBUG_ALL_TARGET= debug
|
2012-06-11 10:08:34 +02:00
|
|
|
STELLAR_DESC= Build Terratec Cinergy Piranha FW
|
|
|
|
NOVA_DESC= Build Hauppauge WinTV MiniStick FW
|
2010-06-19 23:50:18 +02:00
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
PORTDOCS= CHANGELOG README COPYING
|
|
|
|
|
|
|
|
# Supported firmwares / firmwares to build
|
|
|
|
STELLAR_FW= stellar_dvbt
|
|
|
|
NOVA_FW= novab0_dvbbda
|
|
|
|
BUILD_FWS=
|
|
|
|
|
2014-07-29 21:11:51 +02:00
|
|
|
USES= kmod tar:tgz
|
2010-06-19 23:50:18 +02:00
|
|
|
|
2013-12-05 08:59:09 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2010-06-21 18:34:06 +02:00
|
|
|
|
2012-06-11 10:08:34 +02:00
|
|
|
.if ${PORT_OPTIONS:MSTELLAR}
|
2010-06-19 23:50:18 +02:00
|
|
|
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\
|
2016-06-15 22:41:42 +02:00
|
|
|
and copy the file to '${DISTDIR}/${DIST_SUBDIR}/${STELLAR_FW}.fw'\n
|
2010-06-19 23:50:18 +02:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2012-06-11 10:08:34 +02:00
|
|
|
.if ${PORT_OPTIONS:MNOVA}
|
2010-06-19 23:50:18 +02:00
|
|
|
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\
|
2016-06-15 22:41:42 +02:00
|
|
|
and copy the file to '${DISTDIR}/${DIST_SUBDIR}/${NOVA_FW}.fw'\n
|
2010-06-19 23:50:18 +02:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(DISTFILE_INSTRUCTIONS)
|
2013-08-29 16:27:20 +02:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
IGNORE= requires manual fetch
|
|
|
|
.else
|
|
|
|
pre-fetch:
|
2010-06-19 23:50:18 +02:00
|
|
|
@${MKDIR} ${DISTDIR}/${DIST_SUBDIR}
|
|
|
|
@${PRINTF} "${DISTFILE_INSTRUCTIONS}"
|
|
|
|
@exit 1
|
|
|
|
.endif
|
2013-08-29 16:27:20 +02:00
|
|
|
.endif
|
2010-06-19 23:50:18 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|SUBDIR=|SUBDIR= ${BUILD_FWS}|' \
|
|
|
|
${WRKSRC}/firmwares/Makefile
|
|
|
|
|
|
|
|
pre-build:
|
2012-06-11 10:08:34 +02:00
|
|
|
.if ${PORT_OPTIONS:MSTELLAR}
|
2010-06-19 23:50:18 +02:00
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${STELLAR_FW}.fw ${WRKSRC}/firmwares/${STELLAR_FW}/
|
|
|
|
.endif
|
2012-06-11 10:08:34 +02:00
|
|
|
.if ${PORT_OPTIONS:MNOVA}
|
2010-06-19 23:50:18 +02:00
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${NOVA_FW}.fw ${WRKSRC}/firmwares/${NOVA_FW}/
|
|
|
|
.endif
|
|
|
|
|
2010-06-21 18:34:06 +02:00
|
|
|
post-build:
|
2012-06-11 10:08:34 +02:00
|
|
|
.if ${PORT_OPTIONS:MRC5WATCH}
|
2010-06-21 18:34:06 +02:00
|
|
|
@cd ${WRKSRC}/apps/rc5watch/ && ${MAKE} all
|
|
|
|
.endif
|
|
|
|
|
2010-06-19 23:50:18 +02:00
|
|
|
post-install:
|
2012-06-11 10:08:34 +02:00
|
|
|
.if ${PORT_OPTIONS:MRC5WATCH}
|
2013-12-05 08:59:09 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/apps/rc5watch/rc5watch ${STAGEDIR}${PREFIX}/bin/rc5watch
|
2010-06-19 23:50:18 +02:00
|
|
|
.endif
|
2013-12-05 08:59:09 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2010-06-19 23:50:18 +02:00
|
|
|
|
2013-12-05 08:59:09 +01:00
|
|
|
.include <bsd.port.mk>
|