aboutsummaryrefslogblamecommitdiff
path: root/multimedia/cx88/Makefile
blob: 876681ec1a5e5268901dddc293b8d312d140eacd (plain) (tree)
1
2
3
4
5
6
7
8
9


                                           




                    
                     

                                                     

                                         
                                                                                     
 

                   

                                                                        
                                                               



                                                                                                                       
                           
 









                                                                                       

                          



                               
                            


                                                                            
                                                                          








                                                      

      
                                                                                    
                                                                                  

      
                                     



                                            
# New ports collection makefile for:   cx88
# Date created:        7 September 2008
# Whom:                jah
#
# $FreeBSD$
#

PORTNAME=	cx88
PORTVERSION=	1.4.3
CATEGORIES=	multimedia kld
MASTER_SITES=	ftp://corona.homeunix.net/ports/cx88/

MAINTAINER=	jason.harmening@gmail.com
COMMENT=	Drivers for Conexant CX23880/1/2/3/5/7/8-based TV/radio capture cards

LICENSE=	BSD

LIB_DEPENDS=	tuner.1:${PORTSDIR}/multimedia/libtuner
BUILD_DEPENDS=	${LOCALBASE}/lib/libezxml.a:${PORTSDIR}/textproc/ezxml \
		libtuner>=1.0.9:${PORTSDIR}/multimedia/libtuner

KMODDIR=	/boot/modules
PLIST_SUB+=	KMODDIR=${KMODDIR}
MAKE_ARGS+=	LIBTUNER_LIB=${LOCALBASE}/lib/libtuner LIBTUNER_HEADER=${LOCALBASE}/include/libtuner KMODDIR=${KMODDIR}
MAKE_JOBS_UNSAFE=	yes

OPTIONS_DEFINE=	DEBUG LINUX_COMPAT HAL

DEBUG_DESC=	Build with debugging and verbose output enabled
LINUX_COMPAT_DESC=	Support for Linux DVB and radio devices (requires FreeBSD 8.1+)
HAL_DESC=	Register Linux DVB devices with HAL

OPTIONS_DEFAULT=	LINUX_COMPAT

.include <bsd.port.options.mk>

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MDEBUG}
MAKE_ARGS+=	DIAGNOSTIC=0x7f
.endif

.if (${OSVERSION} >= 801000)
.if ${PORT_OPTIONS:MLINUX_COMPAT}
LIB_DEPENDS+=	cuse4bsd.1:${PORTSDIR}/multimedia/cuse4bsd-kmod
BUILD_DEPENDS+=	v4l_compat>=1.0.20100321:${PORTSDIR}/multimedia/v4l_compat \
		cuse4bsd-kmod>=0.1.12:${PORTSDIR}/multimedia/cuse4bsd-kmod
MAKE_ARGS+=	-D WITH_LINUX_COMPAT
.if ${PORT_OPTIONS:MHAL}
LIB_DEPENDS+=	hal.1:${PORTSDIR}/sysutils/hal \
		dbus-1:${PORTSDIR}/devel/dbus
BUILD_DEPENDS+=	hal>=0.5.14:${PORTSDIR}/sysutils/hal \
		dbus>=1.4.0:${PORTSDIR}/devel/dbus
MAKE_ARGS+=	-D WITH_HAL
.endif
.endif
.endif

.if (${OSVERSION} < 704000) || ((${OSVERSION} >= 800000) && (${OSVERSION} < 801000))
IGNORE=	requires kernel support for kmem_alloc_attr() (FreeBSD 7.4+, FreeBSD 8.1+)
.endif

.if !exists(${SRC_BASE}/sys/Makefile)
IGNORE=		requires kernel source files
.endif

.include <bsd.port.post.mk>