mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
COMMENT-main = "little brother's database", email address query tools
|
|
COMMENT-ldap = LDAP support for lbdb
|
|
|
|
DISTNAME = lbdb-0.54
|
|
|
|
CATEGORIES = databases mail
|
|
|
|
# https://github.com/RolandRosenfeld/lbdb
|
|
HOMEPAGE = https://www.spinnaker.de/lbdb/
|
|
|
|
MULTI_PACKAGES = -main -ldap
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB-main = c iconv
|
|
|
|
SITES = https://www.spinnaker.de/lbdb/download/
|
|
|
|
BUILD_DEPENDS = ${RUN_DEPENDS-main}
|
|
LIB_DEPENDS-main = converters/libiconv
|
|
RUN_DEPENDS-main = mail/abook \
|
|
sysutils/ggrep \
|
|
textproc/gsed
|
|
RUN_DEPENDS-ldap = databases/p5-ldap \
|
|
databases/lbdb
|
|
|
|
LIB_DEPENDS-ldap =
|
|
WANTLIB-ldap =
|
|
|
|
MAKE_ENV = install_prefix=${WRKINST}
|
|
|
|
TEST_TARGET = test
|
|
USE_GMAKE = Yes
|
|
CONFIGURE_STYLE = gnu
|
|
|
|
CONFIGURE_ARGS += --libdir=${PREFIX}/lib/lbdb \
|
|
--with-libiconv-prefix=${LOCALBASE} \
|
|
--without-addr-email \
|
|
--without-niscat \
|
|
--without-gpg \
|
|
--without-pgpk \
|
|
--without-pgp \
|
|
--without-evolution-addressbook-export \
|
|
--enable-lbdb-dotlock
|
|
CONFIGURE_ENV = ac_cv_path_BASH=NONE \
|
|
ac_cv_path_GAWK=NONE \
|
|
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
|
|
|
WRKDIST = ${WRKDIR}/${DISTNAME:S/_/-/}
|
|
|
|
post-extract:
|
|
sed -i -e 's,grep,ggrep,g' -e 's,sed,gsed,g' ${WRKSRC}/*.sh.in
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${WRKINST}/${TRUEPREFIX}/share/examples/lbdb
|
|
mv ${WRKINST}/etc/lbdb.rc ${WRKINST}/etc/lbdb_ldap.rc \
|
|
${WRKINST}/${TRUEPREFIX}/share/examples/lbdb
|
|
|
|
.include <bsd.port.mk>
|