d0b4c54eb6
built-in or not into a separate builtin.mk file. The code to deal checking for built-in software is much simpler to deal with in pkgsrc. The buildlink3.mk file for a package will be of the usual format regardless of the package, which makes it simpler for packagers to update a package. The builtin.mk file for a package must define a single yes/no variable USE_BUILTIN.<pkg> that is used by bsd.buildlink3.mk to decide whether to use the built-in software or to use the pkgsrc software.
23 lines
706 B
Makefile
23 lines
706 B
Makefile
# $NetBSD: buildlink3.mk,v 1.21 2004/03/10 17:57:14 jlam Exp $
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
FREETYPE2_BUILDLINK3_MK:= ${FREETYPE2_BUILDLINK3_MK}+
|
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
BUILDLINK_DEPENDS+= freetype2
|
|
.endif
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nfreetype2}
|
|
BUILDLINK_PACKAGES+= freetype2
|
|
|
|
.if !empty(FREETYPE2_BUILDLINK3_MK:M+)
|
|
BUILDLINK_DEPENDS.freetype2+= freetype2>=2.1.0
|
|
BUILDLINK_PKGSRCDIR.freetype2?= ../../graphics/freetype2
|
|
BUILDLINK_INCDIRS.freetype2?= include/freetype2
|
|
|
|
FREETYPE_CONFIG?= ${BUILDLINK_PREFIX.freetype2}/bin/freetype-config
|
|
CONFIGURE_ENV+= FREETYPE_CONFIG="${FREETYPE_CONFIG}"
|
|
|
|
.endif # FREETYPE2_BUILDLINK3_MK
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|