aboutsummaryrefslogtreecommitdiffstats
path: root/databases/ldb/Makefile
blob: 166f0e48ec76edf56e65ed3e95d01c63b5af82b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# $FreeBSD$

PORTNAME=       ldb
PORTVERSION=        1.1.21
PORTREVISION=       1
PORTEPOCH=      0
CATEGORIES=     databases
MASTER_SITES=       SAMBA

MAINTAINER=     timur@FreeBSD.org
COMMENT=        LDAP-like embedded database

LICENSE=        GPLv3

CONFLICTS=      *samba3[0-4]-3.*

USES=           compiler pkgconfig python:2 waf
USE_LDCONFIG=       yes
WAF_CMD=        buildtools/bin/waf
CONFIGURE_LOG=      bin/config.log

USE_OPENLDAP=       yes

PKGCONFIGDIR?=      ${PREFIX}/libdata/pkgconfig
PLIST_SUB+=     PKGCONFIGDIR=${PKGCONFIGDIR:S;${PREFIX}/;;}

CONFIGURE_ARGS+=    --mandir=${MANPREFIX}/man \
            --infodir=${PREFIX}/${INFO_PATH}/${INFO_SUBDIR} \
            --disable-rpath \
            --without-gettext

OPTIONS_DEFINE=     MANPAGES
MANPAGES_DESC=      Build and install manpages (requires textproc/docbook-xsl)

BUILD_DEPENDS+=     talloc>=2.1.1:${PORTSDIR}/devel/talloc \
            tevent>=0.9.22:${PORTSDIR}/devel/tevent \
            tdb>=1.3.4,1:${PORTSDIR}/databases/tdb \
            popt>=0:${PORTSDIR}/devel/popt
RUN_DEPENDS:=       ${BUILD_DEPENDS}

CONFIGURE_ARGS+=    --bundled-libraries=!talloc,!tevent,!tdb,!popt \
            --with-modulesdir=${PREFIX}/lib/shared-modules \
            --with-privatelibdir=${PREFIX}/lib/ldb

.include <bsd.port.pre.mk>

.if ! ${PORT_OPTIONS:MMANPAGES}
CONFIGURE_ENV+=     XSLTPROC="true"
.else
BUILD_DEPENDS+=     ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl \
            xsltproc:${PORTSDIR}/textproc/libxslt
.endif

PLIST_FILES=        bin/ldbedit \
            bin/ldbmodify \
            bin/ldbadd \
            bin/ldbdel \
            bin/ldbsearch \
            bin/ldbrename \
            include/ldb_version.h \
            include/ldb_handlers.h \
            include/ldb_errors.h \
            include/ldb.h \
            include/ldb_module.h \
            lib/libldb.so \
            lib/libldb.so.1 \
            lib/ldb/libldb-cmdline.so \
            lib/shared-modules/ldb/asq.so \
            lib/shared-modules/ldb/ldap.so \
            lib/shared-modules/ldb/paged_results.so \
            lib/shared-modules/ldb/paged_searches.so \
            lib/shared-modules/ldb/rdn_name.so \
            lib/shared-modules/ldb/sample.so \
            lib/shared-modules/ldb/server_sort.so \
            lib/shared-modules/ldb/skel.so \
            lib/shared-modules/ldb/tdb.so \
            %%PKGCONFIGDIR%%/ldb.pc

# No fancy color error messages
.if ${COMPILER_TYPE} == "clang"
CFLAGS+=        -fno-color-diagnostics
.endif
CONFIGURE_ENV+=     NOCOLOR=yes
MAKE_ENV+=      NOCOLOR=yes

PLIST_FILES+=       include/pyldb.h \
            lib/libpyldb-util.so \
            lib/libpyldb-util.so.1 \
            %%PYTHON_SITELIBDIR%%/ldb.so \
            %%PKGCONFIGDIR%%/pyldb-util.pc

LDB_MAN1=       man/man1/ldbadd.1.gz \
            man/man1/ldbdel.1.gz \
            man/man1/ldbedit.1.gz \
            man/man1/ldbmodify.1.gz \
            man/man1/ldbrename.1.gz \
            man/man1/ldbsearch.1.gz

LDB_MAN3=       man/man3/ldb.3.gz

PLIST_FILES+=       ${LDB_MAN1} ${LDB_MAN3}

IGNORE_NONTHREAD_PYTHON=needs port lang/python${PYTHON_SUFFIX} to be build with THREADS support

post-patch:
            @${REINPLACE_CMD} -e 's|%%PKGCONFIGDIR%%|${PKGCONFIGDIR}|g' \
                ${BUILD_WRKSRC}/wscript

# Use threading (or multiprocessing) but not thread (renamed in python 3+).
pre-configure:
            @if ! ${PYTHON_CMD} -c "import multiprocessing;" 2>/dev/null; then \
                ${ECHO_CMD}; \
                ${ECHO_MSG} "===>  ${PKGNAME} "${IGNORE_NONTHREAD_PYTHON:Q}.; \
                ${ECHO_CMD}; \
                ${FALSE}; \
            fi

