View | Details | Raw Unified | Return to bug 124308
Collapse All | Expand All

(-)audio/prokyon3/Makefile (-31 / +37 lines)
Lines 6-37 Link Here
6
#
6
#
7
7
8
PORTNAME=	prokyon3
8
PORTNAME=	prokyon3
9
PORTVERSION=	0.9.2
9
PORTVERSION=	0.9.6
10
PORTREVISION=	5
11
CATEGORIES=	audio
10
CATEGORIES=	audio
12
MASTER_SITES=	SF
11
MASTER_SITES=	SF
13
12
14
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	Prokyon3 is a multithreaded MP3 manager and tag editor
14
COMMENT=	A multithreaded music manager and tag editor
16
15
17
BUILD_DEPENDS=	${LOCALBASE}/lib/plugins/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt-mysql-plugin
16
BUILD_DEPENDS=	${LOCALBASE}/lib/plugins/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt-mysql-plugin \
18
LIB_DEPENDS=	id3-3.8:${PORTSDIR}/audio/id3lib \
17
		bash:${PORTSDIR}/shells/bash
19
		vorbis.4:${PORTSDIR}/audio/libvorbis
18
LIB_DEPENDS=	FLAC.10:${PORTSDIR}/audio/flac \
20
RUN_DEPENDS=	xmms:${PORTSDIR}/multimedia/xmms
19
		mad.2:${PORTSDIR}/audio/libmad \
20
		musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz \
21
		vorbis.4:${PORTSDIR}/audio/libvorbis \
22
		tag.5:${PORTSDIR}/audio/taglib
23
RUN_DEPENDS=	${LOCALBASE}/lib/plugins/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt-mysql-plugin
21
24
22
USE_XORG=	x11 xft
23
USE_QT_VER=	3
25
USE_QT_VER=	3
24
GNU_CONFIGURE=	yes
26
USE_GNOME=	gnometarget
25
USE_GMAKE=	yes
26
USE_GETTEXT=	yes
27
USE_MYSQL=	yes
27
USE_MYSQL=	yes
28
USE_PERL5_BUILD=yes
28
USE_GETTEXT=	yes
29
CONFIGURE_ARGS+=--with-qtdir=${LOCALBASE} --with-id3-libs=${LOCALBASE}\
29
USE_GMAKE=	yes
30
		--with-ogg-libs=${LOCALBASE} --with-vorbis-libs=${LOCALBASE}
30
GNU_CONFIGURE=	yes
31
QT_NONSTANDARD=	yes
31
CONFIGURE_ARGS=	--with-other-includes=${LOCALBASE}/include \
32
CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include \
32
		--with-other-libs=${LOCALBASE}/lib \
33
		-I${QT_PREFIX}/include" LDFLAGS="${LDFLAGS}"
33
		--without-mixxx --without-musicextras
34
LDFLAGS+=	-L${LOCALBASE}/lib
34
MAKE_ARGS=	LIBS="-lqt-mt ${PTHREAD_LIBS}"
35
36
.include <bsd.port.pre.mk>
35
37
36
.if defined(WITH_BURN)
38
.if defined(WITH_BURN)
37
USE_CDRTOOLS=	yes
39
USE_CDRTOOLS=	yes
Lines 39-62 Link Here
39
		ogg123:${PORTSDIR}/audio/vorbis-tools \
41
		ogg123:${PORTSDIR}/audio/vorbis-tools \
40
		normalize:${PORTSDIR}/audio/normalize \
42
		normalize:${PORTSDIR}/audio/normalize \
41
		bash:${PORTSDIR}/shells/bash
43
		bash:${PORTSDIR}/shells/bash
42
PLIST_FILES+=	bin/prokburn
44
PLIST_FILES+=	BURN=""
45
.else
46
PLIST_SUB+=	BURN="@comment "
43
.endif
47
.endif
44
48
45
post-patch:
49
post-patch:
46
	@${REINPLACE_CMD} -e 's|-g -O2|${CFLAGS}|; s|-lqt-mt|-lqt-mt ${PTHREAD_LIBS}|' ${WRKSRC}/configure
50
	@${REINPLACE_CMD} -e \
47
.if defined(WITH_BURN)
51
		's|^#!.*$$|#!${LOCALBASE}/bin/bash|g ; \
48
	@${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' ${WRKSRC}/prokburn
52
		 s|^CXXFLAGS=|#CXXFLAGS=|g ; \
49
.else
53
		 s|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure
50
	@${REINPLACE_CMD} -e 's|prokburn||' ${WRKSRC}/Makefile.am
54
	@${REINPLACE_CMD} -e \
51
	@${REINPLACE_CMD} -e 's|prokburn||' ${WRKSRC}/Makefile.in
55
		's|^#!.*$$|#!${LOCALBASE}/bin/bash|g' ${WRKSRC}/prokburn
52
.endif
56
	@${REINPLACE_CMD} -e \
53
	@${REINPLACE_CMD} -E 's|[[:alpha:]]+::||' ${WRKSRC}/src/gui.h \
57
		's|: install-binSCRIPTS|:|g' ${WRKSRC}/Makefile.in
54
		${WRKSRC}/src/configuration.h
58
	@${REINPLACE_CMD} -e \
55
	@${REINPLACE_CMD} -e 's|QProgressDialogScroll::||' \
59
		's|getopt.$$(OBJEXT)||g' ${WRKSRC}/src/Makefile.in
56
		${WRKSRC}/src/jobbase.cpp
57
60
58
post-install:
61
post-install:
62
.if defined(WITH_BURN)
63
	${INSTALL_SCRIPT} ${WRKSRC}/prokburn ${PREFIX}/bin
64
.endif
59
	@${CAT} ${PKGMESSAGE}
65
	@${CAT} ${PKGMESSAGE}
60
	@sleep 5
66
	@sleep 5
61
67
62
.include <bsd.port.mk>
68
.include <bsd.port.post.mk>
(-)audio/prokyon3/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (prokyon3-0.9.2.tar.gz) = 49e7b2662f4fffc3c366c4fb0ff53d4c
1
MD5 (prokyon3-0.9.6.tar.gz) = c4b3d222a518ff82af66ea4aba458f55
2
SHA256 (prokyon3-0.9.2.tar.gz) = 1053ab6c5a01410d18d7fd402d6ef1b56197d6964e6c1cc0ce8d85b20cad7d17
2
SHA256 (prokyon3-0.9.6.tar.gz) = a5c9477b8f15e791860dcd7e7608dcfdc0cf423528a56525a3d20e4d6935cb6a
3
SIZE (prokyon3-0.9.2.tar.gz) = 593348
3
SIZE (prokyon3-0.9.6.tar.gz) = 1162620
(-)audio/prokyon3/files/patch-src__job_importplaylist.cpp (+10 lines)
Line 0 Link Here
1
--- src/job_importplaylist.cpp.orig	2007-01-07 06:51:11.000000000 +0900
2
+++ src/job_importplaylist.cpp	2008-06-04 02:01:55.000000000 +0900
3
@@ -9,6 +9,7 @@
4
 #include <qstringlist.h>
5
 #include <qregexp.h>
6
 #include <qfile.h>
7
+#include <qdir.h>
8
 #include <qfileinfo.h>
9
 
10
 #ifdef EMBEDDED
(-)audio/prokyon3/files/patch-src__qmbflacfile.cpp (+67 lines)
Line 0 Link Here
1
--- src/qmbflacfile.cpp.orig	2006-02-01 16:47:52.000000000 +0900
2
+++ src/qmbflacfile.cpp	2008-06-04 02:06:11.000000000 +0900
3
@@ -33,6 +33,12 @@
4
 #include <musicbrainz/mb_c.h>
5
 #include <FLAC++/metadata.h>
6
 
7
+#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8
8
+#define LEGACY_FLAC
9
+#else
10
+#undef LEGACY_FLAC
11
+#endif
12
+
13
 QMBFLACFile::QMBFLACFile()
14
 : QMBFile(), FLAC::Decoder::File(), offset(0), decode_error(false) {
15
     //we do nothing here.  we want to allow checking of return value,
16
@@ -57,17 +63,27 @@
17
     int lastslash = filename.findRev('/');
18
     metadata.SetFileName(filename.right(filename.length() - lastslash - 1));
19
 
20
+#ifdef LEGACY_FLAC
21
     //set the filename with the FLAC::Decoder::File class
22
     set_filename(fullfilename.latin1());
23
+#endif
24
 
25
     //tell the decoder to call the metadata callback on vorbis comments so we can get the metadata already stored in the file
26
     set_metadata_respond(FLAC__METADATA_TYPE_VORBIS_COMMENT);
27
 
28
     //Start reading the FLAC file
29
+#ifdef LEGACY_FLAC
30
     FLAC__FileDecoderState state = init();
31
 
32
     if (state != FLAC__FILE_DECODER_OK) {
33
         qWarning("QMBFLACFile::Extract(): error opening file: %i (%s).", state, FLAC__FileDecoderStateString[state]);
34
+#else
35
+    FLAC__StreamDecoderState state;
36
+    FLAC__StreamDecoderInitStatus initstate = init(fullfilename.latin1());
37
+
38
+    if (initstate != FLAC__STREAM_DECODER_INIT_STATUS_OK) {
39
+        qWarning("QMBFLACFile::Extract(): error opening file: %i (%s).", initstate, FLAC__StreamDecoderStateString[initstate]);
40
+#endif
41
         finish();
42
         return -1;
43
     }
44
@@ -75,7 +91,11 @@
45
     //read through all the metadata so our callback can catch it all
46
     if(!process_until_end_of_metadata ()) {
47
         state = get_state();
48
+#ifdef LEGACY_FLAC
49
         qWarning("QMBFLACFile::Extract(): error getting metadata: %i (%s).", state, FLAC__FileDecoderStateString[state]);
50
+#else
51
+        qWarning("QMBFLACFile::Extract(): error getting metadata: %i (%s).", state, FLAC__StreamDecoderStateString[state] );
52
+#endif
53
         decode_error = true;
54
         finish();
55
         return -2;
56
@@ -108,7 +128,11 @@
57
     while (!decode_error && offset < (unsigned long) bufferlen) {
58
         if (!process_single()) {
59
             state = get_state();
60
+#ifdef LEGACY_FLAC
61
             qWarning("QMBFLACFile::Extract(): error getting raw data: %i (%s).", state, FLAC__FileDecoderStateString[state]);
62
+#else
63
+            qWarning("QMBFLACFile::Extract(): error getting raw data: %i (%s).", state, FLAC__StreamDecoderStateString[state]);
64
+#endif
65
             decode_error = true;
66
             finish();
67
             return -2;
(-)audio/prokyon3/files/patch-src_getopt.c (-11 lines)
Lines 1-11 Link Here
1
--- src/getopt.c.orig	Sat Sep 20 10:34:30 2003
2
+++ src/getopt.c	Sat Sep 20 10:35:56 2003
3
@@ -24,6 +24,8 @@
4
 #include "config.h"
5
 #endif
6
 
7
+#define _(String)(String)
8
+
9
 #ifndef __STDC__
10
 /* This is a separate conditional since some stdc systems
11
    reject `defined (const)'.  */
(-)audio/prokyon3/pkg-descr (-8 / +11 lines)
Lines 1-10 Link Here
1
prokyon3 is a multithreaded MP3 manager and tag editor for Linux.
1
prokyon3 is a multithreaded music manager and tag editor for Unix (developed
2
It was written in C++ using the Qt3 widget set and the MySQL database.
2
on Linux). It was written in C++ using the Qt3 widget set and the MySQL
3
prokyon3 can access MP3 files on harddisk, CDROM, SMB, and NFS. Files
3
database. prokyon3 can access MP3, Ogg and FLAC files on harddisk, CDROM or
4
can be played using XMMS, and can even be played when the files are on
4
network. Files can be played using XMMS (default) or other players. The file
5
CD as prokyon3 identifies CDs by content. The files view is customizable
5
view is customizable and favorite artists are supported. prokyon3 also offers
6
and favorite artists are supported. prokyon3 also offers an editor for
6
an editor for ID3 and Ogg tags and has been designed to support tagging for
7
ID3 tags and has been designed to support tagging for multiple files en
7
large quantities of files.
8
masse.
8
9
Beside it's own features prokyon3 is able to interact with a lot of other
10
programms. Thanks to it's configurable interfaces you can combine prokyon3
11
with cd burners, media players and data aggregators of your choice.
9
12
10
WWW: http://prokyon3.sourceforge.net/
13
WWW: http://prokyon3.sourceforge.net/
(-)audio/prokyon3/pkg-plist (-13 / +91 lines)
Lines 1-22 Link Here
1
%%BURN%%bin/prokburn
1
bin/prokyon3
2
bin/prokyon3
3
share/locale/ca/LC_MESSAGES/prokyon3.mo
4
share/locale/de/LC_MESSAGES/prokyon3.mo
5
share/locale/en/LC_MESSAGES/prokyon3.mo
6
share/locale/es/LC_MESSAGES/prokyon3.mo
7
share/locale/fr/LC_MESSAGES/prokyon3.mo
8
share/locale/he/LC_MESSAGES/prokyon3.mo
9
share/locale/hr/LC_MESSAGES/prokyon3.mo
10
share/locale/it/LC_MESSAGES/prokyon3.mo
11
share/locale/nl/LC_MESSAGES/prokyon3.mo
12
share/locale/pl/LC_MESSAGES/prokyon3.mo
13
share/locale/pt_BR/LC_MESSAGES/prokyon3.mo
14
share/locale/ro/LC_MESSAGES/prokyon3.mo
15
share/locale/ru/LC_MESSAGES/prokyon3.mo
16
share/locale/sv/LC_MESSAGES/prokyon3.mo
17
share/locale/tr/LC_MESSAGES/prokyon3.mo
18
share/locale/yi/LC_MESSAGES/prokyon3.mo
19
%%DATADIR%%/html/manual_one_file/images/docbook/important.png
20
%%DATADIR%%/html/manual_one_file/images/docbook/note.png
21
%%DATADIR%%/html/manual_one_file/images/docbook/tip.png
22
%%DATADIR%%/html/manual_one_file/images/docbook/warning.png
23
%%DATADIR%%/html/manual_one_file/index.html
24
%%DATADIR%%/html/manual_one_file/index_fr.html
25
%%DATADIR%%/images/0star.png
26
%%DATADIR%%/images/1star.png
27
%%DATADIR%%/images/2star.png
28
%%DATADIR%%/images/3star.png
29
%%DATADIR%%/images/4star.png
30
%%DATADIR%%/images/5star.png
2
%%DATADIR%%/images/action_append.png
31
%%DATADIR%%/images/action_append.png
32
%%DATADIR%%/images/action_burncd.png
3
%%DATADIR%%/images/action_connect.png
33
%%DATADIR%%/images/action_connect.png
4
%%DATADIR%%/images/action_createdb.png
34
%%DATADIR%%/images/action_createdb.png
5
%%DATADIR%%/images/action_discard.png
35
%%DATADIR%%/images/action_discard.png
6
%%DATADIR%%/images/action_disconnect.png
36
%%DATADIR%%/images/action_disconnect.png
37
%%DATADIR%%/images/action_documentation.png
38
%%DATADIR%%/images/action_mextras_log.png
7
%%DATADIR%%/images/action_quit.png
39
%%DATADIR%%/images/action_quit.png
8
%%DATADIR%%/images/action_readtags.png
40
%%DATADIR%%/images/action_readtags.png
9
%%DATADIR%%/images/action_remove.png
41
%%DATADIR%%/images/action_remove.png
42
%%DATADIR%%/images/action_rename.png
43
%%DATADIR%%/images/action_selectall.png
10
%%DATADIR%%/images/action_settings.png
44
%%DATADIR%%/images/action_settings.png
11
%%DATADIR%%/images/action_switchbottom.png
45
%%DATADIR%%/images/action_switchbottom.png
12
%%DATADIR%%/images/action_switchleft.png
46
%%DATADIR%%/images/action_switchleft.png
13
%%DATADIR%%/images/action_switchright.png
47
%%DATADIR%%/images/action_switchright.png
14
%%DATADIR%%/images/action_synchronize.png
48
%%DATADIR%%/images/action_synchronize.png
49
%%DATADIR%%/images/action_unselectall.png
15
%%DATADIR%%/images/action_updateonly.png
50
%%DATADIR%%/images/action_updateonly.png
16
%%DATADIR%%/images/action_writetags.png
51
%%DATADIR%%/images/action_writetags.png
17
%%DATADIR%%/images/action_xmms.png
52
%%DATADIR%%/images/amarok.png
53
%%DATADIR%%/images/ask_musicbrainz.png
54
%%DATADIR%%/images/beep-media-player.png
55
%%DATADIR%%/images/down.png
56
%%DATADIR%%/images/fileimport.png
57
%%DATADIR%%/images/filenew.png
58
%%DATADIR%%/images/filesave.png
59
%%DATADIR%%/images/filter.png
18
%%DATADIR%%/images/help.png
60
%%DATADIR%%/images/help.png
61
%%DATADIR%%/images/html.png
62
%%DATADIR%%/images/icon.png
63
%%DATADIR%%/images/idea.png
64
%%DATADIR%%/images/jump.png
65
%%DATADIR%%/images/kaffeine.png
19
%%DATADIR%%/images/lvi_album.png
66
%%DATADIR%%/images/lvi_album.png
67
%%DATADIR%%/images/lvi_album16x16.png
20
%%DATADIR%%/images/lvi_artist.png
68
%%DATADIR%%/images/lvi_artist.png
21
%%DATADIR%%/images/lvi_artist_favourite.png
69
%%DATADIR%%/images/lvi_artist_favourite.png
22
%%DATADIR%%/images/lvi_cdrom.png
70
%%DATADIR%%/images/lvi_cdrom.png
Lines 26-44 Link Here
26
%%DATADIR%%/images/lvi_playlist.png
74
%%DATADIR%%/images/lvi_playlist.png
27
%%DATADIR%%/images/lvi_smb.png
75
%%DATADIR%%/images/lvi_smb.png
28
%%DATADIR%%/images/madsmiley.png
76
%%DATADIR%%/images/madsmiley.png
29
%%DATADIR%%/images/pink_marble.png
77
%%DATADIR%%/images/mixxx.png
78
%%DATADIR%%/images/mplayer.png
79
%%DATADIR%%/images/music_sixteenthnote.png
80
%%DATADIR%%/images/noatun.png
81
%%DATADIR%%/images/play-off-Ch1.png
82
%%DATADIR%%/images/play-off-Ch2.png
83
%%DATADIR%%/images/play-on-Ch1.png
84
%%DATADIR%%/images/play-on-Ch2.png
85
%%DATADIR%%/images/player_enqueue.png
86
%%DATADIR%%/images/player_fwd.png
87
%%DATADIR%%/images/player_next.png
88
%%DATADIR%%/images/player_pause.png
89
%%DATADIR%%/images/player_play.png
90
%%DATADIR%%/images/player_prev.png
91
%%DATADIR%%/images/player_rew.png
92
%%DATADIR%%/images/player_stop.png
93
%%DATADIR%%/images/prelisten_enqueue.png
94
%%DATADIR%%/images/prelisten_fwd.png
95
%%DATADIR%%/images/prelisten_next.png
96
%%DATADIR%%/images/prelisten_pause.png
97
%%DATADIR%%/images/prelisten_play.png
98
%%DATADIR%%/images/prelisten_play2.png
99
%%DATADIR%%/images/prelisten_prev.png
100
%%DATADIR%%/images/prelisten_rew.png
101
%%DATADIR%%/images/prelisten_stop.png
102
%%DATADIR%%/images/prokyon_bump.png
103
%%DATADIR%%/images/prokyon_logo.png
30
%%DATADIR%%/images/smiley.png
104
%%DATADIR%%/images/smiley.png
31
%%DATADIR%%/images/splash4.png
105
%%DATADIR%%/images/splash5.png
32
share/locale/de/LC_MESSAGES/prokyon3.mo
106
%%DATADIR%%/images/totem.png
33
share/locale/fr/LC_MESSAGES/prokyon3.mo
107
%%DATADIR%%/images/up.png
34
share/locale/nl/LC_MESSAGES/prokyon3.mo
108
%%DATADIR%%/images/xmms.png
35
%%DATADIR%%/images/action_burncd.png
109
%%DATADIR%%/prokyon3_embedded_mysql.cnf
36
%%DATADIR%%/images/action_documentation.png
110
%%DATADIR%%/testmusicextras/test1.mp3
37
%%DATADIR%%/html/manual_one_file/images/docbook/important.png
111
%%DATADIR%%/testmusicextras/test2.mp3
38
%%DATADIR%%/html/manual_one_file/images/docbook/note.png
112
%%DATADIR%%/testmusicextras/test3.mp3
39
%%DATADIR%%/html/manual_one_file/images/docbook/tip.png
113
%%DATADIR%%/testmusicextras/test4.mp3
40
%%DATADIR%%/html/manual_one_file/images/docbook/warning.png
114
%%DATADIR%%/testmusicextras/test5.mp3
41
%%DATADIR%%/html/manual_one_file/index.html
115
%%DATADIR%%/testmusicextras/test6.mp3
116
%%DATADIR%%/testmusicextras/test7.mp3
117
%%DATADIR%%/testmusicextras/testresults.pdf
118
%%DATADIR%%/testmusicextras/testresults.sxw
119
@dirrm %%DATADIR%%/testmusicextras
42
@dirrm %%DATADIR%%/images
120
@dirrm %%DATADIR%%/images
43
@dirrm %%DATADIR%%/html/manual_one_file/images/docbook
121
@dirrm %%DATADIR%%/html/manual_one_file/images/docbook
44
@dirrm %%DATADIR%%/html/manual_one_file/images
122
@dirrm %%DATADIR%%/html/manual_one_file/images

Return to bug 124308