From owner-svn-ports-all@freebsd.org Fri Jan 8 15:02:53 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 97500A68A1A; Fri, 8 Jan 2016 15:02:53 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B3EF1C82; Fri, 8 Jan 2016 15:02:53 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u08F2qGT074636; Fri, 8 Jan 2016 15:02:52 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u08F2qEL074635; Fri, 8 Jan 2016 15:02:52 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201601081502.u08F2qEL074635@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Fri, 8 Jan 2016 15:02:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r405561 - head/multimedia/w_scan X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2016 15:02:53 -0000 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 +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