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

Collapse All | Expand All

(-)audio/pacpl/Makefile (-239 / +88 lines)
Lines 2-263 Link Here
2
# $FreeBSD: head/audio/pacpl/Makefile 361892 2014-07-15 07:58:20Z rene $
2
# $FreeBSD: head/audio/pacpl/Makefile 361892 2014-07-15 07:58:20Z rene $
3
3
4
PORTNAME=	pacpl
4
PORTNAME=	pacpl
5
PORTVERSION=	4.0.5
5
PORTVERSION=	5.0.1
6
PORTREVISION=	9
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
ONLY_FOR_ARCHS=	i386 amd64
15
NO_BUILD=	yes
16
BUILD_DEPENDS=	p5-Switch>0:${PORTSDIR}/lang/p5-Switch
17
NO_ARCH=	yes
18
19
OPTIONS_DEFINE=	CDPARANOIA CDDB FAAC FAAD FFMPEG FLAC FLACTAG \
20
		LAME LAUDIO SNDFILE LPAC APE APETAG MP3TAG MP4TAG \
21
		MPP  MPLAYER OPTIMFROG VORBIS VORBISTAG SHORTEN \
22
		SOX SPEEX TOOLAME TTA WAVPACK WMATAG KDE4 AMAROK NORELANGS \
23
		DOCS
24
25
OPTIONS_DEFAULT=	CDPARANOIA CDDB FAAD FFMPEG FLAC FLACTAG MP3TAG \
26
			VORBIS VORBISTAG
27
.if !defined(PACKAGE_BUILDING)
28
OPTIONS_DEFAULT=	LAME FAAC
29
.endif
30
13
31
AMAROK_DESC=	Enable Amarok integration (BROKEN)
14
RUN_DEPENDS=	p5-Audio-FLAC-Header>0:${PORTSDIR}/audio/p5-Audio-FLAC-Header \
32
APETAG_DESC=	Enable Monkey's tagging support
15
		p5-Audio-Scan>0:${PORTSDIR}/audio/p5-Audio-Scan \
33
FLACTAG_DESC=	Enable FLAC tagging support
16
		p5-CDDB_get>0:${PORTSDIR}/audio/p5-CDDB_get \
34
KDE4_DESC=	Enable Konqueror/Dolphin integration
17
		p5-MP3-Tag>0:${PORTSDIR}/audio/p5-MP3-Tag \
35
LAUDIO_DESC=	Enable laudio support
18
		p5-Parallel-ForkManager>0:${PORTSDIR}/devel/p5-Parallel-ForkManager \
36
LPAC_DESC=	Enable LPAC support
19
		p5-Switch>0:${PORTSDIR}/lang/p5-Switch
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
20
51
PACPL_PO=	en_US.po
21
NO_ARCH=	yes
52
22
53
SHEBANG_FILES=	pacpl plugins/amarok/pacx
23
USES=		perl5 shebangfix
24
SHEBANG_FILES=	pacpl plugins/gnome/nautilus/PACPL-Convert \
25
		plugins/kde/PACPL-Konvert
