no need to patch, just pass CPPFLAGS/LDFLAGS in MAKE_ENV

This commit is contained in:
sthen 2019-06-11 15:32:17 +00:00
parent 6848abe4a1
commit e2f8fc8cd3
2 changed files with 5 additions and 17 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.49 2019/04/28 20:51:27 sthen Exp $
# $OpenBSD: Makefile,v 1.50 2019/06/11 15:32:17 sthen Exp $
COMMENT-main= LDAP client API for Python
COMMENT-examples= example programs for the LDAP client API for Python
MODPY_EGG_VERSION = 3.2.0
REVISION= 1
REVISION= 2
DISTNAME= python-ldap-${MODPY_EGG_VERSION}
PKGNAME= py-ldap-${MODPY_EGG_VERSION}
@ -46,13 +46,13 @@ LIB_DEPENDS-main= ${MODPY_LIB_DEPENDS} \
RUN_DEPENDS-main= ${MODPY_RUN_DEPENDS} \
devel/py-asn1-modules${MODPY_FLAVOR}
MAKE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
TEST_DEPENDS= ${RUN_DEPENDS-main} \
databases/openldap,-server
TEST_ENV= SBIN=${LOCALBASE}/libexec:${LOCALBASE}/sbin
pre-configure:
${SUBST_CMD} ${WRKSRC}/setup.cfg
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${MODPY_PY_PREFIX}ldap
cd ${WRKSRC}; tar cf - Demo | tar xf - -C \

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-setup_cfg,v 1.9 2018/11/30 12:59:10 sthen Exp $
Index: setup.cfg
--- setup.cfg.orig
+++ setup.cfg
@@ -1,4 +1,6 @@
[_ldap]
+library_dirs = ${LOCALBASE}/lib
+include_dirs = ${LOCALBASE}/include ${LOCALBASE}/include/sasl
defines = HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
extra_compile_args =
extra_objects =