View | Details | Raw Unified | Return to bug 191811 | Differences between
and this patch

Collapse All | Expand All

(-)audio/pacpl/Makefile (-255 / +93 lines)
Lines 2-276 Link Here
2
# $FreeBSD: head/audio/pacpl/Makefile 360923 2014-07-06 15:28:14Z bapt $
2
# $FreeBSD: head/audio/pacpl/Makefile 360923 2014-07-06 15:28:14Z bapt $
3
3
4
PORTNAME=	pacpl
4
PORTNAME=	pacpl
5
PORTVERSION=	4.0.5
5
PORTVERSION=	5.0.1
6
PORTREVISION=	8
7
CATEGORIES=	audio
6
CATEGORIES=	audio
8
MASTER_SITES=	SF
7
MASTER_SITES=	SF
9
8
10
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Perl Audio Converter
10
COMMENT=	Perl Audio Converter
12
11
13
USES=		shebangfix perl5
12
LICENSE=	GPLv3 # (or later)
14
NO_STAGE=	yes
15
ONLY_FOR_ARCHS=	i386 amd64
16
NO_BUILD=	yes
17
18
OPTIONS_DEFINE=	BONK CDPARANOIA CDDB FAAC FAAD FFMPEG FLAC FLACTAG \
19
		LAME LAUDIO SNDFILE LPAC APE APETAG MP3TAG MP4TAG \
20
		MPP  MPLAYER OPTIMFROG VORBIS VORBISTAG SHORTEN \
21
		SOX SPEEX TOOLAME TTA WAVPACK WMATAG KDE4 AMAROK NORELANGS \
22
		DOCS
23
24
OPTIONS_DEFAULT=	CDPARANOIA CDDB FAAD FFMPEG FLAC FLACTAG MP3TAG \
25
			VORBIS VORBISTAG
26
.if !defined(PACKAGE_BUILDING)
27
OPTIONS_DEFAULT=	LAME FAAC
28
.endif
29
30
BONK_DESC=	Enable Bonk support
31
AMAROK_DESC=	Enable Amarok integration (BROKEN)
32
APETAG_DESC=	Enable Monkey's tagging support
33
FLACTAG_DESC=	Enable FLAC tagging support
34
KDE4_DESC=	Enable Konqueror/Dolphin integration
35
LAUDIO_DESC=	Enable laudio support
36
LPAC_DESC=	Enable LPAC support
37
MP3TAG_DESC=	Enable MP3 tagging support
38
MP4TAG_DESC=	Enable MP4 tagging support
39
MPLAYER_DESC=	Enable Mplayer support
40
MPPTAG_DESC=	Enable Musepack tagging support
41
OPTIMFROG_DESC=	Enable OptimFROG support
42
VORBISTAG_DESC=	Enable Ogg/Vorbis tagging support
43
SHORTEN_DESC=	Enable Shorten support
44
SOX_DESC=	Enable SoX support
45
TOOLAME_DESC=	Enable tooLAME support
46
TTA_DESC=	Enable TTA support
47
WAVPACK_DESC=	Enable wavpack support
48
WMATAG_DESC=	Enable WMA tagging support
49
MORELANGS_DESC=	Enable Additional language support
50
51
MAN1=		pacpl.1
52
PACPL_PO=	en_US.po
53
13
54
SHEBANG_FILES=	pacpl plugins/amarok/pacx
14
RUN_DEPENDS=	p5-Audio-FLAC-Header>0:${PORTSDIR}/audio/p5-Audio-FLAC-Header \
15
		p5-Audio-Scan>0:${PORTSDIR}/audio/p5-Audio-Scan \
16
		p5-CDDB_get>0:${PORTSDIR}/audio/p5-CDDB_get \
17
		p5-MP3-Tag>0:${PORTSDIR}/audio/p5-MP3-Tag \
18
		p5-Parallel-ForkManager>0:${PORTSDIR}/devel/p5-Parallel-ForkManager \
19
		p5-Switch>0:${PORTSDIR}/lang/p5-Switch
20
21
NO_ARCH=	yes
22
23
USES=		perl5 shebangfix
24
SHEBANG_FILES=	pacpl plugins/gnome/nautilus/PACPL-Convert \
25
		plugins/kde/PACPL-Konvert
