diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-06 16:01:42 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-06 16:01:42 +0000 |
commit | f7c7d5c37f620b04ea1d1215c29f30cda6de8f09 (patch) | |
tree | 4cc7ff4d502daf94086d3064592117a037e71fae /databases/mysql4-server | |
parent | 1f6b5714ecb2cd0143015db1a32d25be235ff0d9 (diff) | |
download | pkgsrc-f7c7d5c37f620b04ea1d1215c29f30cda6de8f09.tar.gz |
+ Honor PKGINFODIR in mysql4-client.
+ Remove explicit naming of "-lncurses -ltermcap" as the way to get
the termcap libraries. Including termcap.buildlink3.mk (indirectly
through including readline/buildlink3.mk) will do the right thing.
+ Remove readline dependency from Makefile.common and add it into
mysql4-client/Makefile. Only the -client package needs and uses
readline. The -server package only "needs" it to placate the
configure script, but none of its installed binaries are linked
against it.
+ Add full DESTDIR support to the -client and -server packages.
Bump the PKGREVISION of mysql4-client to 3.
The PKGREVISION of mysql4-server remains unchanged since there are
no user-visible changes to the binary package.
Diffstat (limited to 'databases/mysql4-server')
-rw-r--r-- | databases/mysql4-server/Makefile | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/databases/mysql4-server/Makefile b/databases/mysql4-server/Makefile index ffa0fc67717..5d6e3396b4b 100644 --- a/databases/mysql4-server/Makefile +++ b/databases/mysql4-server/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.34 2008/01/18 05:06:27 tnn Exp $ +# $NetBSD: Makefile,v 1.35 2008/03/06 16:01:42 jlam Exp $ PKGNAME= ${DISTNAME:S/-/-server-/} SVR4_PKGNAME= mysqs @@ -7,6 +7,8 @@ COMMENT= MySQL 4, a free SQL database (server) CONFLICTS= {mysql-server-[0-9]*,mysql3-server-[0-9]*} +PKG_DESTDIR_SUPPORT= user-destdir + .include "../../databases/mysql4-client/Makefile.common" REPLACE_PERL+= mysql-test/mysql-test-run.pl @@ -38,11 +40,18 @@ MESSAGE_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR} \ BUILD_DEFS+= MYSQL_DATADIR BUILD_DIRS= ${WRKSRC} ${WRKSRC}/man +INSTALLATION_DIRS= bin + .include "../../databases/mysql4-client/buildlink3.mk" -BUILDLINK_DEPMETHOD.readline=build -.include "../../devel/readline/buildlink3.mk" .include "../../security/tcp_wrappers/buildlink3.mk" +# We only need readline to placate the configure script. None of the +# binaries are actually linked against -lreadline, so make this only +# a build-time dependency. +# +BUILDLINK_DEPMETHOD.readline= build +.include "../../devel/readline/buildlink3.mk" + post-extract: chmod -x ${WRKSRC}/mysql-test/mysql-test-run.pl @@ -50,15 +59,19 @@ post-configure: cd ${WRKSRC} && ${CP} -f config.h include/my_config.h post-build: - cd ${WRKSRC}/scripts && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \ - ${MAKE_FLAGS} mysqld_safe mysql_install_db mysqldumpslow + cd ${WRKSRC}/scripts && \ + ${BUILD_MAKE_CMD} mysqld_safe mysql_install_db mysqldumpslow post-install: - ${INSTALL_SCRIPT} ${WRKSRC}/scripts/mysqld_safe ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/scripts/mysql_install_db ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/scripts/mysqldumpslow ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/support-files/mysql.server ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/mysqld_safe \ + ${DESTDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/mysql_install_db \ + ${DESTDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/mysqldumpslow \ + ${DESTDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/support-files/mysql.server \ + ${DESTDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/scripts/mysql_secure_installation.sh \ - ${PREFIX}/bin/mysql_secure_installation + ${DESTDIR}${PREFIX}/bin/mysql_secure_installation .include "../../mk/bsd.pkg.mk" |