From relaxbsd@gmail.com  Mon Jul 23 15:52:52 2007
Return-Path: <relaxbsd@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6B6FA16A417
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Jul 2007 15:52:52 +0000 (UTC)
	(envelope-from relaxbsd@gmail.com)
Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.239])
	by mx1.freebsd.org (Postfix) with ESMTP id 2A31D13C459
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Jul 2007 15:52:49 +0000 (UTC)
	(envelope-from relaxbsd@gmail.com)
Received: by nz-out-0506.google.com with SMTP id l8so1027828nzf
        for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Jul 2007 08:52:49 -0700 (PDT)
Received: by 10.140.157.12 with SMTP id f12mr985649rve.1185205968225;
        Mon, 23 Jul 2007 08:52:48 -0700 (PDT)
Received: from relaxbsd@gmail.com ( [218.77.100.96])
        by mx.google.com with ESMTPS id l21sm7280067rvb.2007.07.23.08.52.45
        (version=SSLv3 cipher=OTHER);
        Mon, 23 Jul 2007 08:52:47 -0700 (PDT)
Received: by relaxbsd@gmail.com (sSMTP sendmail emulation); Mon, 23 Jul 2007 23:52:42 +0800
Message-Id: <46a4cecf.15588c0a.5d49.4fce@mx.google.com>
Date: Mon, 23 Jul 2007 23:52:42 +0800
From: relaxbsd@gmail.com
Reply-To: relaxbsd@gmail.com
To: FreeBSD-gnats-submit@freebsd.org
Cc: relaxbsd@gmail.com
Subject: New port:multimedia/qmmp An audio player with Winamp GUI based on QT4
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         114831
>Category:       ports
>Synopsis:       New port:multimedia/qmmp An audio player with Winamp GUI based on QT4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    edwin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 23 16:00:01 GMT 2007
>Closed-Date:    Fri Sep 28 12:16:38 GMT 2007
>Last-Modified:  Fri Sep 28 12:16:38 GMT 2007
>Originator:     Yinghong.Liu
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD relaxbsd.org 6.2-STABLE FreeBSD 6.2-STABLE #0: Thu May 10 21:42:19 CST 2007 hamigua@relaxbsd.org:/usr/src/sys/i386/compile/LYH i386


	
>Description:
This program is an audio-player, written with help of Qt library.
The user interface is similar to winamp or xmms.

WWW: http://qmmp.ylsoftware.com/
	
>How-To-Repeat:
-Disable flac input plugin because it requires FLAC version >= 1.1.3 but the port:audio/flac current version is 1.1.2 (the flac port maintainer said that there was an incompatible API change between 1.1.2 and 1.1.3.)
-Outplugin only has "jack" one (alsa in FreeBSD is disable). the author said that oss plugin will be ready by 0.2 version. 0.2 version will be released in October or November.
	
>Fix:

	

