2010-05-23 20:59:54 +02:00
|
|
|
# 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
|
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
|
|
|
|
2012-06-02 21:37:10 +02:00
|
|
|
OPTIONS_DEFINE= LINUX
|
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
|
|
|
USE_BZIP2= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2012-10-03 17:48:41 +02:00
|
|
|
PATCH_STRIP= -lp1
|
2013-04-24 20:10:30 +02:00
|
|
|
USES+= gettext
|
2011-06-17 21:53:44 +02:00
|
|
|
CPPFLAGS+= -I"${LOCALBASE}/include"
|
|
|
|
LDFLAGS+= -L"${LOCALBASE}/lib\ -liconv"
|
2010-05-23 20:59:54 +02:00
|
|
|
PORTDOCS= COPYING ChangeLog README
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
MAN1= w_scan.1
|
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}
|
2010-05-23 20:59:54 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
|
|
|
|
.endif
|
2012-06-02 21:37:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MLINUX}
|
2011-12-03 18:12:29 +01:00
|
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} linux-${PORTNAME} ${PREFIX}/bin)
|
|
|
|
.endif
|
2010-05-23 20:59:54 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|