[MacPorts] #19960: kdebase4-runtime 4.2.4 fails to install without phonon installed

MacPorts noreply at macports.org
Tue Jun 16 09:52:52 PDT 2009


#19960: kdebase4-runtime 4.2.4 fails to install without phonon installed
-----------------------------+----------------------------------------------
 Reporter:  dan@…            |       Owner:  illogic-al@…           
     Type:  defect           |      Status:  new                    
 Priority:  Normal           |   Milestone:                         
Component:  ports            |     Version:  1.7.1                  
 Keywords:                   |        Port:  kdebase4-runtime       
-----------------------------+----------------------------------------------

Comment(by dan@…):

 BTW, I do have ${prefix}/libexec/${qt}/lib/phonon.framework/phonon, but

 $ port provides /opt/local/libexec/qt4-mac/lib/phonon.framework/phonon
 /Users/ddennedy/opt/local/libexec/qt4-mac/lib/phonon.framework/phonon is
 not provided by a MacPorts port.

 Hmm, did I get it from a Qt SDK install?

 {{{

 # Use CMake Portgroup
 PortGroup               cmake 1.0

 depends_build-append    port:automoc

 use_parallel_build      yes

 worksrcdir              build

 post-extract            { file mkdir ${worksrcpath} }

 set qt                  qt4-mac
 set qt_dir              ${prefix}/libexec/${qt}

 post-patch {
     if { ![file exists
 ${prefix}/libexec/${qt}/lib/phonon.framework/phonon] } {
         ui_error "######################################################"
         ui_error "A copy of phonon could not be found. Please install  "
         ui_error "${qt} to provide this. If you have already done this "
         ui_error "your Qt installation is missing the phonon backend.  "
         ui_error "Please reinstall Qt4 with phonon support.            "
         ui_error "######################################################"
     }
 }

 depends_lib-append      port:${qt}

 configure.compiler      gcc-4.2

 configure.args-append   -DBUILD_doc=OFF \
                         -DBUILD_SHARED_LIBS=ON \
                         -DBUNDLE_INSTALL_DIR=${applications_dir}/KDE4 \
                         -DPHONON_INCLUDE_DIR=${qt_dir}/include \
 -DPHONON_LIBRARY=${qt_dir}/lib/phonon.framework/phonon \
                         -DQT_QMAKE_EXECUTABLE=${qt_dir}/bin/qmake \
                         -DKDE_DISTRIBUTION_TEXT="MacPorts\/Mac OS X"

 variant docs description "Build documentation" {
     depends_lib-append      port:doxygen
     configure.args-delete   -DBUILD_doc=OFF
 }

 post-activate {
     ui_msg "##########################################################"
     ui_msg "# Don't forget that dbus needs to be started as the local "
     ui_msg "# user (not with sudo) before any KDE programs will launch"
     ui_msg "# To start it run the following command:                  "
     ui_msg "# launchctl load /Library/LaunchAgents/org.freedesktop.dbus-
 session.plist"
     ui_msg "##########################################################"
     ui_msg " "
     ui_msg "######################################################"
     ui_msg "#  Programs will not start until you run the command "
     ui_msg "#  'sudo chown -R \$USER ~/Library/Preferences/KDE'  "
     ui_msg "#  replacing \$USER with your username, followed by  "
     ui_msg "#  'open ${applications_dir}/KDE4/kdeinit4.app'      "
     ui_msg "#  in a Terminal.                                    "
     ui_msg "######################################################"
 }

 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/19960#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list