26
27
OPTIONS_DEFINE=		APE 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
CDPARANOIA_RUN_DEPENDS=	cdparanoia:${PORTSDIR}/audio/cdparanoia
35
FAAC_RUN_DEPENDS=	faac:${PORTSDIR}/audio/faac
36
FAAD_RUN_DEPENDS=	faad:${PORTSDIR}/audio/faad
37
FFMPEG_RUN_DEPENDS=	ffmpeg:${PORTSDIR}/multimedia/ffmpeg
38
KDE4_DESC=		Konqueror/Dolphin integration
39
KDE4_USE=		KDE4=kdehier
40
LAME_RUN_DEPENDS=	lame:${PORTSDIR}/audio/lame
41
LAUDIO_DESC=		Laudio support
42
LAUDIO_RUN_DEPENDS=	laudio:${PORTSDIR}/audio/linux-laudio
43
MPLAYER_RUN_DEPENDS=	mplayer:${PORTSDIR}/multimedia/mplayer
44
MUSEPACK_RUN_DEPENDS=	mppenc:${PORTSDIR}/audio/musepack
45
OPTIMFROG_DESC=		OptimFROG lossless audio support
46
OPTIMFROG_RUN_DEPENDS=	ofr:${PORTSDIR}/audio/optimfrog
47
OPUS_DESC=		Ogg Opus audio codec support
48
OPUS_RUN_DEPENDS=	opus:${PORTSDIR}/audio/opus
49
SNDFILE_RUN_DEPENDS=	sndfile-convert:${PORTSDIR}/audio/libsndfile
50
VORBIS_RUN_DEPENDS=	oggenc:${PORTSDIR}/audio/vorbis-tools
51
SHORTEN_DESC=		Shorten audio support
52
SHORTEN_RUN_DEPENDS=	shorten:${PORTSDIR}/audio/shorten
53
SOX_DESC=		Audio conversion support via SoX
54
SOX_RUN_DEPENDS=	sox:${PORTSDIR}/audio/sox
55
SPEEX_RUN_DEPENDS=	speexenc:${PORTSDIR}/audio/speex
56
TOOLAME_DESC=		TooLAME MP2 audio encoder support
57
TOOLAME_RUN_DEPENDS+=	toolame:${PORTSDIR}/audio/toolame
58
TTA_DESC=		TTA lossless audio support
59
TTA_RUN_DEPENDS=	ttaenc:${PORTSDIR}/audio/tta
60
VORBIS_RUN_DEPENDS=	vorbiscomment:${PORTSDIR}/audio/vorbis-tools
61
WAVPACK_RUN_DEPENDS=	wavpack:${PORTSDIR}/audio/wavpack
54
62
55
.include <bsd.port.options.mk>
63
.include <bsd.port.options.mk>
56
64
57
.if ${PORT_OPTIONS:MKDE4}
58
USE_KDE4=	kdehier
59
PLIST_SUB+=	KDE4SERVICEMENU="" KDE4_PREFIX="${KDE4_PREFIX}"
60
.else
61
PLIST_SUB+=	KDE4SERVICEMENU="@comment "
62
.endif
63
64
.if ${PORT_OPTIONS:MAMAROK}
65
BROKEN=		Amarok support temporarily broken in 4.05+
66
RUN_DEPENDS+=	amarok:${PORTSDIR}/audio/amarok
67
PLIST_SUB+=	AMAROK=""
68
.else
69
PLIST_SUB+=	AMAROK="@comment "
70
.endif
71
72
.if ${PORT_OPTIONS:MCDDB}
73
RUN_DEPENDS+=	p5-CDDB_get>0:${PORTSDIR}/audio/p5-CDDB_get
74
.endif
75
76
.if ${PORT_OPTIONS:MCDPARANOIA}
77
RUN_DEPENDS+=	cdparanoia:${PORTSDIR}/audio/cdparanoia
78
.endif
79
80
.if ${PORT_OPTIONS:MFAAC}
81
RUN_DEPENDS+=	faac:${PORTSDIR}/audio/faac
82
.endif
83
84
.if ${PORT_OPTIONS:MFAAD}
85
RUN_DEPENDS+=	faad:${PORTSDIR}/audio/faad
86
.endif
87
88
.if ${PORT_OPTIONS:MFFMPEG}
89
RUN_DEPENDS+=	ffmpeg:${PORTSDIR}/multimedia/ffmpeg
90
.endif
91
92
.if ${PORT_OPTIONS:MFLAC}
93
RUN_DEPENDS+=	flac:${PORTSDIR}/audio/flac
94
.endif
95
96
.if ${PORT_OPTIONS:MFLACTAG}
97
RUN_DEPENDS+=	p5-Audio-FLAC-Header>0:${PORTSDIR}/audio/p5-Audio-FLAC-Header
98
.endif
99
100
.if ${PORT_OPTIONS:MLAME}
101
RUN_DEPENDS+=	lame:${PORTSDIR}/audio/lame
102
.endif
103
104
.if ${PORT_OPTIONS:MLAUDIO}
105
RUN_DEPENDS+=	laudio:${PORTSDIR}/audio/linux-laudio
106
.endif
107
108
.if ${PORT_OPTIONS:MSNDFILE}
109
RUN_DEPENDS+=	sndfile-convert:${PORTSDIR}/audio/libsndfile
110
.endif
111
112
.if ${PORT_OPTIONS:MLPAC}
113
RUN_DEPENDS+=	lpac:${PORTSDIR}/audio/lpac
114
.endif
115
116
.if ${PORT_OPTIONS:MAPE}
117
RUN_DEPENDS+=	mac:${PORTSDIR}/audio/mac
118
.endif
119
120
.if ${PORT_OPTIONS:MMPPTAG} || ${PORT_OPTIONS:MAPETAG}
121
RUN_DEPENDS+=	p5-Audio-Musepack>0:${PORTSDIR}/audio/p5-Audio-Musepack
122
.endif
123
124
.if ${PORT_OPTIONS:MMP3TAG}
125
RUN_DEPENDS+=	p5-MP3-Tag>0:${PORTSDIR}/audio/p5-MP3-Tag
126
.endif
127
128
.if ${PORT_OPTIONS:MMP4TAG}
129
RUN_DEPENDS+=	p5-MP4-Info>0:${PORTSDIR}/multimedia/p5-MP4-Info
130
.endif
131
132
.if ${PORT_OPTIONS:MMPLAYER}
133
RUN_DEPENDS+=	mplayer:${PORTSDIR}/multimedia/mplayer
134
.endif
135
136
.if ${PORT_OPTIONS:MMPPPACK}
137
RUN_DEPENDS+=	mppenc:${PORTSDIR}/audio/musepack
138
.endif
139
140
.if ${PORT_OPTIONS:MOPTIMFROG}
141
RUN_DEPENDS+=	ofr:${PORTSDIR}/audio/optimfrog
142
.endif
143
144
.if ${PORT_OPTIONS:MVORBISVORBIS}
145
RUN_DEPENDS+=	oggenc:${PORTSDIR}/audio/vorbis-tools
146
.endif
147
148
.if ${PORT_OPTIONS:MVORBISTAG}
149
RUN_DEPENDS+=	p5-Ogg-Vorbis-Header>0:${PORTSDIR}/audio/p5-Ogg-Vorbis-Header
150
.endif
151
152
.if ${PORT_OPTIONS:MSHORTEN}
153
RUN_DEPENDS+=	shorten:${PORTSDIR}/audio/shorten
154
.endif
155
156
.if ${PORT_OPTIONS:MSOX}
157
RUN_DEPENDS+=	sox:${PORTSDIR}/audio/sox
158
.endif
159
160
.if ${PORT_OPTIONS:MSPEEX}
161
RUN_DEPENDS+=	speexenc:${PORTSDIR}/audio/speex
162
.endif
163
164
.if ${PORT_OPTIONS:MTOOLAME}
165
RUN_DEPENDS+=	toolame:${PORTSDIR}/audio/toolame
166
.endif
167
168
.if ${PORT_OPTIONS:MTTA}
169
RUN_DEPENDS+=	ttaenc:${PORTSDIR}/audio/tta
170
.endif
171
172
.if ${PORT_OPTIONS:MWAVPACK}
173
RUN_DEPENDS+=	wavpack:${PORTSDIR}/audio/wavpack
174
.endif
175
176
.if ${PORT_OPTIONS:MWMATAG}
177
RUN_DEPENDS+=	p5-Audio-WMA>0:${PORTSDIR}/audio/p5-Audio-WMA
178
.endif
179
180
.if ${PORT_OPTIONS:MMORELANGS}
181
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
182
PLIST_SUB+=	ADDITIONAL_LANGS=""
183
.else
184
PLIST_SUB+=	ADDITIONAL_LANGS="@comment "
185
.endif
186
187
post-extract:
188
189
	@${ECHO_MSG} ""
