summaryrefslogtreecommitdiff
path: root/net/pear-Net_Socket/buildlink3.mk
blob: 3076ad706d54325cf74ca339c2e5b132e3eb70d7 (plain)
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
# $NetBSD: buildlink3.mk,v 1.2 2004/11/02 21:52:13 kristerw Exp $
#
# Net_Socket was bundled with PHP 4.x, but has been pushed to pear
# in PHP 5.x. If we build for PHP4, use the bundled version, otherwise 
# force dependance and install of this package.

BUILDLINK_DEPTH:=	${BUILDLINK_DEPTH}+
NETSOCKET_BUILDLINK3_MK:=	${NETSOCKET_BUILDLINK3_MK}+

.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+=	pear-netsocket
.endif

BUILDLINK_PACKAGES:=	${BUILDLINK_PACKAGES:Npear-netsocket}
BUILDLINK_PACKAGES+=	pear-netsocket

.if !empty(NETSOCKET_BUILDLINK3_MK:M+)

BUILDLINK_DEPENDS.pear-netsocket+=	pear-Net_Socket>=1.0.1
BUILDLINK_PKGSRCDIR.pear-netsocket?=	../../net/pear-Net_Socket
BUILDLINK_DEPMETHOD.pear-netsocket?=	full

.endif	# NETSOCKET_BUILDLINK3_MK

BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}