Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jan 2017 09:01:19 +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: r432613 - head/multimedia/vdr-plugin-upnp
Message-ID:  <201701280901.v0S91JJP081656@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat Jan 28 09:01:19 2017
New Revision: 432613
URL: https://svnweb.freebsd.org/changeset/ports/432613

Log:
  - Add LICENSE
  - Remove bogus HAVE_CONFIGURE
  - Don't install license with docs
  - Switch to options helpers
  - Pet portlint

Modified:
  head/multimedia/vdr-plugin-upnp/Makefile

Modified: head/multimedia/vdr-plugin-upnp/Makefile
==============================================================================
--- head/multimedia/vdr-plugin-upnp/Makefile	Sat Jan 28 04:41:44 2017	(r432612)
+++ head/multimedia/vdr-plugin-upnp/Makefile	Sat Jan 28 09:01:19 2017	(r432613)
@@ -11,7 +11,10 @@ DISTNAME=	${PORTNAME:S/-plugin-/-/}-${DI
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Video Disk Recorder - UPnP/DLNA plugin (alpha!)
 
-LIB_DEPENDS+=	libavcodec0.so:multimedia/ffmpeg0 \
+LICENSE=	GPLv2+
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+LIB_DEPENDS=	libavcodec0.so:multimedia/ffmpeg0 \
 		libboost_system.so:devel/boost-libs \
 		libupnp.so:devel/upnp \
 		libsqlite3.so:databases/sqlite3
@@ -19,13 +22,15 @@ LIB_DEPENDS+=	libavcodec0.so:multimedia/
 USES=		tar:tgz
 DIST_SUBDIR=	vdr
 PATCH_STRIP=	-p1
-HAVE_CONFIGURE=	yes
-PORTDOCS=	COPYING README HISTORY
 WRKSRC=		${WRKDIR}/${PLUGIN}-${DISTVERSION:S/a2//}
 
 CXXFLAGS+=	-L${LOCALBASE}/lib/ffmpeg0 -lavcodec0 -lavformat0 -fPIC
 MAKE_ARGS=	LIBS="-I${LOCALBASE}/include/ffmpeg0" CXXFLAGS="${CXXFLAGS}"
 
+PORTDOCS=	README HISTORY
+
+OPTIONS_DEFINE=	DOCS NLS
+
 .include	"${.CURDIR}/../vdr/Makefile.plugins"
 
 post-patch: post-patch-plugin
@@ -35,17 +40,19 @@ post-patch: post-patch-plugin
 		${WRKSRC}/Makefile
 
 pre-install:
-	${MKDIR} ${STAGEDIR}${PREFIX}/lib/vdr
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/vdr
 
 post-install: post-install-pluginlocales
 	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/icons
-	@${INSTALL_DATA} ${WRKSRC}/http/icons/* \
+	${INSTALL_DATA} ${WRKSRC}/http/icons/* \
 		${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/icons
 	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/xml
-	@${INSTALL_DATA} ${WRKSRC}/http/xml/* \
+	${INSTALL_DATA} ${WRKSRC}/http/xml/* \
 		${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/xml
 	@${MKDIR} ${STAGEDIR}/var/cache/vdr/${PLUGIN}
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
 
 .include <bsd.port.mk>



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