pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/chat/jabberd2 Welcome to the new world: bsd.options.mk.
details: https://anonhg.NetBSD.org/pkgsrc/rev/f2fbfa2a7291
branches: trunk
changeset: 478835:f2fbfa2a7291
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Sat Jul 31 00:01:04 2004 +0000
description:
Welcome to the new world: bsd.options.mk.
diffstat:
chat/jabberd2/Makefile | 23 ++---------------------
chat/jabberd2/Makefile.options | 40 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 21 deletions(-)
diffs (81 lines):
diff -r d2b171b5620f -r f2fbfa2a7291 chat/jabberd2/Makefile
--- a/chat/jabberd2/Makefile Fri Jul 30 23:25:07 2004 +0000
+++ b/chat/jabberd2/Makefile Sat Jul 31 00:01:04 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2004/07/18 18:55:14 kristerw Exp $
+# $NetBSD: Makefile,v 1.9 2004/07/31 00:01:04 xtraeme Exp $
#
DISTNAME= jabberd-2.0s3
@@ -63,26 +63,7 @@
CONF_FILES+= ${EGDIR}/roster.xml ${PKG_SYSCONFDIR}/roster.xml
.undef f
-.if !empty(JABBERD_METHOD:Mdb)
-# # Directory to store the database files
-JABBERD_DBDIR?= ${VARBASE}/db/jabberd
-BUILD_DEFS+= JABBERD_DBDIR
-CONFIGURE_ARGS+= --enable-db
-. include "../../databases/db4/buildlink3.mk"
-.elif !empty(JABBERD_METHOD:Mmysql)
-CONFIGURE_ARGS+= --enable-mysql
-CPPFLAGS+= -I${LOCALBASE}/include/mysql
-. include "../../databases/mysql4-client/buildlink3.mk"
-.elif !empty(JABBERD_METHOD:Mpgsql)
-CONFIGURE_ARGS+= --enable-pgsql
-. include "../../databases/postgresql74-lib/buildlink3.mk"
-.elif !empty(JABBERD_METHOD:Mldap)
-CONFIGURE_ARGS+= --enable-ldap
-. include "../../databases/openldap/buildlink3.mk"
-.elif !empty(JABBERD_METHOD:Mpam)
-CONFIGURE_ARGS+= --enable-pam
-. include "../../security/PAM/buildlink3.mk"
-.endif
+.include "Makefile.options"
.for f in ${JABBERD_LOGDIR} ${JABBERD_DBDIR} ${JABBERD_PIDDIR}
OWN_DIRS_PERMS+= ${f} ${JABBERD_USER} ${JABBERD_GROUP} 770
diff -r d2b171b5620f -r f2fbfa2a7291 chat/jabberd2/Makefile.options
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/jabberd2/Makefile.options Sat Jul 31 00:01:04 2004 +0000
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile.options,v 1.1 2004/07/31 00:01:04 xtraeme Exp $
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.jabberd2
+PKG_SUPPORTED_OPTIONS= db mysql mysql4 pgsql ldap pam
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdb)
+BUILD_DEFS+= JABBERD_DBDIR
+JABBERD_DBDIR?= ${VARBASE}/db/jabberd
+CONFIGURE_ARGS+= --enable-db
+. include "../../databases/db4/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mmysql)
+CONFIGURE_ARGS+= --enable-mysql
+CPPFLAGS+= -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
+. include "../../databases/mysql-client/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mmysql4)
+CONFIGURE_ARGS+= --enable-mysql
+CPPFLAGS+= -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
+. include "../../databases/mysql4-client/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+CONFIGURE_ARGS+= --enable-pgsql
+. include "../../mk/pgsql.buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mldap)
+CONFIGURE_ARGS+= --enable-ldap
+. include "../../databases/openldap/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mpam)
+CONFIGURE_ARGS+= --enable-pam
+. include "../../security/PAM/buildlink3.mk"
+.endif
Home |
Main Index |
Thread Index |
Old Index