summaryrefslogtreecommitdiff
path: root/misc/rpm/buildlink2.mk
blob: 4bf6cf66d3c36e745a40129ffd1656688b763b19 (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
# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 18:39:29 jlam Exp $

.if !defined(RPM_BUILDLINK2_MK)
RPM_BUILDLINK2_MK=	# defined

BUILDLINK_PACKAGES+=		rpm
BUILDLINK_DEPENDS.rpm?=		rpm>=2.4.3
BUILDLINK_PKGSRCDIR.rpm?=	../../misc/rpm

# This adds a build-dependency as rpm only has a static library.
BUILDLINK_DEPMETHOD.rpm?=	build

EVAL_PREFIX+=	BUILDLINK_PREFIX.rpm=rpm
BUILDLINK_PREFIX.rpm_DEFAULT=	${LOCALBASE}
BUILDLINK_FILES.rpm=	include/rpm/*
BUILDLINK_FILES.rpm+=	lib/librpm.a

.include "../../devel/gettext-lib/buildlink2.mk"

BUILDLINK_TARGETS+=	rpm-buildlink

rpm-buildlink: _BUILDLINK_USE

.endif	# RPM_BUILDLINK2_MK