aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-02-13 17:01:32 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-02-13 17:01:32 +0800
commitcb071cff9f9676ee52534f7b8a9efc7562a9a94c (patch)
treec5a448d87326b424d5cf697bda4bf992ebd51373 /multimedia
parent57ddc6061bcf034b07516bc1984a5f5cbe6b7e68 (diff)
downloadfreebsd-ports-gnome-cb071cff9f9676ee52534f7b8a9efc7562a9a94c.tar.gz
freebsd-ports-gnome-cb071cff9f9676ee52534f7b8a9efc7562a9a94c.tar.zst
freebsd-ports-gnome-cb071cff9f9676ee52534f7b8a9efc7562a9a94c.zip
- Add LICENSE
- Remove bogus HAVE_CONFIGURE - Don't install license with docs - Switch to options helpers
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/vdr-plugin-softhddevice/Makefile35
1 files changed, 18 insertions, 17 deletions
diff --git a/multimedia/vdr-plugin-softhddevice/Makefile b/multimedia/vdr-plugin-softhddevice/Makefile
index 6f7a6e04c8e4..059eba52e3e2 100644
--- a/multimedia/vdr-plugin-softhddevice/Makefile
+++ b/multimedia/vdr-plugin-softhddevice/Makefile
@@ -11,36 +11,37 @@ DISTNAME= ${PORTNAME:S/-plugin-/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERS
MAINTAINER= ports@FreeBSD.org
COMMENT= Video Disk Recorder - softhddevice plugin
-LIB_DEPENDS+= libavcodec0.so:multimedia/ffmpeg0 \
+LICENSE= AGPLv3
+LICENSE_FILE= ${WRKSRC}/AGPL-3.0.txt
+
+LIB_DEPENDS= libavcodec0.so:multimedia/ffmpeg0 \
libvdpau.so:multimedia/libvdpau \
libxcb-keysyms.so:x11/xcb-util-keysyms \
libasound.so:audio/alsa-lib
USES= compiler:features pkgconfig tar:tgz
-USE_XORG+= xv x11 xcb xinerama
-USE_GL+= gl glu
+USE_XORG= xv x11 xcb xinerama
+USE_GL= gl glu
PATCH_STRIP= -p1
-HAVE_CONFIGURE= yes
-PORTDOCS= AGPL-3.0.txt ChangeLog README.txt
CONFIG+= -DLOCALBASE=\\\"${LOCALBASE}\\\"
CONFIG+= -DUSE_VDPAU
CONFIG+= -DUSE_OSS
-MAKE_ARGS+= CONFIG="${CONFIG}"
+MAKE_ARGS= CONFIG="${CONFIG}"
WRKSRC= ${WRKDIR}/${PLUGIN}-${PORTVERSION}
-.include "${.CURDIR}/../vdr/Makefile.plugins"
+PORTDOCS= ChangeLog README.txt
OPTIONS_DEFINE= VAAPI DOCS NLS
VAAPI_DESC= Enable vaapi support (experimental)
-.include <bsd.port.pre.mk>
+VAAPI_LIB_DEPENDS= libva.so:multimedia/libva
+VAAPI_VARS= CONFIG+=-DUSE_VAAPI
-.if ${PORT_OPTIONS:MVAAPI}
-LIB_DEPENDS+= libva.so:multimedia/libva
-CONFIG+= -DUSE_VAAPI
-.endif
+.include "${.CURDIR}/../vdr/Makefile.plugins"
-.if !(${COMPILER_TYPE} == clang)
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} != clang
USE_GCC= yes
.endif
@@ -54,12 +55,12 @@ post-patch: post-patch-plugin
${WRKSRC}/*.c ${WRKSRC}/*.cpp
pre-install:
- ${MKDIR} ${STAGEDIR}${PREFIX}/lib/vdr
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/vdr
post-install: post-install-pluginlocales
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
-.endif
.include <bsd.port.post.mk>