26
27
OPTIONS_DEFINE=		APE BONK CDPARANOIA DOCS FAAC FAAD FFMPEG KDE4 \
28
			LAME LAUDIO MUSEPACK MPLAYER OPTIMFROG OPUS \
29
			SHORTEN SNDFILE SOX SPEEX TOOLAME TTA VORBIS WAVPACK
30
OPTIONS_DEFAULT=	CDPARANOIA FAAC FAAD FFMPEG LAME VORBIS
31
OPTIONS_SUB=		yes
32
33
APE_RUN_DEPENDS=	mac:${PORTSDIR}/audio/mac
34
BONK_DESC=		Bonk lossy/lossless audio support
35
BONK_RUN_DEPENDS=	bonk:${PORTSDIR}/audio/bonk
36
CDPARANOIA_RUN_DEPENDS=	cdparanoia:${PORTSDIR}/audio/cdparanoia
37
FAAC_RUN_DEPENDS=	faac:${PORTSDIR}/audio/faac
38
FAAD_RUN_DEPENDS=	faad:${PORTSDIR}/audio/faad
39
FFMPEG_RUN_DEPENDS=	ffmpeg:${PORTSDIR}/multimedia/ffmpeg
40
KDE4_DESC=		Konqueror/Dolphin integration
41
KDE4_USE=		KDE4=kdehier
42
LAME_RUN_DEPENDS=	lame:${PORTSDIR}/audio/lame
43
LAUDIO_DESC=		Laudio support
44
LAUDIO_RUN_DEPENDS=	laudio:${PORTSDIR}/audio/linux-laudio
45
MPLAYER_RUN_DEPENDS=	mplayer:${PORTSDIR}/multimedia/mplayer
46
MUSEPACK_RUN_DEPENDS=	mppenc:${PORTSDIR}/audio/musepack
47
OPTIMFROG_DESC=		OptimFROG lossless audio support
48
OPTIMFROG_RUN_DEPENDS=	ofr:${PORTSDIR}/audio/optimfrog
49
OPUS_DESC=		Ogg Opus audio codec support
50
OPUS_RUN_DEPENDS=	opus:${PORTSDIR}/audio/opus
51
SNDFILE_RUN_DEPENDS=	sndfile-convert:${PORTSDIR}/audio/libsndfile
52
VORBIS_RUN_DEPENDS=	oggenc:${PORTSDIR}/audio/vorbis-tools
53
SHORTEN_DESC=		Shorten audio support
54
SHORTEN_RUN_DEPENDS=	shorten:${PORTSDIR}/audio/shorten
55
SOX_DESC=		Audio conversion support via SoX
56
SOX_RUN_DEPENDS=	sox:${PORTSDIR}/audio/sox
57
SPEEX_RUN_DEPENDS=	speexenc:${PORTSDIR}/audio/speex
58
TOOLAME_DESC=		TooLAME MP2 audio encoder support
59
TOOLAME_RUN_DEPENDS+=	toolame:${PORTSDIR}/audio/toolame
60
TTA_DESC=		TTA lossless audio support
61
TTA_RUN_DEPENDS=	ttaenc:${PORTSDIR}/audio/tta
62
VORBIS_RUN_DEPENDS=	vorbiscomment:${PORTSDIR}/audio/vorbis-tools
63
WAVPACK_RUN_DEPENDS=	wavpack:${PORTSDIR}/audio/wavpack
55
64
56
.include <bsd.port.options.mk>
65
.include <bsd.port.options.mk>
57
66
58
.if ${PORT_OPTIONS:MKDE4}
59
USE_KDE4=	kdehier
60
PLIST_SUB+=	KDE4SERVICEMENU="" KDE4_PREFIX="${KDE4_PREFIX}"
61
.else
62
PLIST_SUB+=	KDE4SERVICEMENU="@comment "
63
.endif
64
65
.if ${PORT_OPTIONS:MAMAROK}
66
BROKEN=		Amarok support temporarily broken in 4.05+
67
RUN_DEPENDS+=	amarok:${PORTSDIR}/audio/amarok
68
PLIST_SUB+=	AMAROK=""
69
.else
70
PLIST_SUB+=	AMAROK="@comment "
71
.endif
72
73
.include <bsd.port.pre.mk>
74
75
.if ${PERL_LEVEL} >= 501400
76
BUILD_DEPENDS+= p5-Switch>0:${PORTSDIR}/lang/p5-Switch
77
.endif
78
79
.if ${PORT_OPTIONS:MBONK}
80
RUN_DEPENDS+=	bonk:${PORTSDIR}/audio/bonk
81
.endif
82
83
.if ${PORT_OPTIONS:MCDDB}
84
RUN_DEPENDS+=	p5-CDDB_get>0:${PORTSDIR}/audio/p5-CDDB_get
85
.endif
86
87
.if ${PORT_OPTIONS:MCDPARANOIA}
88
RUN_DEPENDS+=	cdparanoia:${PORTSDIR}/audio/cdparanoia
89
.endif
90
91
.if ${PORT_OPTIONS:MFAAC}
92
RUN_DEPENDS+=	faac:${PORTSDIR}/audio/faac
93
.endif
94
95
.if ${PORT_OPTIONS:MFAAD}
96
RUN_DEPENDS+=	faad:${PORTSDIR}/audio/faad
97
.endif
98
99
.if ${PORT_OPTIONS:MFFMPEG}
100
RUN_DEPENDS+=	ffmpeg:${PORTSDIR}/multimedia/ffmpeg
101
.endif
102
103
.if ${PORT_OPTIONS:MFLAC}
104
RUN_DEPENDS+=	flac:${PORTSDIR}/audio/flac
105
.endif
106
107
.if ${PORT_OPTIONS:MFLACTAG}
108
RUN_DEPENDS+=	p5-Audio-FLAC-Header>0:${PORTSDIR}/audio/p5-Audio-FLAC-Header
109
.endif
110
111
.if ${PORT_OPTIONS:MLAME}
112
RUN_DEPENDS+=	lame:${PORTSDIR}/audio/lame
113
.endif
114
115
.if ${PORT_OPTIONS:MLAUDIO}
116
RUN_DEPENDS+=	laudio:${PORTSDIR}/audio/linux-laudio
117
.endif
118
119
.if ${PORT_OPTIONS:MSNDFILE}
120
RUN_DEPENDS+=	sndfile-convert:${PORTSDIR}/audio/libsndfile
121
.endif
122
123
.if ${PORT_OPTIONS:MLPAC}
124
RUN_DEPENDS+=	lpac:${PORTSDIR}/audio/lpac
125
.endif
126
127
.if ${PORT_OPTIONS:MAPE}
128
RUN_DEPENDS+=	mac:${PORTSDIR}/audio/mac
129
.endif
130
131
.if ${PORT_OPTIONS:MMPPTAG} || ${PORT_OPTIONS:MAPETAG}
132
RUN_DEPENDS+=	p5-Audio-Musepack>0:${PORTSDIR}/audio/p5-Audio-Musepack
133
.endif
134
135
.if ${PORT_OPTIONS:MMP3TAG}
136
RUN_DEPENDS+=	p5-MP3-Tag>0:${PORTSDIR}/audio/p5-MP3-Tag
137
.endif
138
139
.if ${PORT_OPTIONS:MMP4TAG}
140
RUN_DEPENDS+=	p5-MP4-Info>0:${PORTSDIR}/multimedia/p5-MP4-Info
141
.endif
142
143
.if ${PORT_OPTIONS:MMPLAYER}
144
RUN_DEPENDS+=	mplayer:${PORTSDIR}/multimedia/mplayer
145
.endif
146
147
.if ${PORT_OPTIONS:MMPPPACK}
148
RUN_DEPENDS+=	mppenc:${PORTSDIR}/audio/musepack
149
.endif
150
151
.if ${PORT_OPTIONS:MOPTIMFROG}
152
RUN_DEPENDS+=	ofr:${PORTSDIR}/audio/optimfrog
153
.endif
154
155
.if ${PORT_OPTIONS:MVORBISVORBIS}
156
RUN_DEPENDS+=	oggenc:${PORTSDIR}/audio/vorbis-tools
157
.endif
158
159
.if ${PORT_OPTIONS:MVORBISTAG}
160
RUN_DEPENDS+=	p5-Ogg-Vorbis-Header>0:${PORTSDIR}/audio/p5-Ogg-Vorbis-Header
161
.endif
162
163
.if ${PORT_OPTIONS:MSHORTEN}
164
RUN_DEPENDS+=	shorten:${PORTSDIR}/audio/shorten
165
.endif
166
167
.if ${PORT_OPTIONS:MSOX}
168
RUN_DEPENDS+=	sox:${PORTSDIR}/audio/sox
169
.endif
170
171
.if ${PORT_OPTIONS:MSPEEX}
172
RUN_DEPENDS+=	speexenc:${PORTSDIR}/audio/speex
173
.endif
174
175
.if ${PORT_OPTIONS:MTOOLAME}
176
RUN_DEPENDS+=	toolame:${PORTSDIR}/audio/toolame
177
.endif
178
179
.if ${PORT_OPTIONS:MTTA}
180
RUN_DEPENDS+=	ttaenc:${PORTSDIR}/audio/tta
181
.endif
182
183
.if ${PORT_OPTIONS:MWAVPACK}
184
RUN_DEPENDS+=	wavpack:${PORTSDIR}/audio/wavpack
185
.endif
186
187
.if ${PORT_OPTIONS:MWMATAG}
188
RUN_DEPENDS+=	p5-Audio-WMA>0:${PORTSDIR}/audio/p5-Audio-WMA
189
.endif
190
191
.if ${PORT_OPTIONS:MMORELANGS}
192
PACPL_PO+=	ca.po de.po es.po et.po fr_FR.po it_IT.po nl_NL.po pl.po pt.po ro.po ru_RU.po tr.po zh_CN.po
193
PLIST_SUB+=	ADDITIONAL_LANGS=""
194
.else
195
PLIST_SUB+=	ADDITIONAL_LANGS="@comment "
196
.endif
197
198
post-extract:
199
200
	@${ECHO_MSG} ""