pre-build:
.if ! ${PORT_OPTIONS:MMANPAGES}
            -${MKDIR} ${BUILD_WRKSRC}/bin/default/man
.   for man in ${LDB_MAN1} ${LDB_MAN3}
            ${INSTALL_MAN} ${FILESDIR}/`basename ${man} .gz` ${BUILD_WRKSRC}/bin/default/man
.   endfor
.endif

.include <bsd.port.post.mk>
* Added ContactsSaveAsVCard, ContactsSendContactToOther, andChristopher James Lahey2001-08-022-6/+37 * ChangeLog fix. Should have been:Christopher James Lahey2001-08-021-1/+2 * Added ContactsSaveAsVCard, ContactsSendContactToOther, andChristopher James Lahey2001-08-024-29/+114 * Add EVOLUTION_BUTTONSDIR to get to some different icons.Not Zed2001-08-024-69/+116 * If the default category is the same as the value passed in to thisFederico Mena Quintero2001-08-024-3/+34 * Set the et->cursor_loc *before* committing the click-to-add to avoidFederico Mena Quintero2001-08-021-3/+7 * removed debugging messages.Damon Chaplin2001-08-022-9/+4 * removed some debugging messages.Damon Chaplin2001-08-022-38/+4 * Fixed the load statement here by just using array_from_string.Christopher James Lahey2001-08-022-47/+10 * Make this function not crash if x somehow doesn't land on some column.Christopher James Lahey2001-08-021-4/+8 * The calendar search bar widget now includes a drop-down menu of availableFederico Mena Quintero2001-08-0211-397/+561 * Do the Right Thing (tm) if the message list is not the widget in focusJeffrey Stedfast2001-08-022-0/+13 * Do a NULL-check on current_uri - socket is being closed? (as per theJeffrey Stedfast2001-08-022-4/+10 * This directory is *shared* between a lot of modules in GNOME CVS -Martin Baulig2001-08-011-0/+13 * fixed 2 mistranslated entriesSzabolcs Ban2001-08-011-2/+2 * fixed a mistranslated entrySzabolcs Ban2001-08-011-1/+1 * Updated Hungarian translation.Andras Timar2001-08-012-182/+170 * More updates to icons, this time the Save, Save As, and Search icons forJacob Leach2001-08-018-11/+32 * Don't move cursors around when deleting last message and Hide DeletedJason Leach2001-08-012-3/+12 * Made this not query the 0th row if there are 0 rows in the table. FixesChristopher James Lahey2001-08-011-6/+5 * Removed this file from this unused directory.Christopher James Lahey2001-08-012-8/+5 * Added file-exists.glade.Christopher James Lahey2001-08-014-1/+158 * Removed thrash checking code here since thrashing shouldn't happen nowChristopher James Lahey2001-08-013-83/+88 * If we fail to get the lock, make sure we close our locking fd, and resetNot Zed2001-08-012-1/+11 * Slightly re-arranged filter/change notification logic. If we;re filtering,Not Zed2001-08-014-42/+73 * The Wombat now keeps track of which categories are present in the objectsFederico Mena Quintero2001-08-019-155/+339 * Updated Spanish translation.Hector Garcia2001-08-012-531/+170 * Changed the title of this dialog to "Enter Password".Anna Marie Dirks2001-08-012-0/+7 * UpdateKjartan Maraas2001-08-011-17/+8 * Bump version number to 0.12.99.Ettore Perazzoli2001-08-012-2/+6 * Sync for the release.Ettore Perazzoli2001-08-0131-82984/+158072 * ui:Peter Williams2001-08-014-1/+21 * Moved "Sender-contains" to the top of the list and added a RecipientJeffrey Stedfast2001-08-012-10/+27 * Ooops. We want GAL >= 0.10.0 and GtkHTML >= 0.11.0.Ettore Perazzoli2001-08-012-2/+8 * Remove `$EVOLUTION_MICRO_VERSION' from `VERSION'.Ettore Perazzoli2001-08-012-1/+5 * Bump version number to 0.12.0.Ettore Perazzoli2001-08-012-2/+6 * More cleanup.Ettore Perazzoli2001-08-011-5/+5 * NEWSIain Holmes2001-08-011-0/+12 * Clean up and re-format a bit.Ettore Perazzoli2001-08-011-68/+72 * 0.12 NEWS for the mailerPeter Williams2001-08-011-0/+70 * beta2 splashJakub Steiner2001-08-012-0/+4 * Calendar NEWS - FedericoFederico Mena Quintero2001-08-011-1/+23 * Added Next/Previous menu items under Actions/GoTo.Jeffrey Stedfast2001-08-012-0/+15 * Added info about the shell changes and slightly changed the formatting forEttore Perazzoli2001-08-013-21/+58 * Updated Norwegian (bokmål) translation.Kjartan Maraas2001-08-012-1799/+2092 * Add a pixmap to the Tasks Settings option to make it consistent with theFederico Mena Quintero2001-08-012-5/+9 * Sync from OLS - FedericoFederico Mena Quintero2001-08-01