pkgsrc/devel/apr/buildlink3.mk
jlam 949a7c95f1 PKG_OPTIONS.<pkg> isn't a good approximation to PKG_OPTIONS for the
package because PKG_OPTION.<pkg> could contain negative options, which
are never part of PKG_OPTIONS.  Instead, use the show-var target to
display the value.  We cache it in WRAPPER_VARS and in MAKE_FLAGS to
prevent reinvoking the show-var target recursively.
2005-05-08 12:03:56 +00:00

45 lines
1.2 KiB
Makefile

# $NetBSD: buildlink3.mk,v 1.14 2005/05/08 12:03:56 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
APR_BUILDLINK3_MK:= ${APR_BUILDLINK3_MK}+
.include "../../mk/bsd.prefs.mk"
.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+= apr
.endif
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Napr}
BUILDLINK_PACKAGES+= apr
.if !empty(APR_BUILDLINK3_MK:M+)
BUILDLINK_DEPENDS.apr+= apr>=0.9.5.2.0.51nb1
BUILDLINK_RECOMMENDED.apr+= apr>=0.9.5.2.0.52nb1
BUILDLINK_PKGSRCDIR.apr?= ../../devel/apr
WRAPPER_REORDER_CMDS+= reorder:l:aprutil-0:crypt
BUILDLINK_FILES.apr+= bin/apr-config
BUILDLINK_FILES.apr+= bin/apu-config
BUILDLINK_FILES.apr+= lib/*.exp
.endif # APR_BUILDLINK3_MK
.if !defined(PKG_OPTIONS.apr)
PKG_OPTIONS.apr!= cd ${BUILDLINK_PKGSRCDIR.apr} && \
${MAKE} show-var ${MAKE_FLAGS} VARNAME=PKG_OPTIONS
MAKE_FLAGS+= PKG_OPTIONS.apr=${PKG_OPTIONS.apr:Q}
WRAPPER_VARS+= PKG_OPTIONS.apr
.endif
.if !empty(PKG_OPTIONS.apr:Mdb4)
. include "../../databases/db4/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS.apr:Mldap)
. include "../../databases/openldap/buildlink3.mk"
.endif
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}