201
	@${ECHO_MSG} " * * * * * * * * * W A R N I N G * * * * * * * * * * * * * "
202
	@${ECHO_MSG} ""
203
	@${ECHO_MSG} "WARNING: Integration options with Amarok, KDE4 Dolphin and"
204
	@${ECHO_MSG} "Konqueror now pull in their respective ports!"
205
	@${ECHO_MSG} ""
206
	@${ECHO_MSG} "The port now provides the option to select codecs, CD"
207
	@${ECHO_MSG} "burning, CDDB and tagging modules individually so you don't"
208
	@${ECHO_MSG} "have to install all by default.  You will still be offered"
209
	@${ECHO_MSG} "the ability to convert to and from these formats in the"
210
	@${ECHO_MSG} "pacpl options even if the codec is not installed."
211
	@${ECHO_MSG} ""
212
	@${ECHO_MSG} "CTRL-C now if you'd like to reconfigure, read the Changelog,"
213
	@${ECHO_MSG} "or README:"
214
	@${ECHO_MSG} ""
215
	@${ECHO_MSG} "	${WRKSRC}/ChangeLog"
216
	@${ECHO_MSG} "	${WRKSRC}/README"
217
	@${ECHO_MSG} ""
218
	@${ECHO_MSG} " * * * * * * * * * * * * * * * * * * * * * * * * * * * * * "
