Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Apr 2003 22:54:32 -0400
From:      "Eric W. Bates" <ericx@vineyard.net>
To:        <ports@freebsd.org>
Subject:   problem with net/openldap20 Makfile
Message-ID:  <000701c30f8d$01ca33e0$3ee380cc@alice>

next in thread | raw e-mail | index | archive | help
openldap20/Makefile has a test to determine whether to build against
SleepyCat db3 or db4:

   .if exists(${LOCALBASE}/lib/libdb4.so)

On FreeBSD 4.8 (and other 4.x), ${LOCALBASE} is not defined at the
time the test is run, consequently the Makefile always elects to build
against db3:

 ** root@ethel ** /usr/ports/net/openldap20 ** Wed Apr 30 22:08:19
# make -d A
Global:.MAKEFLAGS =  -d
Global:.MAKEFLAGS =  -d A
...
Searching for /lib/libdb4.so...Looking for "/lib/libdb4.so"...failed.
Returning NULL
Global:DB_CFLAGS = -I${LOCALBASE}/include/db3
Global:LIB_DEPENDS = db3.3:${PORTSDIR}/databases/db3


I'm not facile with make; so I don't have an elegant
solution. grep'ping thru other Makefiles in ports indicates that other
port'ers have elected to require that a flag be set:

 mail/bmf
 mail/cyrus-imapd2

Thank you for your time.

--
Eric W. Bates



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000701c30f8d$01ca33e0$3ee380cc>