diff options
author | jlam <jlam@pkgsrc.org> | 2004-11-17 14:23:54 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-11-17 14:23:54 +0000 |
commit | ea4dab30b4aef366e1415d01137b7ad1e0d507ab (patch) | |
tree | 673fd4bf3a845bf2fe62e18dcfb1a1ada05afda4 /mail/exim | |
parent | 91bc1592f9a36bda908ebaa7f02c5703f35011b4 (diff) | |
download | pkgsrc-ea4dab30b4aef366e1415d01137b7ad1e0d507ab.tar.gz |
Instead of checking every BDB type, just use the *.${BDB_TYPE} variables
that contain the correct values of CPPFLAGS, LDFLAGS, and LIBS.
Diffstat (limited to 'mail/exim')
-rw-r--r-- | mail/exim/Makefile.common | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/mail/exim/Makefile.common b/mail/exim/Makefile.common index cbf835388fe..eb0af4711bc 100644 --- a/mail/exim/Makefile.common +++ b/mail/exim/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.19 2004/11/01 17:25:25 abs Exp $ +# $NetBSD: Makefile.common,v 1.20 2004/11/17 14:23:54 jlam Exp $ MASTER_SITES= ftp://ftp.exim.org/pub/exim/exim4/ \ ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/ \ @@ -46,20 +46,8 @@ EXIM_INCLUDE= -I${PREFIX}/include .else # use native or Berkeley DB as defined by BDB_DEFAULT and BDB_ACCEPTED . include "../../mk/bdb.buildlink3.mk" EXIM_USE_DB_CONFIG= USE_DB=yes # the default -. if ${BDB_TYPE} == "db4" -EXIM_DBMLIB= DBMLIB=${COMPILER_RPATH_FLAG}${LOCALBASE}/${BUILDLINK_LIBDIRS.db4} -L${LOCALBASE}/${BUILDLINK_LIBDIRS.db4} -ldb4 -EXIM_INCLUDE= -I${PREFIX}/${BUILDLINK_INCDIRS.db4} -. elif ${BDB_TYPE} == "db3" -EXIM_DBMLIB= DBMLIB=${COMPILER_RPATH_FLAG}${LOCALBASE}/${BUILDLINK_LIBDIRS.db3} -L${LOCALBASE}/${BUILDLINK_LIBDIRS.db3} -ldb3 -EXIM_INCLUDE= -I${PREFIX}/${BUILDLINK_INCDIRS.db3} -. elif ${BDB_TYPE} == "db2" -EXIM_DBMLIB= DBMLIB=${COMPILER_RPATH_FLAG}${LOCALBASE}/${BUILDLINK_LIBDIRS.db2} -L${LOCALBASE}/${BUILDLINK_LIBDIRS.db2} -ldb2 -EXIM_INCLUDE= -I${PREFIX}/${BUILDLINK_INCDIRS.db2} -. else # using native -EXIM_DBMLIB= # empty so use defaults -EXIM_USE_DB_CONFIG= # empty so use defaults -EXIM_INCLUDE= -I/usr/${BUILDLINK_INCDIRS.db-native} -. endif +EXIM_DBMLIB= DBMLIB=${COMPILER_RPATH_FLAG}${BDBBASE}/${BUILDLINK_LIBDIRS.${BDB_TYPE}} -L${BDBBASE}/${BUILDLINK_LIBDIRS.${BDB_TYPE}} ${BDB_LIBS} +EXIM_INCLUDE= -I${BDBBASE}/${BUILDLINK_INCDIRS.${BDB_TYPE}} .endif pre-patch: |