219
	@${ECHO_MSG} ""
220
	@sleep 5
221
222
post-patch:
67
post-patch:
223
	@${REINPLACE_CMD} -e 's@/etc/pacpl@${PREFIX}/etc/pacpl@; \
68
	@${REINPLACE_CMD} -e \
224
		s@/usr/share/pacpl@${DATADIR}@' ${WRKSRC}/pacpl ${WRKSRC}/pacpl.conf
69
		's|"/etc/pacpl|"${ETCDIR}| ; \
70
		 s|"/usr/share/pacpl|"${DATADIR}| ; \
71
		 s|^/etc/pacpl|${ETCDIR}|' ${WRKSRC}/pacpl
72
	@${REINPLACE_CMD} -e \
73
		's| /etc/pacpl| ${ETCDIR}|' ${WRKSRC}/pacpl.conf
74
	@${REINPLACE_CMD} -e \
75
		's|=/etc/pacpl|=${ETCDIR}| ; \
76
		 s|=/usr/bin|=${PREFIX}/libexec|' \
77
		${WRKSRC}/plugins/kde/pacpl.desktop
78
79
do-build:
80
	@(cd ${WRKSRC} && pod2man pacpl pacpl.1)
225
81
226
do-install:
82
do-install:
227
	${INSTALL_SCRIPT} ${WRKSRC}/pacpl ${PREFIX}/bin/