190
	@${ECHO_MSG} " * * * * * * * * * W A R N I N G * * * * * * * * * * * * * "
191
	@${ECHO_MSG} ""
192
	@${ECHO_MSG} "WARNING: Integration options with Amarok, KDE4 Dolphin and"
193
	@${ECHO_MSG} "Konqueror now pull in their respective ports!"
194
	@${ECHO_MSG} ""
195
	@${ECHO_MSG} "The port now provides the option to select codecs, CD"
196
	@${ECHO_MSG} "burning, CDDB and tagging modules individually so you don't"
197
	@${ECHO_MSG} "have to install all by default.  You will still be offered"
198
	@${ECHO_MSG} "the ability to convert to and from these formats in the"
199
	@${ECHO_MSG} "pacpl options even if the codec is not installed."
200
	@${ECHO_MSG} ""
201
	@${ECHO_MSG} "CTRL-C now if you'd like to reconfigure, read the Changelog,"
202
	@${ECHO_MSG} "or README:"
203
	@${ECHO_MSG} ""
204
	@${ECHO_MSG} "	${WRKSRC}/ChangeLog"
205
	@${ECHO_MSG} "	${WRKSRC}/README"
206
	@${ECHO_MSG} ""
207
	@${ECHO_MSG} " * * * * * * * * * * * * * * * * * * * * * * * * * * * * * "
208
	@${ECHO_MSG} ""
209
	@sleep 5
210
211
post-patch:
65
post-patch:
212
	@${REINPLACE_CMD} -e 's@/etc/pacpl@${PREFIX}/etc/pacpl@; \
66
	@${REINPLACE_CMD} -e \
213
		s@/usr/share/pacpl@${DATADIR}@' ${WRKSRC}/pacpl ${WRKSRC}/pacpl.conf
