diff options
author | avilla <avilla@FreeBSD.org> | 2011-03-25 18:52:33 +0800 |
---|---|---|
committer | avilla <avilla@FreeBSD.org> | 2011-03-25 18:52:33 +0800 |
commit | a32e783594e801da55ec0ba378529417f648e83b (patch) | |
tree | 8ee29dcf502d4abb20f133de4066440b871aa6b0 /audio | |
parent | e46b73e54090e5a12a93aa018cbf478f0c25a9a6 (diff) | |
download | freebsd-ports-gnome-a32e783594e801da55ec0ba378529417f648e83b.tar.gz freebsd-ports-gnome-a32e783594e801da55ec0ba378529417f648e83b.tar.zst freebsd-ports-gnome-a32e783594e801da55ec0ba378529417f648e83b.zip |
- Add dependency on kio-upnp-ms.
- Fix crash with mysql 5.5.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/amarok-kde4/Makefile | 13 | ||||
-rw-r--r-- | audio/amarok-kde4/files/patch-src_core-impl_collections_db_sql_mysqlecollection_MySqlEmbeddedStorage.cpp | 13 |
2 files changed, 17 insertions, 9 deletions
diff --git a/audio/amarok-kde4/Makefile b/audio/amarok-kde4/Makefile index 4dfd6318c8a1..941d4e1ae875 100644 --- a/audio/amarok-kde4/Makefile +++ b/audio/amarok-kde4/Makefile @@ -6,7 +6,7 @@ PORTNAME= amarok PORTVERSION= 2.4.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= audio kde MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= stable/${PORTNAME}/${PORTVERSION}/src @@ -21,9 +21,9 @@ LIB_DEPENDS= tag.1:${PORTSDIR}/audio/taglib \ avcodec.1:${PORTSDIR}/multimedia/ffmpeg \ qca.2:${PORTSDIR}/devel/qca -BUILD_DEPENDS= ${LOCALBASE}/lib/qt4/plugins/script/libqtscript_core.so.1.0.0:${PORTSDIR}/devel/qtscriptgenerator \ - ${LOCALBASE}/share/xml/docbook/4.2/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml -RUN_DEPENDS= ${LOCALBASE}/lib/qt4/plugins/script/libqtscript_core.so.1.0.0:${PORTSDIR}/devel/qtscriptgenerator +BUILD_DEPENDS= ${LOCALBASE}/lib/qt4/plugins/script/libqtscript_core.so.1.0.0:${PORTSDIR}/devel/qtscriptgenerator +RUN_DEPENDS= ${LOCALBASE}/lib/qt4/plugins/script/libqtscript_core.so.1.0.0:${PORTSDIR}/devel/qtscriptgenerator \ + ${KDE4_PREFIX}/lib/kde4/kio_upnp_ms.so:${PORTSDIR}/net/kio-upnp-ms LATEST_LINK= ${PORTNAME}-kde4 @@ -71,15 +71,10 @@ CMAKE_ARGS+= -DWITH_Loudmouth:BOOL=Off PLIST_SUB+= LOUDMOUTH="@comment " .endif -.if ${OSVERSION} < 700000 -CMAKE_USE_PTHREAD= yes -.endif - post-extract: ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ ${WRKSRC}/cmake/modules/FindMySQLAmarok.cmake ${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include|' \ - ${WRKSRC}/cmake/modules/FindIpod.cmake \ ${WRKSRC}/cmake/modules/FindLoudmouth.cmake .include <bsd.port.mk> diff --git a/audio/amarok-kde4/files/patch-src_core-impl_collections_db_sql_mysqlecollection_MySqlEmbeddedStorage.cpp b/audio/amarok-kde4/files/patch-src_core-impl_collections_db_sql_mysqlecollection_MySqlEmbeddedStorage.cpp new file mode 100644 index 000000000000..0bdbf1bfb598 --- /dev/null +++ b/audio/amarok-kde4/files/patch-src_core-impl_collections_db_sql_mysqlecollection_MySqlEmbeddedStorage.cpp @@ -0,0 +1,13 @@ +--- ./src/core-impl/collections/db/sql/mysqlecollection/MySqlEmbeddedStorage.cpp ++++ ./src/core-impl/collections/db/sql/mysqlecollection/MySqlEmbeddedStorage.cpp +@@ -82,7 +82,9 @@ MySqlEmbeddedStorage::MySqlEmbeddedStorage( const QString &storageLocation ) + } + + setenv( "MYSQL_HOME", storagePath.toAscii().data(), 1 ); +- if( mysql_server_init( 0 , 0, 0 ) != 0 ) ++ setenv( "DEFAULT_HOME_ENV", storagePath.toAscii().data(), 1 ); ++ char *args[] = { "amarok" }; ++ if( mysql_library_init( 1 , args, 0 ) != 0 ) + { + error() << "MySQL library initialization failed."; + reportError( "init" ); |