2013-09-20 22:57:48 +02:00
|
|
|
# Created by: Juergen Lock <nox@FreeBSD.org>
|
2010-05-23 20:59:54 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= w_scan
|
2012-05-12 14:22:54 +02:00
|
|
|
PORTVERSION= 20120415
|
2010-05-23 20:59:54 +02:00
|
|
|
CATEGORIES= multimedia
|
|
|
|
MASTER_SITES= http://wirbel.htpc-forum.de/w_scan/
|
|
|
|
|
|
|
|
MAINTAINER= nox@FreeBSD.org
|
|
|
|
COMMENT= Perform frequency scans for DVB and ATSC transmissions
|
|
|
|
|
2012-05-12 14:22:54 +02:00
|
|
|
BUILD_DEPENDS= v4l_compat>=1.0.20120501:${PORTSDIR}/multimedia/v4l_compat
|
2010-05-23 20:59:54 +02:00
|
|
|
|
2014-07-15 18:27:54 +02:00
|
|
|
OPTIONS_DEFINE= LINUX DOCS
|
2012-06-16 17:28:45 +02:00
|
|
|
LINUX_DESC= Install Linux binary too (linux-w_scan)
|
2011-12-03 18:12:29 +01:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2010-05-23 20:59:54 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2012-10-03 17:48:41 +02:00
|
|
|
PATCH_STRIP= -lp1
|
2014-03-15 16:35:59 +01:00
|
|
|
USES+= gettext iconv tar:bzip2
|
2011-06-17 21:53:44 +02:00
|
|
|
CPPFLAGS+= -I"${LOCALBASE}/include"
|
2013-09-04 20:06:07 +02:00
|
|
|
LDFLAGS+= -L"${LOCALBASE}/lib\ ${ICONV_LIB}"
|
2010-05-23 20:59:54 +02:00
|
|
|
PORTDOCS= COPYING ChangeLog README
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
2014-01-26 19:09:09 +01:00
|
|
|
PLIST_FILES+= man/man1/${PORTNAME}.1.gz
|
2012-05-12 14:22:54 +02:00
|
|
|
WRKSRC= ${WRKDIR}
|
2010-05-23 20:59:54 +02:00
|
|
|
|
2012-06-02 21:37:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MLINUX}
|
2011-12-03 18:12:29 +01:00
|
|
|
USE_LINUX= yes
|
|
|
|
RUN_DEPENDS+= linux_dvbwrapper-kmod>=1.0:${PORTSDIR}/multimedia/linux_dvbwrapper-kmod
|
|
|
|
PLIST_FILES+= bin/linux-${PORTNAME}
|
|
|
|
.endif
|
|
|
|
|
2010-05-23 20:59:54 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -f ${FILESDIR}/types.sed ${WRKSRC}/configure ${WRKSRC}/*.c ${WRKSRC}/*.h
|
2011-12-03 18:12:29 +01:00
|
|
|
${CP} ${WRKSRC}/${PORTNAME} ${WRKSRC}/linux-${PORTNAME}
|
2010-05-23 20:59:54 +02:00
|
|
|
|
|
|
|
post-install:
|
2012-06-02 21:37:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-01-26 19:09:09 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
2010-05-23 20:59:54 +02:00
|
|
|
.endif
|
2012-06-02 21:37:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MLINUX}
|
2014-01-26 19:09:09 +01:00
|
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} linux-${PORTNAME} ${STAGEDIR}${PREFIX}/bin)
|
2011-12-03 18:12:29 +01:00
|
|
|
.endif
|
2010-05-23 20:59:54 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|