67
		's|"/etc/pacpl|"${ETCDIR}| ; \
68
		 s|"/usr/share/pacpl|"${DATADIR}| ; \
69
		 s|^/etc/pacpl|${ETCDIR}|' ${WRKSRC}/pacpl
70
	@${REINPLACE_CMD} -e \
71
		's| /etc/pacpl| ${ETCDIR}|' ${WRKSRC}/pacpl.conf
72
	@${REINPLACE_CMD} -e \
73
		's|=/etc/pacpl|=${ETCDIR}| ; \
74
		 s|=/usr/bin|=${PREFIX}/libexec|' \
75
		${WRKSRC}/plugins/kde/pacpl.desktop
76
77
do-build:
78
	@(cd ${WRKSRC} && pod2man pacpl pacpl.1)
214
79
215
do-install:
80
do-install:
216
	${INSTALL_SCRIPT} ${WRKSRC}/pacpl ${STAGEDIR}${PREFIX}/bin/
81
	(cd ${WRKSRC} && ${INSTALL_SCRIPT} pacpl \
217
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/pacpl/modules/
82
		${STAGEDIR}${PREFIX}/bin)
218
	${MKDIR} ${STAGEDIR}${DATADIR}/locale/
83
	(cd ${WRKSRC} && ${INSTALL_MAN} pacpl.1 \
219
	${INSTALL_DATA} ${WRKSRC}/pacpl.conf ${STAGEDIR}${PREFIX}/etc/pacpl/pacpl.conf.sample
84
		${STAGEDIR}${MANPREFIX}/man/man1)
220
	${INSTALL_DATA} ${WRKSRC}/codecs.conf ${STAGEDIR}${PREFIX}/etc/pacpl/codecs.conf.sample
85
	@${MKDIR} ${STAGEDIR}${ETCDIR}
221
	${INSTALL_DATA} ${WRKSRC}/extra/sample.m ${STAGEDIR}${PREFIX}/etc/pacpl/modules/sample.m
86
	(cd ${WRKSRC} && ${INSTALL_DATA} pacpl.png \
222
.for po in ${PACPL_PO}
87
		${STAGEDIR}${ETCDIR})
223
	${INSTALL_DATA} ${WRKSRC}/po/${po} ${STAGEDIR}${DATADIR}/locale
88
.for i in codecs.conf pacpl.conf
89
	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
90
		${STAGEDIR}${ETCDIR}/${i}.sample)
224
.endfor
91
.endfor
225
	@pod2man ${WRKSRC}/pacpl ${WRKSRC}/pacpl.1
92
	@${MKDIR} ${STAGEDIR}${ETCDIR}/modules
226
	${INSTALL_MAN} ${WRKSRC}/pacpl.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
93
	(cd ${WRKSRC}/extra && ${INSTALL_DATA} sample.m \
227
94
		${STAGEDIR}${ETCDIR}/modules)
95
	@${MKDIR} ${STAGEDIR}${DATADIR}/locale
96
	(cd ${WRKSRC}/po && ${INSTALL_DATA} *.po \
97
		${STAGEDIR}${DATADIR}/locale)
98
	${MKDIR} ${STAGEDIR}${DOCSDIR}
99
	(cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog README \
100
		${STAGEDIR}${DOCSDIR})
101
	(cd ${WRKSRC}/extra && ${INSTALL_DATA} README.module \
102
		${STAGEDIR}${DOCSDIR})
103
	(cd ${WRKSRC}/plugins/gnome/nautilus && ${INSTALL_SCRIPT} PACPL-Convert \
104
		${STAGEDIR}${PREFIX}/libexec)
228
.if ${PORT_OPTIONS:MKDE4}
105
.if ${PORT_OPTIONS:MKDE4}
229
	${INSTALL_DATA} ${WRKSRC}/plugins/konqueror/pacpl.desktop ${STAGEDIR}${KDE4_PREFIX}/share/kde4/services/ServiceMenus
106
	(cd ${WRKSRC}/plugins/kde && ${INSTALL_SCRIPT} PACPL-Konvert \
107
		${STAGEDIR}${PREFIX}/libexec)
108
	(cd ${WRKSRC}/plugins/kde && ${INSTALL_DATA} pacpl.desktop \
109
		${STAGEDIR}${PREFIX}/share/kde4/services/ServiceMenus)
230
.endif
110
.endif
231
111
232
.if ${PORT_OPTIONS:MAMAROK}
233
	${MKDIR} ${STAGEDIR}${PREFIX}/share/apps/amarok/scripts/transcoding_pacx