83
	(cd ${WRKSRC} && ${INSTALL_SCRIPT} pacpl \
228
	${MKDIR} ${PREFIX}/etc/pacpl/modules/
84
		${STAGEDIR}${PREFIX}/bin)
229
	${MKDIR} ${DATADIR}/locale/
85
	(cd ${WRKSRC} && ${INSTALL_MAN} pacpl.1 \
230
	${INSTALL_DATA} ${WRKSRC}/pacpl.conf ${PREFIX}/etc/pacpl/pacpl.conf.sample
86
		${STAGEDIR}${MANPREFIX}/man/man1)
231
	${INSTALL_DATA} ${WRKSRC}/codecs.conf ${PREFIX}/etc/pacpl/codecs.conf.sample
87
	@${MKDIR} ${STAGEDIR}${ETCDIR}
232
	${INSTALL_DATA} ${WRKSRC}/extra/sample.m ${PREFIX}/etc/pacpl/modules/sample.m
88
	(cd ${WRKSRC} && ${INSTALL_DATA} pacpl.png \
233
.for po in ${PACPL_PO}
89
		${STAGEDIR}${ETCDIR})
234
	${INSTALL_DATA} ${WRKSRC}/po/${po} ${DATADIR}/locale
90
.for i in codecs.conf pacpl.conf
91
	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
92
		${STAGEDIR}${ETCDIR}/${i}.sample)
235
.endfor
93
.endfor
236
	@pod2man ${WRKSRC}/pacpl ${WRKSRC}/pacpl.1
94
	@${MKDIR} ${STAGEDIR}${ETCDIR}/modules
237
	${INSTALL_MAN} ${WRKSRC}/pacpl.1 ${MAN1PREFIX}/man/man1/
95
	(cd ${WRKSRC}/extra && ${INSTALL_DATA} sample.m \
238
96
		${STAGEDIR}${ETCDIR}/modules)
97
	@${MKDIR} ${STAGEDIR}${DATADIR}/locale
98
	(cd ${WRKSRC}/po && ${INSTALL_DATA} *.po \
99
		${STAGEDIR}${DATADIR}/locale)
100
	${MKDIR} ${STAGEDIR}${DOCSDIR}
101
	(cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog README \
102
		${STAGEDIR}${DOCSDIR})
103
	(cd ${WRKSRC}/extra && ${INSTALL_DATA} README.module \
104
		${STAGEDIR}${DOCSDIR})
105
	(cd ${WRKSRC}/plugins/gnome/nautilus && ${INSTALL_SCRIPT} PACPL-Convert \
106
		${STAGEDIR}${PREFIX}/libexec)
239
.if ${PORT_OPTIONS:MKDE4}
107
.if ${PORT_OPTIONS:MKDE4}
240
	${INSTALL_DATA} ${WRKSRC}/plugins/konqueror/pacpl.desktop ${KDE4_PREFIX}/share/kde4/services/ServiceMenus
108
	(cd ${WRKSRC}/plugins/kde && ${INSTALL_SCRIPT} PACPL-Konvert \
109
		${STAGEDIR}${PREFIX}/libexec)
110
	(cd ${WRKSRC}/plugins/kde && ${INSTALL_DATA} pacpl.desktop \
111
		${STAGEDIR}${PREFIX}/share/kde4/services/ServiceMenus)
241
.endif
112
.endif
242
113
243
.if ${PORT_OPTIONS:MAMAROK}
114
.include <bsd.port.mk>
244
	${MKDIR} ${PREFIX}/share/apps/amarok/scripts/transcoding_pacx
245
	${INSTALL_DATA} ${WRKSRC}/plugins/amarok/pacx ${PREFIX}/share/apps/amarok/scripts/transcoding_pacx/transcoding_pacx.pl
246
	${PERL} -e 'print qq(name = Pacx\ntype = transcode)' > ${PREFIX}/share/apps/amarok/scripts/transcoding_pacx/transcoding_pacx.spec
