Subject: pkg/13784: add buildlink.mk to expat
To: None <gnats-bugs@gnats.netbsd.org>
From: None <martti.kuparinen@iki.fi>
List: netbsd-bugs
Date: 08/25/2001 22:49:03
>Number:         13784
>Category:       pkg
>Synopsis:       add buildlink.mk to expat
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 25 13:46:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Martti Kuparinen
>Release:        1.5X
>Organization:
>Environment:
	
System: NetBSD nevada 1.5X NetBSD 1.5X (AXIL) #1: Mon Aug 20 10:12:55 CEST 2001 root@nevada:/usr/src/sys/arch/sparc64/compile/AXIL sparc64
Architecture: sparc64
Machine: sparc64
>Description:

Add buildlink.mk to the expat package.

>How-To-Repeat:
	
>Fix:

# $NetBSD$
#
# This Makefile fragment is included by packages that use expat.
#
# To use this Makefile fragment, simply:
#
# (1) Optionally define BUILDLINK_DEPENDS.expat to the dependency patthern
#     for the version of expat desired.
# (2) Include this Makefile fragment in the package Makefile,
# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
#     search path, and
# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
#     path.

.if !defined(EXPAT_BUILDLINK_MK)
EXPAT_BUILDLINK_MK=	# defined

.include "../../mk/bsd.buildlink.mk"

BUILDLINK_DEPENDS.expat?=	expat>=1.95.2
DEPENDS+=	${BUILDLINK_DEPENDS.expat}:../../textproc/expat

EVAL_PREFIX+=			BUILDLINK_PREFIX.expat=expat
BUILDLINK_PREFIX.expat_DEFAULT=	${LOCALBASE}
BUILDLINK_FILES.expat=		include/expat.h
BUILDLINK_FILES.expat+=		lib/libexpat.*

BUILDLINK_TARGETS.expat=	expat-buildlink
BUILDLINK_TARGETS+=		${BUILDLINK_TARGETS.expat}

pre-configure: ${BUILDLINK_TARGETS.expat}
expat-buildlink: _BUILDLINK_USE
expat-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE

.endif	# EXPAT_BUILDLINK_MK
>Release-Note:
>Audit-Trail:
>Unformatted: