diff options
author | abs <abs@pkgsrc.org> | 2011-07-09 10:26:52 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2011-07-09 10:26:52 +0000 |
commit | 131f478bdac4f19b32a6dc23259e1a87260c3c3b (patch) | |
tree | a8764d5c158f5d6a2cf9eb20e8c65561ffe3f817 /audio | |
parent | 7afc2cc5610b20a1cab19f669f7a166b200854b8 (diff) | |
download | pkgsrc-131f478bdac4f19b32a6dc23259e1a87260c3c3b.tar.gz |
support other mysql versions
Diffstat (limited to 'audio')
-rw-r--r-- | audio/amarok/Makefile | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/audio/amarok/Makefile b/audio/amarok/Makefile index dc1229b17b2..32faca1d5fc 100644 --- a/audio/amarok/Makefile +++ b/audio/amarok/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.96 2011/04/22 13:42:50 obache Exp $ +# $NetBSD: Makefile,v 1.97 2011/07/09 10:26:52 abs Exp $ # DISTNAME= amarok-${VERS} VERS= 2.4.0 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= audio multimedia #MASTER_SITES= http://download.kde.org/unstable/amarok/${VERS}/src/ \ # ftp://gd.tuwien.ac.at/kde/unstable/amarok/${VERS}/src/ @@ -37,19 +37,27 @@ SUBST_MESSAGE.mysql= Fixup paths for MySQL embedded SUBST_FILES.mysql= cmake/modules/FindMySQLAmarok.cmake SUBST_FILES.mysql+= src/core-impl/collections/db/sql/mysqlecollection/CMakeLists.txt SUBST_SED.mysql= -e s:/opt/mysqle/:${BUILDLINK_PREFIX.mysql-server}: -SUBST_SED.mysql+= -e s:@@WLR@@:${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.mysql-server}/lib/mysql: +# Additional SUBST_SED.mysql added later based on mysql server version .include "options.mk" +.include "../../mk/mysql.buildlink3.mk" +.if ${_MYSQL_VERSION} == "55" +DEPENDS+= mysql-server-[0-9]*:../../databases/mysql55-server +SUBST_SED.mysql+= -e s:@@WLR@@:${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.mysql-server}/lib: +.elif ${_MYSQL_VERSION} == "51" +DEPENDS+= mysql-server-[0-9]*:../../databases/mysql51-server +SUBST_SED.mysql+= -e s:@@WLR@@:${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.mysql-server}/lib/mysql: +.else +DEPENDS+= mysql-server-[0-9]*:../../databases/mysql5-server +SUBST_SED.mysql+= -e s:@@WLR@@:${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.mysql-server}/lib/mysql: +.endif + .include "../../audio/liblastfm/buildlink3.mk" .include "../../audio/libofa/buildlink3.mk" BUILDLINK_API_DEPENDS.taglib+= taglib>=1.6nb1 .include "../../audio/taglib/buildlink3.mk" .include "../../audio/taglib-extras/buildlink3.mk" -BUILDLINK_API_DEPENDS.mysql-client+= mysql-client>=5.1.44nb1 -.include "../../databases/mysql51-client/buildlink3.mk" -BUILDLINK_API_DEPENDS.mysql-server+= mysql-server>=5.1.44nb1 -.include "../../databases/mysql51-server/buildlink3.mk" .include "../../devel/qtscriptgenerator/buildlink3.mk" .include "../../graphics/hicolor-icon-theme/buildlink3.mk" .include "../../meta-pkgs/kde4/kde4.mk" |