Date: Fri, 8 Jan 2016 15:02:52 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r405561 - head/multimedia/w_scan Message-ID: <201601081502.u08F2qEL074635@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Fri Jan 8 15:02:52 2016 New Revision: 405561 URL: https://svnweb.freebsd.org/changeset/ports/405561 Log: - Add LICENSE - Pet portlint - Switch to options helpers - Switch to USES=localbase Modified: head/multimedia/w_scan/Makefile Modified: head/multimedia/w_scan/Makefile ============================================================================== --- head/multimedia/w_scan/Makefile Fri Jan 8 14:50:55 2016 (r405560) +++ head/multimedia/w_scan/Makefile Fri Jan 8 15:02:52 2016 (r405561) @@ -9,40 +9,38 @@ MASTER_SITES= http://wirbel.htpc-forum.d MAINTAINER= ports@FreeBSD.org COMMENT= Perform frequency scans for DVB and ATSC transmissions -BUILD_DEPENDS= v4l_compat>=1.0.20120501:${PORTSDIR}/multimedia/v4l_compat +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING -OPTIONS_DEFINE= LINUX DOCS -LINUX_DESC= Install Linux binary too (linux-w_scan) +BUILD_DEPENDS= v4l_compat>=1.0.20120501:${PORTSDIR}/multimedia/v4l_compat -.include <bsd.port.options.mk> +PATCH_STRIP= -lp1 GNU_CONFIGURE= yes -PATCH_STRIP= -lp1 -USES+= gettext iconv tar:bzip2 -CPPFLAGS+= -I"${LOCALBASE}/include" -LDFLAGS+= -L"${LOCALBASE}/lib\ ${ICONV_LIB}" +USES= gettext iconv localbase tar:bzip2 +LDFLAGS+= ${ICONV_LIB} +NO_WRKSUBDIR= yes + PORTDOCS= COPYING ChangeLog README -PLIST_FILES= bin/${PORTNAME} -PLIST_FILES+= man/man1/${PORTNAME}.1.gz -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 +PLIST_FILES= bin/${PORTNAME} \ + man/man1/${PORTNAME}.1.gz + +OPTIONS_DEFINE= LINUX DOCS + +LINUX_DESC= Install Linux binary too (linux-w_scan) +LINUX_USE= LINUX=yes +LINUX_RUN_DEPENDS= linux_dvbwrapper-kmod>=1.0:${PORTSDIR}/multimedia/linux_dvbwrapper-kmod +LINUX_PLIST_FILES= bin/linux-${PORTNAME} post-patch: - ${REINPLACE_CMD} -f ${FILESDIR}/types.sed ${WRKSRC}/configure ${WRKSRC}/*.c ${WRKSRC}/*.h - ${CP} ${WRKSRC}/${PORTNAME} ${WRKSRC}/linux-${PORTNAME} + @${REINPLACE_CMD} -f ${FILESDIR}/types.sed ${WRKSRC}/configure ${WRKSRC}/*.c ${WRKSRC}/*.h + @${CP} ${WRKSRC}/${PORTNAME} ${WRKSRC}/linux-${PORTNAME} -post-install: -.if ${PORT_OPTIONS:MDOCS} +post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) -.endif -.if ${PORT_OPTIONS:MLINUX} + +post-install-LINUX-on: (cd ${WRKSRC} && ${INSTALL_PROGRAM} linux-${PORTNAME} ${STAGEDIR}${PREFIX}/bin) -.endif .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601081502.u08F2qEL074635>