--- qmmp.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	qmmp/
#	qmmp/Makefile
#	qmmp/distinfo
#	qmmp/files
#	qmmp/pkg-descr
#	qmmp/pkg-plist
#	qmmp/files/patch-lib_qmmp_Input_Input.pro
#	qmmp/files/patch-lib_qmmp_Output_Output.pro
#	qmmp/files/patch-src_symboldisplay.cpp
#
echo c - qmmp/
mkdir -p qmmp/ > /dev/null 2>&1
echo x - qmmp/Makefile
sed 's/^X//' >qmmp/Makefile << 'END-of-qmmp/Makefile'
X# New ports collection makefile for:	qmmp
X# Date created:		9 Jul 2007
X# Whom:                	Yinghong.Liu <relaxbsd@gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	qmmp
XDISTVERSION=	0.1.2
XCATEGORIES=	multimedia audio
XMASTER_SITES=	http://qmmp.ylsoftware.com/files/
X
XMAINTAINER=	relaxbsd@gmail.com
XCOMMENT=	An audio player with Winamp GUI based on QT4
X
XLIB_DEPENDS=	mad.2:${PORTSDIR}/audio/libmad \
X		ogg.5:${PORTSDIR}/audio/libogg \
X		tag.5:${PORTSDIR}/audio/taglib \
X		mpcdec.5:${PORTSDIR}/audio/libmpcdec \
X		jack.0:${PORTSDIR}/audio/jack \
X		avcodec.1:${PORTSDIR}/multimedia/ffmpeg
X
XUSE_BZIP2=	yes
XUSE_LDCONFIG=	yes
XUSE_QT_VER=	4
XQT_COMPONENTS=	qmake corelib moc uic rcc gui network xml
X
XMAKE_ARGS+=	INSTALL_ROOT=${PREFIX}
X
XPORTDOCS=	AUTHORS ChangeLog COPYING README ChangeLog.rus README.RUS
X
XDESKTOP_ENTRIES=	"Qmmp" \
X			"An audio player with Winamp GUI based on QT4" \
X			"qmmp" \
X			"qmmp" \
X			"Qt;KDE;AudioVideo;Player;" \
X			"false"
X
Xpre-build:
X	@${SETENV} ${MAKE_ENV} ${QMAKE} -spec ${QMAKESPEC}
X
Xpost-install:
X	@${CHMOD} a+x ${PREFIX}/bin/qmmp
X	@${CHMOD} a+x ${PREFIX}/bin/qmmp.real
X	@${MKDIR} ${PREFIX}/share/pixmaps
X	@${INSTALL_DATA} ${WRKSRC}/src/images/qmmp.xpm ${PREFIX}/share/pixmaps/
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for doc in ${PORTDOCS}
X	@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-qmmp/Makefile
echo x - qmmp/distinfo
sed 's/^X//' >qmmp/distinfo << 'END-of-qmmp/distinfo'
XMD5 (qmmp-0.1.2.tar.bz2) = 8d1ed451f9e3923e7e1c2ff67c8356dc
XSHA256 (qmmp-0.1.2.tar.bz2) = 8960123740b4ec3f3eb4b07f2fa73d1f0ecfe8844a5231b2cf933d3c2547baeb
XSIZE (qmmp-0.1.2.tar.bz2) = 334851
END-of-qmmp/distinfo
echo c - qmmp/files
mkdir -p qmmp/files > /dev/null 2>&1
echo x - qmmp/pkg-descr
sed 's/^X//' >qmmp/pkg-descr << 'END-of-qmmp/pkg-descr'
XThis program is an audio-player, written with help of Qt library.
XThe user interface is similar to winamp or xmms.
X
XWWW: http://qmmp.ylsoftware.com/
END-of-qmmp/pkg-descr
echo x - qmmp/pkg-plist
sed 's/^X//' >qmmp/pkg-plist << 'END-of-qmmp/pkg-plist'
Xbin/qmmp
Xbin/qmmp.real
Xlib/libqmmp.so
Xlib/libqmmp.so.1
Xlib/libqmmp.so.1.0
Xlib/libqmmp.so.1.0.0
Xlib/qmmp/Input/libffmpeg.so
Xlib/qmmp/Input/libmad.so
Xlib/qmmp/Input/libmpc.so
Xlib/qmmp/Input/libvorbis.so
Xlib/qmmp/Output/libjack.so
Xshare/pixmaps/qmmp.xpm
X@dirrm lib/qmmp/Output
X@dirrm lib/qmmp/Input
X@dirrm lib/qmmp
X@dirrmtry share/pixmaps
END-of-qmmp/pkg-plist
echo x - qmmp/files/patch-lib_qmmp_Input_Input.pro
sed 's/^X//' >qmmp/files/patch-lib_qmmp_Input_Input.pro << 'END-of-qmmp/files/patch-lib_qmmp_Input_Input.pro'
X--- lib/qmmp/Input/Input.pro.orig	Mon Jul 23 22:42:37 2007
X+++ lib/qmmp/Input/Input.pro	Mon Jul 23 22:42:54 2007
X@@ -10,13 +10,6 @@
X     message(***************************)
X }
X 
X-contains(CONFIG, FLAC_PLUGIN){
X-    SUBDIRS += flac
X-    message(***********************)
X-    message(* FLAC plugin enabled *)
X-    message(***********************)
X-}
X-
X contains(CONFIG, FFMPEG_PLUGIN){
X    SUBDIRS += ffmpeg
X    message(*************************)
END-of-qmmp/files/patch-lib_qmmp_Input_Input.pro
echo x - qmmp/files/patch-lib_qmmp_Output_Output.pro
sed 's/^X//' >qmmp/files/patch-lib_qmmp_Output_Output.pro << 'END-of-qmmp/files/patch-lib_qmmp_Output_Output.pro'
X--- lib/qmmp/Output/Output.pro.orig	Tue Jul 10 21:35:40 2007
X+++ lib/qmmp/Output/Output.pro	Tue Jul 10 21:36:13 2007
X@@ -8,8 +8,6 @@
X CONFIG += release warn_on 
X TEMPLATE = subdirs
X 
X-SUBDIRS += alsa
X-
X contains(CONFIG, JACK_PLUGIN){
X     SUBDIRS += jack
X     message(***********************)
END-of-qmmp/files/patch-lib_qmmp_Output_Output.pro
echo x - qmmp/files/patch-src_symboldisplay.cpp
sed 's/^X//' >qmmp/files/patch-src_symboldisplay.cpp << 'END-of-qmmp/files/patch-src_symboldisplay.cpp'
X--- src/symboldisplay.cpp.orig	Fri Jun 22 14:23:48 2007
X+++ src/symboldisplay.cpp	Fri Jun 22 14:30:08 2007
X@@ -32,7 +32,7 @@
X     connect ( m_skin, SIGNAL ( skinChanged() ), this, SLOT (draw()));
X     draw();
X     for(int i=0; i<m_digits; ++i)
X-        m_max += 9 * (int) exp10(i);
X+        m_max += 9 * (int) exp(i);
X }
X 
X 
END-of-qmmp/files/patch-src_symboldisplay.cpp
exit
--- qmmp.shar ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: arved 
State-Changed-When: Sun Jul 29 16:55:42 UTC 2007 
State-Changed-Why:  
The application looks nice, but i was not able to play anything on my 
FreeBSD-amd64 Desktop. 

On play, the application crashed with the following backtrace: 

#0  0x00000008006e31a5 in qMetaTypeDeleteHelper<DecoderState> () 
from /usr/local/bin/../lib/libqmmp.so.1 
#1  0x000000080241de33 in QMetaType::destroy (type=Variable "type" is not available. 
) 
at kernel/qmetatype.cpp:1206 
#2  0x00000008024212d3 in ~QMetaCallEvent (this=0x806f802f0) 
at kernel/qobject.cpp:509 
#3  0x0000000802416b08 in QCoreApplicationPrivate::sendPostedEvents ( 
receiver=0x0, event_type=0, data=0x803813080) 
at kernel/qcoreapplication.cpp:1102 
#4  0x0000000802416cc5 in QCoreApplication::sendPostedEvents (receiver=0x0, 
event_type=-1) at kernel/qcoreapplication.cpp:970 
#5  0x0000000802434a0f in postEventSourceDispatch (s=Variable "s" is not available. 
) 
at kernel/qeventdispatcher_glib.cpp:194 
[....] 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114831 
State-Changed-From-To: analyzed->feedback 
State-Changed-By: edwin 
State-Changed-When: Sun Sep 9 09:31:59 UTC 2007 
State-Changed-Why:  
Xpre-build: 
X        @${SETENV} ${MAKE_ENV} ${QMAKE} -spec ${QMAKESPEC} 

