pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/chat/jabberd2 Fix and simplify workaround for broken d...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a02201e44871
branches: trunk
changeset: 542780:a02201e44871
user: obache <obache%pkgsrc.org@localhost>
date: Tue May 27 13:23:43 2008 +0000
description:
Fix and simplify workaround for broken db4 library detection.
Should fix PR 38354.
While here, add DESTDIR support.
diffstat:
chat/jabberd2/Makefile | 18 +++++++++---------
chat/jabberd2/options.mk | 11 +++++------
2 files changed, 14 insertions(+), 15 deletions(-)
diffs (79 lines):
diff -r d1c4cec293c6 -r a02201e44871 chat/jabberd2/Makefile
--- a/chat/jabberd2/Makefile Tue May 27 12:40:49 2008 +0000
+++ b/chat/jabberd2/Makefile Tue May 27 13:23:43 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.46 2008/05/25 21:23:25 wiz Exp $
+# $NetBSD: Makefile,v 1.47 2008/05/27 13:23:43 obache Exp $
#
DISTNAME= jabberd-2.1.23
@@ -11,14 +11,14 @@
HOMEPAGE= http://jabberd2.xiaoka.com/
COMMENT= Instant messaging server (version 2)
+PKG_DESTDIR_SUPPORT= user-destdir
+
CONFLICTS= jabberd-[0-9]*
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
-BUILDLINK_FNAME_TRANSFORM.db4+= -e "s,/db4/,/,g"
-
SUBST_CLASSES+= path
SUBST_STAGE.path= post-patch
SUBST_FILES.path= configure
@@ -102,17 +102,17 @@
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/etc/templates/roster.xml.dist.in \
- ${EGDIR}/roster.xml
- ${INSTALL_SCRIPT} ${WRKSRC}/tools/pipe-auth.pl ${BINDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/tools/migrate.pl ${BINDIR}
+ ${DESTDIR}${EGDIR}/roster.xml
+ ${INSTALL_SCRIPT} ${WRKSRC}/tools/pipe-auth.pl ${DESTDIR}${BINDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/tools/migrate.pl ${DESTDIR}${BINDIR}
.for f in ${DBFILES}
- ${INSTALL_DATA} ${WRKSRC}/tools/${f} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/tools/${f} ${DESTDIR}${EGDIR}
.endfor
.for f in ${FILES}
- ${INSTALL_DATA} ${WRKSRC}/etc/${f} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/etc/${f} ${DESTDIR}${EGDIR}
.endfor
.for f in ${DOCFILES}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR}
.endfor
.include "../../converters/libiconv/buildlink3.mk"
diff -r d1c4cec293c6 -r a02201e44871 chat/jabberd2/options.mk
--- a/chat/jabberd2/options.mk Tue May 27 12:40:49 2008 +0000
+++ b/chat/jabberd2/options.mk Tue May 27 13:23:43 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.20 2008/04/12 22:42:58 jlam Exp $
+# $NetBSD: options.mk,v 1.21 2008/05/27 13:23:43 obache Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.jabberd2
@@ -17,15 +17,14 @@
PLIST_VARS+= db ldap mysql pam pgsql sqlite
.if !empty(PKG_OPTIONS:Mauth-db) || !empty(PKG_OPTIONS:Mstorage-db)
+. include "../../databases/db4/buildlink3.mk"
+# XXX: configure script is broken, always using -ldb even if detect db4.
SUBST_CLASSES+= fixdb
-SUBST_STAGE.fixdb= post-configure
+SUBST_STAGE.fixdb= pre-configure
SUBST_FILES.fixdb= storage/Makefile.in
-SUBST_SED.fixdb= -e "s|@DB_LIBS@||g"
-BUILDLINK_TRANSFORM+= rm:-ldb
-BDB_ACCEPTED= db4
+SUBST_SED.fixdb= -e "s|@DB_LIBS@|${BUILDLINK_LDADD.db4}|g"
PLIST.db= yes
CONFIGURE_ARGS+= --enable-db
-. include "../../mk/bdb.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-db
.endif
Home |
Main Index |
Thread Index |
Old Index