summaryrefslogtreecommitdiff
path: root/databases/mysqlcc/Makefile
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2010-03-05 13:50:03 +0000
committertaca <taca@pkgsrc.org>2010-03-05 13:50:03 +0000
commitc8fa91a30ec48e8e5c3e0c40aca99ff6b0a7324e (patch)
treeede2af89b28941c2dd08747bbc563914225bf1e0 /databases/mysqlcc/Makefile
parent2f81d624d294367d302ad0a0ba4fc032eaabcd01 (diff)
downloadpkgsrc-c8fa91a30ec48e8e5c3e0c40aca99ff6b0a7324e.tar.gz
Update mysqlcc to 0.9.8.
* Suppoer mysql4 and mysql5 (but not mysql51 because of API change). * Install supporting files. Changes for 0.9.8 ----------------- * Created a conditional for mysql_shutdown to check for the existance of SHUTDOWN_DEFAULT in order to work with older mysql client libraries * Changed requirement for qpopmenu.h to qpopupmenu.h in include/CProperties.h and src/CTableTools.cpp * Added /usr/share/qt3 to the list of places to look for qt3 (fixes Debian problems) Notes for 0.9.7 ---------------- This is a development release. Henceforth, version numbers will follow the Linux kernel standard wherein odd numbered releases (such as 0.9.7) refer to development releases and even numbered releases (such as 0.9.8) refer to stable releases. Users connecting to or using MySQL 5 libraries should be using this release. Users still connecting only to MySQL 4 or lower servers should continue using version 0.9.4. This is an issue which will be addressed by version 0.9.8 and, if that version is available at the time you read this, that version should be used instead. Changes for 0.9.7 ----------------- * Changed the call to mysql_shutdown to include SHUTDOWN_DEFAULT as required by MySQL >= 5 client libraries in CMySQL.cpp * Repaired default_table assignment in CQueryWindow.cpp
Diffstat (limited to 'databases/mysqlcc/Makefile')
-rw-r--r--databases/mysqlcc/Makefile27
1 files changed, 20 insertions, 7 deletions
diff --git a/databases/mysqlcc/Makefile b/databases/mysqlcc/Makefile
index 22f69e221e6..5c4970f418e 100644
--- a/databases/mysqlcc/Makefile
+++ b/databases/mysqlcc/Makefile
@@ -1,11 +1,10 @@
-# $NetBSD: Makefile,v 1.27 2010/01/18 09:58:43 wiz Exp $
+# $NetBSD: Makefile,v 1.28 2010/03/05 13:50:03 taca Exp $
#
-DISTNAME= mysqlcc-0.9.4-src
+DISTNAME= mysqlcc-0.9.8-src
PKGNAME= ${DISTNAME:S/-src//}
-PKGREVISION= 12
CATEGORIES= databases
-MASTER_SITES= # ${MASTER_SITE_SOURCEFORGE:=mysqlcc/}
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mysqlcc/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mysqlcc.sourceforge.net/
@@ -15,7 +14,7 @@ PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= c c++
USE_PKGLOCALEDIR= YES
-USE_TOOLS+= automake
+USE_TOOLS+= autoconf automake
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= \
--with-mysql-lib=${BUILDLINK_PREFIX.mysql-client}/lib/mysql
@@ -25,15 +24,29 @@ CONFIGURE_ARGS+= --with-openssl-includes=${SSLBASE}/include
CONFIGURE_ARGS+= --with-openssl-lib=${SSLBASE}/lib
CONFIGURE_ENV+= QMAKESPEC="${QTDIR}/mkspecs/netbsd-g++"
-MYSQL_VERSIONS_ACCEPTED= 41
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= src/CApplication.cpp
+SUBST_SED.paths= -e "s|@PREFIX@|${PREFIX}|"
+SUBST_MESSAGE.paths= Fixing paths.
-INSTALLATION_DIRS= bin
+MYSQL_VERSIONS_ACCEPTED= 50 41
+
+INSTALLATION_DIRS= bin share/mysqlcc/translations
+SUPPORT_FILES= error.wav information.wav syntax.txt warning.wav
pre-configure:
cd ${WRKSRC} && aclocal && autoconf
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mysqlcc ${DESTDIR}${PREFIX}/bin
+.for f in ${SUPPORT_FILES}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/mysqlcc
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/translations/*.qm \
+ ${DESTDIR}${PREFIX}/share/mysqlcc/translations
+ ${INSTALL_DATA} ${WRKSRC}/translations/*.ts \
+ ${DESTDIR}${PREFIX}/share/mysqlcc/translations
.include "../../security/openssl/buildlink3.mk"
.include "../../x11/qt3-tools/buildlink3.mk"