234
	${INSTALL_DATA} ${WRKSRC}/plugins/amarok/pacx ${STAGEDIR}${PREFIX}/share/apps/amarok/scripts/transcoding_pacx/transcoding_pacx.pl
235
	${PERL} -e 'print qq(name = Pacx\ntype = transcode)' > ${STAGEDIR}${PREFIX}/share/apps/amarok/scripts/transcoding_pacx/transcoding_pacx.spec
236
.endif
237
238
	${MKDIR} ${STAGEDIR}${DOCSDIR}
239
	${INSTALL_DATA} ${WRKSRC}/extra/README.module ${WRKSRC}/ChangeLog ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
240
241
post-install:
242
	@${ECHO_MSG} ""
243
	#@${STAGEDIR}${PREFIX}/bin/pacpl -f # FIXME errors out
244
	@${ECHO_MSG} ""
245
	@${ECHO_MSG} "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * "
246
	@${ECHO_MSG} ""
247
	@${ECHO_MSG} "If you are updating from pacpl 3.x please do take"
248
	@${ECHO_MSG} "time to review the changes in 4.x:"
249
	@${ECHO_MSG} ""
250
	@${ECHO_MSG} "  http://sourceforge.net/p/pacpl/code/ci/master/tree/ChangeLog"
251
	@${ECHO_MSG} ""
252
	@${ECHO_MSG} "The command-line options are quite different in 4.x.  A"
253
	@${ECHO_MSG} "few features are no longer available and several are new. "
254
	@${ECHO_MSG} "You should also take a look at the two config files in"
255
	@${ECHO_MSG} "${PREFIX}/etc/pacpl."
256
	@${ECHO_MSG} ""
257
	@${ECHO_MSG} "The supported codecs and tagging available in this port"
258
	@${ECHO_MSG} "build are listed above this message."
259
	@${ECHO_MSG} ""
260
	@${ECHO_MSG} "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * "
261
	@${ECHO_MSG} ""
262
263
.include <bsd.port.mk>
112
.include <bsd.port.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 / +26 lines)
Lines 1-32 Link Here
1
bin/pacpl
1
bin/pacpl
2
%%ETCDIR%%/codecs.conf.sample
3
%%ETCDIR%%/modules/sample.m
4
%%ETCDIR%%/pacpl.conf.sample
5
%%ETCDIR%%/pacpl.png
6
libexec/PACPL-Convert
7
%%KDE4%%libexec/PACPL-Konvert
2
man/man1/pacpl.1.gz
8
man/man1/pacpl.1.gz
3
%%DATADIR%%/locale/en_US.po
9
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
4
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/ca.po
5
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/de.po
6
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/es.po
7
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/et.po
8
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/fr_FR.po
9
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/it_IT.po
10
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/nl_NL.po
11
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/pl.po
12
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/pt.po
13
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/ro.po
14
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/ru_RU.po
15
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/tr.po
16
%%ADDITIONAL_LANGS%%%%DATADIR%%/locale/zh_CN.po
17
%%AMAROK%%share/apps/amarok/scripts/transcoding_pacx/transcoding_pacx.pl
18
%%AMAROK%%share/apps/amarok/scripts/transcoding_pacx/transcoding_pacx.spec
19
%%PORTDOCS%%%%DOCSDIR%%/README
10
%%PORTDOCS%%%%DOCSDIR%%/README
20
%%PORTDOCS%%%%DOCSDIR%%/README.module
11
%%PORTDOCS%%%%DOCSDIR%%/README.module
21
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
12
%%DATADIR%%/locale/GR.po
22
%%PORTDOCS%%@dirrm %%DOCSDIR%%
13
%%DATADIR%%/locale/ca.po
23
etc/pacpl/modules/sample.m
14
%%DATADIR%%/locale/de.po
24
etc/pacpl/pacpl.conf.sample
15
%%DATADIR%%/locale/en_US.po
25
etc/pacpl/codecs.conf.sample
16
%%DATADIR%%/locale/es.po
26
%%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
27
@dirrm %%DATADIR%%/locale
28
@dirrm %%DATADIR%%/locale
28
@dirrm %%DATADIR%%
29
@dirrm %%DATADIR%%
29
@dirrmtry etc/pacpl/modules
30
%%PORTDOCS%%@dirrm %%DOCSDIR%%
30
@dirrmtry etc/pacpl
31
@dirrmtry %%ETCDIR%%/modules
31
%%KDE4SERVICEMENU%%@cwd %%KDE4_PREFIX%%
32
@dirrmtry %%ETCDIR%%
32
%%KDE4SERVICEMENU%%share/kde4/services/ServiceMenus/pacpl.desktop

Return to bug 191811