1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/multimedia/w_scan/Makefile
Juergen Lock 556f752a10 - Update to 20111203 .
- Add knob to install the Linux version too (needs
  multimedia/linux_dvbwrapper-kmod kldload'ed to run.)
- Add workaround to avoid invalid UTF-8 encodings when converting
  from ISO_6937-2 (that the iconv used on FreeBSD doesn't know) -
  if you need ISO_6937-2 converted properly you have to use the
  Linux version for now.  (Tho all the 8-bit channel names I see
  here marked as the default ISO_6937-2 charset are in fact
  ISO8859-1(5) i.e. the charset isn't marked properly on those
  transponders and thus the Linux version would convert them wrongly
  too.)

Feature safe:	yes
2011-12-03 17:12:29 +00:00

53 lines
1.3 KiB
Makefile

# 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= 20111203
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= ${LOCALBASE}/include/linux/dvb/frontend.h:${PORTSDIR}/multimedia/v4l_compat
OPTIONS= LINUX "Install Linux binary too (linux-w_scan)" off
.include <bsd.port.options.mk>
USE_BZIP2= yes
GNU_CONFIGURE= yes
PATCH_STRIP= -p1
USE_GETTEXT= yes
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
.if defined(WITH_LINUX)
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 !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
.endif
.if defined(WITH_LINUX)
(cd ${WRKSRC} && ${INSTALL_PROGRAM} linux-${PORTNAME} ${PREFIX}/bin)
.endif
.include <bsd.port.mk>