mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Switch to OptionsNg
- Build Nova firmware by default
This commit is contained in:
parent
037c066f9e
commit
10c174808b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299027
1 changed files with 18 additions and 13 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= sms1xxx
|
PORTNAME= sms1xxx
|
||||||
PORTVERSION= 20120113
|
PORTVERSION= 20120113
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= multimedia kld
|
CATEGORIES= multimedia kld
|
||||||
MASTER_SITES= http://contribs.martymac.org/FreeBSD-siano/
|
MASTER_SITES= http://contribs.martymac.org/FreeBSD-siano/
|
||||||
PKGNAMESUFFIX= -kmod
|
PKGNAMESUFFIX= -kmod
|
||||||
|
@ -23,10 +24,14 @@ WRKSRC= ${WRKDIR}/siano-${PORTVERSION}
|
||||||
|
|
||||||
NO_PACKAGE= should be recompiled for a particular FreeBSD kernel
|
NO_PACKAGE= should be recompiled for a particular FreeBSD kernel
|
||||||
|
|
||||||
OPTIONS= RC5WATCH "Build rc5watch utility" on \
|
NO_OPTIONS_SORT= yes
|
||||||
STELLAR "Build Stellar firmware" off \
|
OPTIONS_DEFINE= RC5WATCH DEBUG
|
||||||
NOVA "Build Nova firmware" off \
|
OPTIONS_MULTI= FIRMWARE
|
||||||
DEBUG "Build with debug symbols" off
|
OPTIONS_MULTI_FIRMWARE= STELLAR NOVA
|
||||||
|
OPTIONS_DEFAULT= RC5WATCH NOVA
|
||||||
|
RC5WATCH_DESC= Build rc5watch IR utility
|
||||||
|
STELLAR_DESC= Build Terratec Cinergy Piranha FW
|
||||||
|
NOVA_DESC= Build Hauppauge WinTV MiniStick FW
|
||||||
|
|
||||||
ONLY_FOR_ARCHS= i386 amd64
|
ONLY_FOR_ARCHS= i386 amd64
|
||||||
|
|
||||||
|
@ -53,17 +58,17 @@ IGNORE= requires kernel source files
|
||||||
IGNORE= requires FreeBSD 8.0 or superior
|
IGNORE= requires FreeBSD 8.0 or superior
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_DEBUG)
|
.if ${PORT_OPTIONS:MDEBUG}
|
||||||
ALL_TARGET= debug
|
ALL_TARGET= debug
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_RC5WATCH)
|
.if ${PORT_OPTIONS:MRC5WATCH}
|
||||||
PLIST_SUB+= PL_RC5WATCH=""
|
PLIST_SUB+= PL_RC5WATCH=""
|
||||||
.else
|
.else
|
||||||
PLIST_SUB+= PL_RC5WATCH="@comment "
|
PLIST_SUB+= PL_RC5WATCH="@comment "
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_STELLAR)
|
.if ${PORT_OPTIONS:MSTELLAR}
|
||||||
BUILD_FWS+= ${STELLAR_FW}
|
BUILD_FWS+= ${STELLAR_FW}
|
||||||
PLIST_SUB+= PL_STELLAR=""
|
PLIST_SUB+= PL_STELLAR=""
|
||||||
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${STELLAR_FW}.fw)
|
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${STELLAR_FW}.fw)
|
||||||
|
@ -84,7 +89,7 @@ DISTFILE_INSTRUCTIONS+= \
|
||||||
PLIST_SUB+= PL_STELLAR="@comment "
|
PLIST_SUB+= PL_STELLAR="@comment "
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_NOVA)
|
.if ${PORT_OPTIONS:MNOVA}
|
||||||
BUILD_FWS+= ${NOVA_FW}
|
BUILD_FWS+= ${NOVA_FW}
|
||||||
PLIST_SUB+= PL_NOVA=""
|
PLIST_SUB+= PL_NOVA=""
|
||||||
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${NOVA_FW}.fw)
|
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${NOVA_FW}.fw)
|
||||||
|
@ -117,23 +122,23 @@ post-patch:
|
||||||
${WRKSRC}/firmwares/Makefile
|
${WRKSRC}/firmwares/Makefile
|
||||||
|
|
||||||
pre-build:
|
pre-build:
|
||||||
.if defined(WITH_STELLAR)
|
.if ${PORT_OPTIONS:MSTELLAR}
|
||||||
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${STELLAR_FW}.fw ${WRKSRC}/firmwares/${STELLAR_FW}/
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${STELLAR_FW}.fw ${WRKSRC}/firmwares/${STELLAR_FW}/
|
||||||
.endif
|
.endif
|
||||||
.if defined(WITH_NOVA)
|
.if ${PORT_OPTIONS:MNOVA}
|
||||||
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${NOVA_FW}.fw ${WRKSRC}/firmwares/${NOVA_FW}/
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${NOVA_FW}.fw ${WRKSRC}/firmwares/${NOVA_FW}/
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-build:
|
post-build:
|
||||||
.if defined(WITH_RC5WATCH)
|
.if ${PORT_OPTIONS:MRC5WATCH}
|
||||||
@cd ${WRKSRC}/apps/rc5watch/ && ${MAKE} all
|
@cd ${WRKSRC}/apps/rc5watch/ && ${MAKE} all
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if defined(WITH_RC5WATCH)
|
.if ${PORT_OPTIONS:MRC5WATCH}
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/apps/rc5watch/rc5watch ${PREFIX}/bin/rc5watch
|
${INSTALL_PROGRAM} ${WRKSRC}/apps/rc5watch/rc5watch ${PREFIX}/bin/rc5watch
|
||||||
.endif
|
.endif
|
||||||
.if !defined(NOPORTDOCS)
|
.if ${PORT_OPTIONS:MDOCS}
|
||||||
@${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${DOCSDIR}
|
||||||
.for doc in ${PORTDOCS}
|
.for doc in ${PORTDOCS}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
||||||
|
|
Loading…
Add table
Reference in a new issue