247
.endif
248
249
.if ${PORT_OPTIONS:MDOCS}
250
	${MKDIR} ${DOCSDIR}
251
	${INSTALL_DATA} ${WRKSRC}/extra/README.module ${WRKSRC}/ChangeLog ${WRKSRC}/README ${DOCSDIR}
252
.endif
253
254
post-install:
255
	@${ECHO_MSG} ""
256
	@${PREFIX}/bin/pacpl -f
257
	@${ECHO_MSG} ""
258
	@${ECHO_MSG} "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * "
259
	@${ECHO_MSG} ""
260
	@${ECHO_MSG} "If you are updating from pacpl 3.x please do take"
261
	@${ECHO_MSG} "time to review the changes in 4.x:"
262
	@${ECHO_MSG} ""
263
	@${ECHO_MSG} "  http://sourceforge.net/p/pacpl/code/ci/master/tree/ChangeLog"
264
	@${ECHO_MSG} ""
265
	@${ECHO_MSG} "The command-line options are quite different in 4.x.  A"
266
	@${ECHO_MSG} "few features are no longer available and several are new. "
267
	@${ECHO_MSG} "You should also take a look at the two config files in"
268
	@${ECHO_MSG} "${PREFIX}/etc/pacpl."
269
	@${ECHO_MSG} ""
270
	@${ECHO_MSG} "The supported codecs and tagging available in this port"
271
	@${ECHO_MSG} "build are listed above this message."
272
	@${ECHO_MSG} ""
273
	@${ECHO_MSG} "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * "
274
	@${ECHO_MSG} ""
275
276
.include <bsd.port.post.mk>
(-)audio/pacpl/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (pacpl-4.0.5.tar.gz) = e6b3ff88acde0bdd7cb4469064afd58cce7fd6463b615713ff36caadbc668de7
1
SHA256 (pacpl-5.0.1.tar.gz) = 52d4373d76ba217293cd7a4d9513b0167f44281bebfe1d82b531fbf7e0828a65
2
SIZE (pacpl-4.0.5.tar.gz) = 110384
2
SIZE (pacpl-5.0.1.tar.gz) = 144849
(-)audio/pacpl/files/patch-pacpl (-101 lines)
Lines 1-101 Link Here
1
--- pacpl.orig	2008-08-16 21:31:57.000000000 -0600
2
+++ pacpl	2009-02-15 09:21:16.000000000 -0700
3
@@ -25,18 +25,6 @@
4
 use File::Find;
5
 use File::Spec::Functions qw(rel2abs);
6
 
7
-# Tagging modules
8
-use Ogg::Vorbis::Header;
9
-use MP3::Tag;
10
-use Audio::FLAC::Header;
11
-use MP4::Info;
12
-use Audio::WMA;
13
-use Audio::Musepack;
14
-use Audio::APETags;
15
-
16
-# CDDB module
17
-use CDDB_get qw(get_cddb);
18
-
19
 # non-encoder/decoder related options
20
 my 
