Add buildlink.mk file for use by other package Makefiles.
This commit is contained in:
parent
a0079390c9
commit
9273f351a3
1 changed files with 34 additions and 0 deletions
34
graphics/mng/buildlink.mk
Normal file
34
graphics/mng/buildlink.mk
Normal file
|
@ -0,0 +1,34 @@
|
|||
# $NetBSD: buildlink.mk,v 1.1 2001/06/22 16:44:18 jlam Exp $
|
||||
#
|
||||
# This Makefile fragment is included by packages that use mng.
|
||||
#
|
||||
# To use this Makefile fragment, simply:
|
||||
#
|
||||
# (1) Optionally define MNG_REQD to the version of mng 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(MNG_BUILDLINK_MK)
|
||||
MNG_BUILDLINK_MK= # defined
|
||||
|
||||
MNG_REQD?= 1.0.0
|
||||
DEPENDS+= mng>=${MNG_REQD}:../../graphics/mng
|
||||
|
||||
BUILDLINK_PREFIX.mng= ${LOCALBASE}
|
||||
BUILDLINK_FILES.mng= include/libmng.h
|
||||
BUILDLINK_FILES.mng+= include/libmng_conf.h
|
||||
BUILDLINK_FILES.mng+= include/libmng_types.h
|
||||
BUILDLINK_FILES.mng+= lib/libmng.*
|
||||
|
||||
BUILDLINK_TARGETS.mng= mng-buildlink
|
||||
BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.mng}
|
||||
|
||||
pre-configure: ${BUILDLINK_TARGETS.mng}
|
||||
mng-buildlink: _BUILDLINK_USE
|
||||
|
||||
.include "../../mk/bsd.buildlink.mk"
|
||||
|
||||
.endif # MNG_BUILDLINK_MK
|
Loading…
Reference in a new issue