According to qmake-qt4, -spec isn't a valid parameter: 


ot@build4 /usr/ports/NEW/qmmp]# make pre-build 
Usage: /usr/local/bin/qmake-qt4 [mode] [options] [files] 

QMake has two modes, one mode for generating project files based on 
some heuristics, and the other for generating makefiles. Normally you 
shouldn't need to specify a mode, as makefile generation is the default 
mode for qmake, but you may use this to test qmake on an existing project 

Mode: 
-project       Put qmake into project file generation mode 
In this mode qmake interprets files as files to 
be built, 
defaults to *.c; *.ui; *.y; *.l; *.ts; *.qrc; *.h; *.hpp; *.hh; *.hxx; *.H; *.cpp; *.cc; *.cxx; *.C 
-makefile      Put qmake into makefile generation mode (default) 
In this mode qmake interprets files as project files to 
be processed, if skipped qmake will try to find a project 
file in your current working directory 




Responsible-Changed-From-To: freebsd-ports-bugs->edwin 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Sep 9 09:31:59 UTC 2007 
Responsible-Changed-Why:  
I'll handle with submitter. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114831 
State-Changed-From-To: feedback->closed 
State-Changed-By: edwin 
State-Changed-When: Fri Sep 28 12:16:14 UTC 2007 
State-Changed-Why:  
Timeout. Feel free to reopen the PR when you have an update. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114831 
>Unformatted:
