pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ap-auth-mysql we do need the LDFLAGS setting remov...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cf5cef37a337
branches:  trunk
changeset: 478124:cf5cef37a337
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Sat Jul 17 16:58:19 2004 +0000

description:
we do need the LDFLAGS setting removed in rev 1.2, put that back

we also want the apxs rules from www/apache/module.mk, since the package's
own Makefile doesn't propagate LDFLAGS; include www/apache/module.mk
AFTER mk/apache.mk, so that the right Apache buildlink3.mk is still used
for the build

diffstat:

 www/ap-auth-mysql/Makefile |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 64e1db70552e -r cf5cef37a337 www/ap-auth-mysql/Makefile
--- a/www/ap-auth-mysql/Makefile        Sat Jul 17 16:51:17 2004 +0000
+++ b/www/ap-auth-mysql/Makefile        Sat Jul 17 16:58:19 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/07/17 07:53:34 jdolecek Exp $
+# $NetBSD: Makefile,v 1.4 2004/07/17 16:58:19 jdolecek Exp $
 #
 
 DISTNAME=              libapache-mod-auth-mysql_4.3.1
@@ -17,17 +17,19 @@
 CONFIGURE_ARGS+=       --with-mysql-includes=${BUILDLINK_PREFIX.mysql-client}/include/mysql    \
                        --with-mysql-libs=${BUILDLINK_PREFIX.mysql-client}/lib/mysql
 CPPFLAGS+=             -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
+LDFLAGS+=              -L${BUILDLINK_PREFIX.mysql-client}/lib/mysql    \
+                       -lmysqlclient                                   \
+                       -Wl,${RPATH_FLAG}${PREFIX}/lib/mysql
 
 APACHE_MODULE=         YES
 APACHE_MODULE_NAME=    mod_auth_mysql.so
 
-do-install:
-       ${INSTALL_DATA} ${WRKSRC}/${PKG_APACHE}_${APACHE_MODULE_NAME} \
-               ${PREFIX}/lib/httpd/${APACHE_MODULE_NAME}
+post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_auth_mysql
        ${INSTALL_DATA} ${WRKSRC}/DIRECTIVES ${PREFIX}/share/doc/mod_auth_mysql
        ${INSTALL_DATA} ${WRKSRC}/USAGE ${PREFIX}/share/doc/mod_auth_mysql
 
 .include "../../databases/mysql-client/buildlink3.mk"
 .include "../../mk/apache.mk"
+.include "../../www/apache/module.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index