aboutsummaryrefslogtreecommitdiff
path: root/multimedia/vdr-plugin-xineliboutput
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2017-02-01 09:01:23 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2017-02-01 09:01:23 +0000
commit5a5029254c9ddbf4c65dcb6fdbfd584c57da61ea (patch)
tree487075f5f9f79d1ac5db5b73c16530b29061506f /multimedia/vdr-plugin-xineliboutput
parent07dae93b30dd825691eae51c09a97d2b8ff38308 (diff)
downloadports-5a5029254c9ddbf4c65dcb6fdbfd584c57da61ea.tar.gz
ports-5a5029254c9ddbf4c65dcb6fdbfd584c57da61ea.zip
Notes
Diffstat (limited to 'multimedia/vdr-plugin-xineliboutput')
-rw-r--r--multimedia/vdr-plugin-xineliboutput/Makefile59
1 files changed, 26 insertions, 33 deletions
diff --git a/multimedia/vdr-plugin-xineliboutput/Makefile b/multimedia/vdr-plugin-xineliboutput/Makefile
index b105dfcf0053..8e5a96c94c1f 100644
--- a/multimedia/vdr-plugin-xineliboutput/Makefile
+++ b/multimedia/vdr-plugin-xineliboutput/Makefile
@@ -12,43 +12,36 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:snapshot
MAINTAINER= ports@FreeBSD.org
COMMENT= Video Disk Recorder - xineliboutput plugin/viewer
-LIB_DEPENDS+= libxine.so:multimedia/libxine \
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+LIB_DEPENDS= libxine.so:multimedia/libxine \
libavutil.so:multimedia/ffmpeg \
libdbus-glib-1.so:devel/dbus-glib \
libvdpau.so:multimedia/libvdpau
PATCH_STRIP= -p1
USES= pkgconfig tar:bzip2
-USE_XORG+= xrandr xrender
+USE_XORG= xrandr xrender
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --cc="${CC}" --cxx="${CXX}" --add-cflags=-I${VDRDIR}
USE_GL= gl glu glut
-PORTDOCS= COPYING README HISTORY
-PORTEXAMPLES= xine
WRKSRC= ${WRKDIR}/vdr-${PLUGIN}
-XINE_PLUGINSDIR= lib/xine/plugins/2.5
-
-OPTIONS_DEFINE= LIBBLURAY LIBEXTRACTOR EXAMPLES DOCS
-
-HAS_CONFIGURE= yes
+XINE_PLUGINSDIR=lib/xine/plugins/2.5
-.include "${.CURDIR}/../vdr/Makefile.plugins"
-
-.include <bsd.port.pre.mk>
+PORTDOCS= README HISTORY
+PORTEXAMPLES= xine
-PLIST_SUB+= XINE_PLUGINSDIR=${XINE_PLUGINSDIR}
+PLIST_SUB= XINE_PLUGINSDIR=${XINE_PLUGINSDIR}
-CONFIGURE_ARGS+= --cc="${CC}" --cxx="${CXX}" --add-cflags=-I${VDRDIR}
+OPTIONS_DEFINE= LIBBLURAY LIBEXTRACTOR EXAMPLES DOCS
-.if ${PORT_OPTIONS:MLIBEXTRACTOR}
-LIB_DEPENDS+= libextractor.so:textproc/libextractor
-.else
-CONFIGURE_ARGS+= --disable-libextractor
-.endif
+LIBEXTRACTOR_LIB_DEPENDS= libextractor.so:textproc/libextractor
+LIBEXTRACTOR_CONFIGURE_ENABLE= libextractor
+LIBBLURAY_LIB_DEPENDS= libbluray.so:multimedia/libbluray
+LIBBLURAY_CONFIGURE_ENABLE= libbluray
-.if ${PORT_OPTIONS:MLIBBLURAY}
-LIB_DEPENDS+= libbluray.so:multimedia/libbluray
-.else
-CONFIGURE_ARGS+= --disable-libbluray
-.endif
+.include "${.CURDIR}/../vdr/Makefile.plugins"
post-patch: post-patch-plugin
# clang doesn't know -MG
@@ -56,19 +49,19 @@ post-patch: post-patch-plugin
${WRKSRC}/black_720x576.c ${WRKSRC}/vdrlogo_720x576.c
pre-install:
- ${MKDIR} ${STAGEDIR}${PREFIX}/lib/vdr
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/vdr
post-install: post-install-pluginlocales
- ${MKDIR} ${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}
${INSTALL_DATA} ${WRKSRC}/examples/allowed_hosts.conf \
${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}/allowed_hosts.conf.sample
-.if ${PORT_OPTIONS:MEXAMPLES}
- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/xine
+
+post-install-EXAMPLES-on:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/xine
${INSTALL_DATA} ${FILESDIR}/keymap ${STAGEDIR}${EXAMPLESDIR}/xine
-.endif
-.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>
+.include <bsd.port.mk>