Lines 6-15
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= gtk-youtube-viewer |
8 |
PORTNAME= gtk-youtube-viewer |
9 |
PORTVERSION= 2.0.5 |
9 |
PORTVERSION= 3.0.3 |
10 |
CATEGORIES= multimedia |
10 |
CATEGORIES= multimedia perl5 |
11 |
MASTER_SITES= GOOGLE_CODE |
11 |
MASTER_SITES= GOOGLE_CODE |
12 |
PROJECTHOST= trizen |
12 |
PROJECTHOST= trizen |
|
|
13 |
DISTNAME= youtube-viewer |
13 |
|
14 |
|
14 |
MAINTAINER= nemysis@gmx.ch |
15 |
MAINTAINER= nemysis@gmx.ch |
15 |
COMMENT= GTK Search and play YouTube videos streaming in MPlayer |
16 |
COMMENT= GTK Search and play YouTube videos streaming in MPlayer |
Lines 21-42
Link Here
|
21 |
p5-Term-ANSIColor>=0:${PORTSDIR}/devel/p5-Term-ANSIColor \ |
22 |
p5-Term-ANSIColor>=0:${PORTSDIR}/devel/p5-Term-ANSIColor \ |
22 |
p5-Gtk2>=0:${PORTSDIR}/x11-toolkits/p5-Gtk2 \ |
23 |
p5-Gtk2>=0:${PORTSDIR}/x11-toolkits/p5-Gtk2 \ |
23 |
p5-LWP-Protocol-https>=0:${PORTSDIR}/www/p5-LWP-Protocol-https \ |
24 |
p5-LWP-Protocol-https>=0:${PORTSDIR}/www/p5-LWP-Protocol-https \ |
|
|
25 |
p5-Data-Dump>=0:${PORTSDIR}/devel/p5-Data-Dump \ |
26 |
p5-ReadLine-Gnu>=0:${PORTSDIR}/devel/p5-ReadLine-Gnu \ |
27 |
p5-Test-More-UTF8>=0:${PORTSDIR}/devel/p5-Test-More-UTF8 \ |
24 |
mplayer:${PORTSDIR}/multimedia/mplayer |
28 |
mplayer:${PORTSDIR}/multimedia/mplayer |
25 |
|
29 |
|
26 |
OPTIONS_DEFINE= GCAP |
30 |
WRKSRC= ${WRKDIR}/WWW-YoutubeViewer |
27 |
GCAP_DESC= GCAP support |
|
|
28 |
|
29 |
WRKSRC= ${WRKDIR}/${PORTNAME}/src |
30 |
|
31 |
|
31 |
USE_PERL5_RUN= yes |
32 |
USE_PERL5_RUN= yes |
32 |
NO_BUILD= yes |
33 |
NO_BUILD= yes |
33 |
|
34 |
|
34 |
PLIST_FILES= bin/${PORTNAME} \ |
35 |
MAN1= youtube-viewer.1 |
35 |
share/pixmaps/${PORTNAME}.png \ |
36 |
MAN3= WWW::YoutubeViewer.3 |
36 |
share/applications/${PORTNAME}.desktop |
37 |
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} |
37 |
PLIST_DIRSTRY= share/applications |
38 |
|
38 |
|
39 |
PORTDOCS= Changes README |
39 |
PORTDATA= * |
40 |
|
|
|
41 |
OPTIONS_DEFINE= GTK GCAP |
42 |
OPTIONS_DEFAULT=GTK GCAP |
43 |
GTK_DESC= Enable GTK support |
44 |
GCAP_DESC= Enable GCAP support |
40 |
|
45 |
|
41 |
.include <bsd.port.options.mk> |
46 |
.include <bsd.port.options.mk> |
42 |
|
47 |
|
Lines 44-66
Link Here
|
44 |
RUN_DEPENDS+= ${LOCALBASE}/bin/gcap:${PORTSDIR}/multimedia/gcap |
49 |
RUN_DEPENDS+= ${LOCALBASE}/bin/gcap:${PORTSDIR}/multimedia/gcap |
45 |
.endif |
50 |
.endif |
46 |
|
51 |
|
|
|
52 |
.if defined(WITH_GTK) |
53 |
PLIST_SUB+= GTK="" |
54 |
.else |
55 |
PLIST_SUB+= GTK="@comment " |
56 |
.endif |
57 |
|
47 |
post-patch: |
58 |
post-patch: |
48 |
@(cd ${WRKSRC} && ${REINPLACE_CMD} -e "s|#!/usr/bin/perl|#!${PERL}|g" gtk-youtube-viewer.pl \ |
59 |
@(cd ${WRKSRC} && ${REINPLACE_CMD} \ |
49 |
youtube-viewer && ${REINPLACE_CMD} -e "s|/usr/share/|${PREFIX}/share/|g" gtk-youtube-viewer) |
60 |
-e 's|/usr/bin/perl|${PERL}|g' \ |
|
|
61 |
-e 's|/usr/bin/|${PREFIX}/bin/|g' \ |
62 |
-e 's|/usr/share/|${PREFIX}/share/|g' \ |
63 |
-e 's|usr share|${PREFIX}/share|' \ |
64 |
Build.PL bin/gtk-youtube-viewer bin/youtube-viewer) |
50 |
|
65 |
|
51 |
do-install: |
66 |
do-install: |
52 |
${MKDIR} ${DATADIR} |
67 |
cd ${WRKSRC} && ${PERL} ./Build.PL && ./Build |
53 |
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin |
68 |
cd ${WRKSRC}/blib && ${GZIP_CMD} -f libdoc/WWW::YoutubeViewer.3 bindoc/youtube-viewer.1 |
54 |
${INSTALL_SCRIPT} ${WRKSRC}/youtube-viewer ${DATADIR} |
69 |
|
55 |
|
70 |
.if ${PORT_OPTIONS:MGTK} |
56 |
# Data |
71 |
cd ${WRKSRC} && ${PERL} ./Build.PL --gtk-youtube-viewer |
57 |
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "icons lib" ${DATADIR}) |
72 |
${INSTALL_SCRIPT} ${WRKSRC}/bin/gtk-youtube-viewer ${PREFIX}/bin |
58 |
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.pl ${DATADIR} |
73 |
.endif |
59 |
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.glade ${DATADIR} |
74 |
|
60 |
|
75 |
${INSTALL_SCRIPT} ${WRKSRC}/bin/youtube-viewer ${PREFIX}/bin |
61 |
# Pixmaps and Desktop |
76 |
${MKDIR} ${PREFIX}/${SITE_PERL_REL}/WWW |
62 |
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.png ${PREFIX}/share/pixmaps/ |
77 |
${INSTALL_DATA} ${WRKSRC}/lib/WWW/YoutubeViewer.pm ${PREFIX}/${SITE_PERL_REL}/WWW |
63 |
${MKDIR} ${PREFIX}/share/applications |
78 |
|
64 |
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/applications/ |
79 |
post-install: |
|
|
80 |
${INSTALL_MAN} ${WRKSRC}/blib/bindoc/${MAN1}.gz ${MAN1PREFIX}/man/man1 |
81 |
${MKDIR} ${PREFIX}/lib/perl5/${PERL_VERSION}/man/man3 |
82 |
${INSTALL_MAN} ${WRKSRC}/blib/libdoc/WWW::YoutubeViewer.3.gz ${MAN3PREFIX}/man/man3 |
83 |
|
84 |
.if ${PORT_OPTIONS:MDOCS} |
85 |
${MKDIR} ${DOCSDIR} |
86 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} |
87 |
.endif |
65 |
|
88 |
|
66 |
.include <bsd.port.mk> |
89 |
.include <bsd.port.mk> |