diff options
author | jlam <jlam> | 2001-05-02 08:22:28 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-05-02 08:22:28 +0000 |
commit | 471bb09a02a4d442ce9b79b21fdec1a689991f69 (patch) | |
tree | 238f28220cf06bf5270cc30229506b0211f64ca9 /databases/mysql-client/Makefile | |
parent | 52923d51e756fc920ff007357ab7372ee9140443 (diff) | |
download | pkgsrc-471bb09a02a4d442ce9b79b21fdec1a689991f69.tar.gz |
* Rearrange MySQL build structure by providing a Makefile.common that is
included by both mysql-server/Makefile and mysql-client/Makefile.
* Remove some unnecessary patches from mysql-client.
* Remove build dependency on autoconf as we don't really need to use it.
* Improve detection of native readline library.
* Provide INSTALL/DEINSTALL scripts to perform initial database setup and
to remind the package administrator to remove unnecessary directories upon
package removal.
* Use complete path to chown in various installed scripts. Fixes pkg/12725.
* Install server manpages with the server package. Fixes pkg/12724.
Diffstat (limited to 'databases/mysql-client/Makefile')
-rw-r--r-- | databases/mysql-client/Makefile | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/databases/mysql-client/Makefile b/databases/mysql-client/Makefile index c71bdc942a9..5c337670904 100644 --- a/databases/mysql-client/Makefile +++ b/databases/mysql-client/Makefile @@ -1,35 +1,36 @@ -# $NetBSD: Makefile,v 1.13 2001/03/26 13:26:42 bad Exp $ +# $NetBSD: Makefile,v 1.14 2001/05/02 08:22:28 jlam Exp $ # -DISTNAME= mysql-3.23.35 -PKGNAME= ${DISTNAME:S/-/-client-/} -CATEGORIES= databases -MASTER_SITES= ftp://ftp.mysql.com/MySQL-3.23/ \ - ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MySQL-3.23/ +.include "../../databases/mysql-client/Makefile.common" -MAINTAINER= packages@netbsd.org -HOMEPAGE= http://www.mysql.com/ -COMMENT= MySQL, a free SQL database (client) +PKGNAME= ${DISTNAME:S/-/-client-/} +COMMENT= MySQL, a free SQL database (client) -GNU_CONFIGURE= yes -CONFIGURE_ARGS+=--without-perl --without-debug --without-bench \ - --without-server --with-named-curses-libs="-lcurses -ltermcap" +INFO_FILES= mysql.info -.if exists(/usr/include/readline.h) -CONFIGURE_ARGS+=--without-readline -.endif +CONFIGURE_ARGS+= --without-server -CFLAGS+= -Dunix - -USE_PERL5= yes -USE_LIBTOOL= yes -LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig +.if exists(/usr/include/readline.h) || exists(/usr/include/readline/readline.h) +CONFIGURE_ENV+= readline_lib="edit" +.else +DEPENDS+= readline>=4.0:../../devel/readline +CPPFLAGS+= -I${LOCALBASE}/include +.endif -INFO_FILES= mysql.info +# The compilation looks for <readline/readline.h>, so make sure +# /usr/include/readline.h may be accessed that way if it's the readline +# header available on the system. +# +.if exists(/usr/include/readline.h) +CPPFLAGS+= -I${WRKDIR} -EXTRACT_USING_PAX= yes +pre-build: + ${RM} -f ${WRKDIR}/readline + ${LN} -sf /usr/include ${WRKDIR}/readline +.endif -pre-install: +post-install: + cd ${PREFIX}/man/man1; ${RM} -f mysqld.1 safe_mysqld.1 ${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info .include "../../mk/bsd.pkg.mk" |