blob: 08596bd246d8cb407849f88124e3d202ddf5589b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# New ports collection makefile for: w_scan
# Date created: Wed Apr 14 18:11:42 CEST 2010
# Whom: Juergen Lock <nox@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= w_scan
PORTVERSION= 20120415
CATEGORIES= multimedia
MASTER_SITES= http://wirbel.htpc-forum.de/w_scan/
MAINTAINER= nox@FreeBSD.org
COMMENT= Perform frequency scans for DVB and ATSC transmissions
BUILD_DEPENDS= v4l_compat>=1.0.20120501:${PORTSDIR}/multimedia/v4l_compat
OPTIONS_DEFINE= LINUX
LINUX_DESC= Install Linux binary too (linux-w_scan)
.include <bsd.port.options.mk>
USE_BZIP2= yes
GNU_CONFIGURE= yes
PATCH_STRIP= -lp1
USES+= gettext
CPPFLAGS+= -I"${LOCALBASE}/include"
LDFLAGS+= -L"${LOCALBASE}/lib\ -liconv"
PORTDOCS= COPYING ChangeLog README
PLIST_FILES= bin/${PORTNAME}
MAN1= w_scan.1
MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}
.if ${PORT_OPTIONS:MLINUX}
USE_LINUX= yes
RUN_DEPENDS+= linux_dvbwrapper-kmod>=1.0:${PORTSDIR}/multimedia/linux_dvbwrapper-kmod
PLIST_FILES+= bin/linux-${PORTNAME}
.endif
post-patch:
${REINPLACE_CMD} -f ${FILESDIR}/types.sed ${WRKSRC}/configure ${WRKSRC}/*.c ${WRKSRC}/*.h
${CP} ${WRKSRC}/${PORTNAME} ${WRKSRC}/linux-${PORTNAME}
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
.endif
.if ${PORT_OPTIONS:MLINUX}
(cd ${WRKSRC} && ${INSTALL_PROGRAM} linux-${PORTNAME} ${PREFIX}/bin)
.endif
.include <bsd.port.mk>
|