Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2016 09:00:17 +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: r426094 - in head/multimedia/szap-s2: . files
Message-ID:  <201611140900.uAE90HmC086216@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Nov 14 09:00:17 2016
New Revision: 426094
URL: https://svnweb.freebsd.org/changeset/ports/426094

Log:
  - Add LICENSE
  - Simplify patching
  - Cosmetic fixes
  - Switch to options helpers

Modified:
  head/multimedia/szap-s2/Makefile
  head/multimedia/szap-s2/files/patch-teletext

Modified: head/multimedia/szap-s2/Makefile
==============================================================================
--- head/multimedia/szap-s2/Makefile	Mon Nov 14 08:52:52 2016	(r426093)
+++ head/multimedia/szap-s2/Makefile	Mon Nov 14 09:00:17 2016	(r426094)
@@ -9,21 +9,27 @@ MASTER_SITES=	LOCAL/nox
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Simple zapping tool for the Linux DVB S2 API
 
+LICENSE=	GPLv2+
+
 BUILD_DEPENDS=  ${LOCALBASE}/include/linux/dvb/frontend.h:multimedia/v4l_compat
 
 USES=		gmake tar:bzip2
-PATCH_STRIP=	-p1
 USE_CSTD=	gnu89
-MAKE_ARGS=	INCLUDE=-I"${LOCALBASE}/include"
-MAKE_ARGS+=	CC="${CC}"
-MAKE_ARGS+=	CXX="${CXX}"
+MAKE_ARGS=	INCLUDE=-I"${LOCALBASE}/include" \
+		CC="${CC}" \
+		CXX="${CXX}"
 WRKSRC=		${WRKDIR}/szap-s2-e34f73b254db
+
 PORTDOCS=	README
 PLIST_FILES=	bin/szap-s2
 
+OPTIONS_DEFINE=	DOCS
+
 do-install:
-	(cd ${WRKSRC} && ${INSTALL_PROGRAM} szap-s2 ${STAGEDIR}/${PREFIX}/bin)
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
-	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
+	${INSTALL_PROGRAM} ${WRKSRC}/szap-s2 ${STAGEDIR}/${PREFIX}/bin
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/multimedia/szap-s2/files/patch-teletext
==============================================================================
--- head/multimedia/szap-s2/files/patch-teletext	Mon Nov 14 08:52:52 2016	(r426093)
+++ head/multimedia/szap-s2/files/patch-teletext	Mon Nov 14 09:00:17 2016	(r426094)
@@ -1,5 +1,5 @@
---- a/szap-s2.c
-+++ b/szap-s2.c
+--- szap-s2.c.orig	2010-01-29 22:54:19 UTC
++++ szap-s2.c
 @@ -206,6 +206,7 @@ static char *usage_str =
      "     -i        : run interactively, allowing you to type in channel names\n"
      "     -p        : add pat and pmt to TS recording (implies -r)\n"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611140900.uAE90HmC086216>