2014-04-28 23:31:31 +02:00
|
|
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
2012-08-24 23:15:59 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gtk-youtube-viewer
|
2014-07-05 10:04:22 +02:00
|
|
|
PORTVERSION= 3.1.1
|
2012-11-14 20:10:45 +01:00
|
|
|
CATEGORIES= multimedia perl5
|
2012-08-24 23:15:59 +02:00
|
|
|
|
2014-04-28 23:31:31 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-08-24 23:15:59 +02:00
|
|
|
COMMENT= GTK Search and play YouTube videos streaming in MPlayer
|
|
|
|
|
2014-07-05 10:04:22 +02:00
|
|
|
LICENSE= ART10 GPLv1
|
2014-01-20 02:24:53 +01:00
|
|
|
LICENSE_COMB= dual
|
2012-08-24 23:15:59 +02:00
|
|
|
|
2013-03-17 05:24:01 +01:00
|
|
|
# According to Build.PL
|
2014-07-05 10:04:22 +02:00
|
|
|
BUILD_DEPENDS= p5-MIME-Base64>0:${PORTSDIR}/converters/p5-MIME-Base64 \
|
|
|
|
p5-Data-Dump>0:${PORTSDIR}/devel/p5-Data-Dump \
|
|
|
|
p5-File-Path>0:${PORTSDIR}/devel/p5-File-Path \
|
|
|
|
p5-File-Temp>0:${PORTSDIR}/devel/p5-File-Temp \
|
|
|
|
p5-Getopt-Long>0:${PORTSDIR}/devel/p5-Getopt-Long \
|
|
|
|
p5-PathTools>0:${PORTSDIR}/devel/p5-PathTools \
|
|
|
|
p5-ReadLine-Gnu>0:${PORTSDIR}/devel/p5-ReadLine-Gnu \
|
|
|
|
p5-Term-ANSIColor>0:${PORTSDIR}/devel/p5-Term-ANSIColor \
|
|
|
|
p5-Test-More-UTF8>0:${PORTSDIR}/devel/p5-Test-More-UTF8 \
|
|
|
|
p5-Thread-Queue>0:${PORTSDIR}/devel/p5-Thread-Queue \
|
|
|
|
p5-threads>0:${PORTSDIR}/devel/p5-threads \
|
|
|
|
p5-Scalar-List-Utils>0:${PORTSDIR}/lang/p5-Scalar-List-Utils \
|
|
|
|
p5-Socket>0:${PORTSDIR}/net/p5-Socket \
|
|
|
|
p5-XML-Fast>0:${PORTSDIR}/net/p5-XML-Fast \
|
|
|
|
p5-Text-CharWidth>0:${PORTSDIR}/textproc/p5-Text-CharWidth \
|
|
|
|
p5-Text-ParseWords>0:${PORTSDIR}/textproc/p5-Text-ParseWords \
|
|
|
|
p5-Text-Tabs+Wrap>0:${PORTSDIR}/textproc/p5-Text-Tabs+Wrap \
|
|
|
|
p5-LWP-Protocol-https>0:${PORTSDIR}/www/p5-LWP-Protocol-https \
|
|
|
|
p5-libwww>0:${PORTSDIR}/www/p5-libwww
|
2012-11-14 20:10:45 +01:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS} \
|
2012-08-24 23:15:59 +02:00
|
|
|
mplayer:${PORTSDIR}/multimedia/mplayer
|
|
|
|
|
2012-11-14 20:10:45 +01:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= trizen
|
|
|
|
GH_PROJECT= youtube-viewer
|
2014-07-05 10:04:22 +02:00
|
|
|
GH_COMMIT= e3d45f7
|
2012-08-24 23:15:59 +02:00
|
|
|
|
2014-07-05 10:04:22 +02:00
|
|
|
WRKSRC_SUBDIR= WWW-YoutubeViewer
|
2012-08-24 23:15:59 +02:00
|
|
|
|
2014-07-05 10:04:22 +02:00
|
|
|
USES= perl5 shebangfix
|
|
|
|
SHEBANG_FILES= bin/gtk-youtube-viewer bin/youtube-viewer
|
2013-07-31 08:54:09 +02:00
|
|
|
USE_PERL5= 5.16+ patch modbuild
|
2014-07-05 10:04:22 +02:00
|
|
|
CONFIGURE_ARGS+=${DATADIR}
|
2012-08-24 23:15:59 +02:00
|
|
|
|
2014-07-05 10:04:22 +02:00
|
|
|
OPTIONS_DEFINE= GCAP GTK2
|
|
|
|
OPTIONS_DEFAULT= GCAP GTK2
|
|
|
|
OPTIONS_SUB= yes
|
2012-08-24 23:15:59 +02:00
|
|
|
|
2014-07-05 10:04:22 +02:00
|
|
|
GCAP_DESC= YouTube closed captions support
|
2014-01-20 02:24:53 +01:00
|
|
|
GCAP_RUN_DEPENDS= ${LOCALBASE}/bin/gcap:${PORTSDIR}/multimedia/gcap
|
2014-07-05 10:04:22 +02:00
|
|
|
GTK2_BUILD_DEPENDS= p5-File-ShareDir>0:${PORTSDIR}/devel/p5-File-ShareDir \
|
|
|
|
p5-Gtk2>0:${PORTSDIR}/x11-toolkits/p5-Gtk2
|
|
|
|
GTK2_RUN_DEPENDS= p5-File-ShareDir>0:${PORTSDIR}/devel/p5-File-ShareDir \
|
|
|
|
p5-Gtk2>0:${PORTSDIR}/x11-toolkits/p5-Gtk2
|
|
|
|
GTK2_CONFIGURE_ON= --gtk-youtube-viewer
|
2013-03-22 21:41:59 +01:00
|
|
|
|
2014-01-20 02:24:53 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2013-03-22 21:41:59 +01:00
|
|
|
|
2012-11-14 20:10:45 +01:00
|
|
|
post-install:
|
|
|
|
.if ${PORT_OPTIONS:MGTK2}
|
2014-01-20 02:24:53 +01:00
|
|
|
${LN} -sf \
|
2014-02-17 10:24:41 +01:00
|
|
|
${SITE_PERL}/auto/share/dist/WWW-YoutubeViewer/gtk-youtube-viewer.desktop \
|
2014-01-20 02:24:53 +01:00
|
|
|
${STAGEDIR}${DESKTOPDIR}
|
|
|
|
${LN} -sf \
|
2014-07-05 10:04:22 +02:00
|
|
|
${SITE_PERL}/auto/share/dist/WWW-YoutubeViewer/icons/gtk-youtube-viewer.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps
|
2012-11-14 20:10:45 +01:00
|
|
|
.endif
|
2012-08-24 23:15:59 +02:00
|
|
|
|
2012-11-14 20:10:45 +01:00
|
|
|
regression-test: build
|
|
|
|
cd ${WRKSRC} && ${PERL} ./Build test
|
2012-08-24 23:15:59 +02:00
|
|
|
|
2014-07-05 10:04:22 +02:00
|
|
|
.include <bsd.port.mk>
|