21
 (
22
@@ -202,8 +190,8 @@
23
 
24
 # load po file and store in %lang hash
25
 sub load_lang {
26
-
27
-    my $po = "$po_dir/$ENV{LANG}.po";
28
+    my $lang = $ENV{LANG} || 'en_US';
29
+    my $po = "$po_dir/$lang.po";
30
        $po =~ s/\.UTF-8//i      if $po =~ /UTF-8/i; 
31
        $po =~ s/\.utf8//i       if $po =~ /utf8/i;  
32
        $po =~ s/_\w+//          if not -e $po;      
33
@@ -1541,6 +1529,17 @@
34
 # load codecs.conf file
35
 load_codecs() if -e $codecs_conf;
36
 
37
+# Now that %run is populated, verify tagging modules
38
+for my $format (keys %run){
39
+	if(defined $run{$format}{TAGS}{MODULE}){
40
+		eval "require $run{$format}{TAGS}{MODULE}";
41
+		@{$run{$format}{TAGS}}{qw(READ WRITE)} = (0,0) if $@;
42
+	}
43
+}
44
+
45
+eval "require CDDB_get";
46
+$nocddb = 1 if $@;
47
+
48
 my $out_name = $outfile; 
49
 my $out_dir  = $outdir;
50
 
51
@@ -2177,7 +2176,7 @@
52
                        }
53
 
54
         case 'wma'     {
55
-                            my $wma_tag = Audio::WMA->new($in_file)->tags();
56
+                            my $wma_tag = $tag_module->new($in_file)->tags();
57
 
58
                                $tag_name{title}   = $wma_tag->{TITLE}       if $wma_tag->{TITLE};
59
                                $tag_name{track}   = $wma_tag->{TRACKNUMBER} if $wma_tag->{TRACKNUMBER};
60
@@ -2198,12 +2197,13 @@
61
 sub write_tags {
62
 
63
     my ($out_file, $out_format) = @_;
64
+    my $tag_module = $run{$out_format}{TAGS}{MODULE};
65
     my  $tag_m;
66
 
67
     switch ($out_format) {
68
 
69
            case 'mp3'  {
70
-                            $tag_m = MP3::Tag->new("$out_file");
71
+                            $tag_m = $tag_module->new("$out_file");
72
                             
73
                             # ID3v2 Tags
74
                             unless(exists($tag_m->{ID3v2})) { $tag_m->new_tag("ID3v2"); }
75
@@ -2236,7 +2236,7 @@
76
                         }
77
 
78
            case 'ogg'   {
79
-                            $tag_m = Ogg::Vorbis::Header->new("$out_file");
80
+                            $tag_m = $tag_module->new("$out_file");
81
                             
82
                             # this prevents duplicate tags =)
83
                             $tag_m->clear_comments();
84
@@ -2257,7 +2257,7 @@
85
                         }
86
 
87
        case /fla|flac/ {
88
-                            $tag_m = Audio::FLAC::Header->new("$out_file");
89
+                            $tag_m = $tag_module->new("$out_file");
90
                          my $tag_i = $tag_m->tags();
91
 
92
                             $tag_i->{TITLE}       = "$tag_name{title}"   if $tag_name{title};
93
@@ -2446,7 +2446,7 @@
94
       $ripconfig{DEVICE}     = $device;
95
       $ripconfig{CDDB_INPUT} = $config{CDDB_INPUT};
96
 
97
-      %cd = get_cddb(\%ripconfig);
98
+      %cd = CDDB_get::get_cddb(\%ripconfig);
99
 
100
       if (not $cd{title}) {
101
           pnotice("no_cddb","",2);
(-)audio/pacpl/pkg-descr (-9 / +20 lines)
Lines 1-12 Link Here
1
Perl Audio Converter (PAC) is a tool for converting multiple audio types
1
Perl Audio Converter (PAC) is a tool for converting multiple audio types
2
from one format to another. It supports MP2, MP3, Ogg Vorbis, FLAC,
2
from one format to another.
3
Shorten, Monkey Audio, FAAC (AAC/M4A/MP4), Musepack (MPC), Wavpack (WV),
3
 
4
OptimFrog (OFR/OFS), TTA, LPAC, Kexis (KXS), AIFF, AC3, Lossless Audio
4
It supports the following audio formats:
5
(LA), BONK, AU, SND, RAW, VOC, SMP, RealAudio (RA/RAM), WAV, and WMA. It
5
------------------------------------------------------------
6
can also convert audio from the following video formats/extensions: RM,
6
3G2, 3GP, 8SVX, AAC, AC3, ADTS, AIFF, AL, AMB, AMR, APE, AU, AVR, BONK,
7
RV, ASF, DivX, MPG, MKV, MPEG, AVI, MOV, OGM, QT, VCD, VOB, and WMV. A
7
CAF, CDR, CVU, DAT, DTS, DVMS, F32, F64, FAP, FLA, FLAC, FSSD, GSRT,
8
CD ripping function with CDDB support, batch and playlist conversion,
8
HCOM, IMA, IRCAM, LA, MAT, MAUD, MAT4, MAT5, M4A, MP2, MP3, MP4, MPC,
9
tag preservation for most supported formats, independent tag reading/
9
MPP, NIST, OFF, OFR, OFS, OPUS, OGA, OGG, PAF, PRC, PVF, RA, RAM, RAW,
10
writing, and extensions for Konqueror and Amarok are also provided.
10
RF64, SD2, SF, SHN, SMP, SND, SOU, SPX, SRN, TAK, TTA, TXW, VOC, VMS,
11
VQF, W64, WAV, WMA, and WV.
12
 
13
It can also extract audio from the following video extensions:
14
--------------------------------------------------------------
15
RM, RV, ASF, DivX, MPG, MKV, MPEG, AVI, MOV, OGM, OGV, QT, VCD, SVCD,
16
M4V, NSV, NUV, PSP, SMK, VOB, FLV, WEBM and WMV.
17
 
18
Parallel processing, a CD ripping function with CDDB support, batch
19
conversion, tag preservation for most supported formats, independent tag
20
reading & writing, service menus for KDE Dolphin/Konqueror are also
21
provided.
11
22
12
WWW: http://vorzox.wix.com/pacpl
23
WWW: http://vorzox.wix.com/pacpl
(-)audio/pacpl/pkg-plist (-26 / +27 lines)
Lines 1-31 Link Here
1
bin/pacpl
1
bin/pacpl
2
%%DATADIR%%/locale/en_US.po
2
%%ETCDIR%%/codecs.conf.sample
3
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/ca.po
3
%%ETCDIR%%/modules/sample.m
4
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/de.po
4
%%ETCDIR%%/pacpl.conf.sample
5
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/es.po
5
%%ETCDIR%%/pacpl.png
6
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/et.po
6
libexec/PACPL-Convert
7
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/fr_FR.po
7
%%KDE4%%libexec/PACPL-Konvert
8
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/it_IT.po
8
man/man1/pacpl.1.gz
9
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/nl_NL.po
9
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
10
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/pl.po
11
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/pt.po
12
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/ro.po
13
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/ru_RU.po
14
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/tr.po
15
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/zh_CN.po
16
%%AMAROK%%share/apps/amarok/scripts/transcoding_pacx/transcoding_pacx.pl
17
%%AMAROK%%share/apps/amarok/scripts/transcoding_pacx/transcoding_pacx.spec
18
%%PORTDOCS%%%%DOCSDIR%%/README
10
%%PORTDOCS%%%%DOCSDIR%%/README
19
%%PORTDOCS%%%%DOCSDIR%%/README.module
11
%%PORTDOCS%%%%DOCSDIR%%/README.module
20
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
12
%%DATADIR%%/locale/GR.po
21
%%PORTDOCS%%@dirrm %%DOCSDIR%%
13
%%DATADIR%%/locale/ca.po
22
etc/pacpl/modules/sample.m
14
%%DATADIR%%/locale/de.po
23
etc/pacpl/pacpl.conf.sample
15
%%DATADIR%%/locale/en_US.po
24
etc/pacpl/codecs.conf.sample
16
%%DATADIR%%/locale/es.po
25
%%AMAROK%%@dirrm share/apps/amarok/scripts/transcoding_pacx
17
%%DATADIR%%/locale/et.po
18
%%DATADIR%%/locale/fr_FR.po
19
%%DATADIR%%/locale/it_IT.po
20
%%DATADIR%%/locale/nl_NL.po
21
%%DATADIR%%/locale/pl.po
22
%%DATADIR%%/locale/pt.po
23
%%DATADIR%%/locale/ro.po
24
%%DATADIR%%/locale/ru_RU.po
25
%%DATADIR%%/locale/tr.po
26
%%DATADIR%%/locale/zh_CN.po
27
%%KDE4%%share/kde4/services/ServiceMenus/pacpl.desktop
26
@dirrm %%DATADIR%%/locale
28
@dirrm %%DATADIR%%/locale
27
@dirrm %%DATADIR%%
29
@dirrm %%DATADIR%%
28
@dirrmtry etc/pacpl/modules
30
%%PORTDOCS%%@dirrm %%DOCSDIR%%
29
@dirrmtry etc/pacpl
31
@dirrmtry %%ETCDIR%%/modules
30
%%KDE4SERVICEMENU%%@cwd %%KDE4_PREFIX%%
32
@dirrmtry %%ETCDIR%%
31
%%KDE4SERVICEMENU%%share/kde4/services/ServiceMenus/pacpl.desktop

Return to bug 191811