pkgsrc/graphics/freetype2/buildlink3.mk
2019-09-09 12:40:50 +00:00

35 lines
968 B
Makefile

# $NetBSD: buildlink3.mk,v 1.49 2019/09/09 12:40:50 wiz Exp $
BUILDLINK_TREE+= freetype2
.if !defined(FREETYPE2_BUILDLINK3_MK)
FREETYPE2_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.8.1
BUILDLINK_PKGSRCDIR.freetype2?= ../../graphics/freetype2
BUILDLINK_INCDIRS.freetype2?= include/freetype2
BUILDLINK_FILES.freetype2+= bin/freetype-config
FREETYPE_CONFIG?= ${BUILDLINK_PREFIX.freetype2}/bin/freetype-config
CONFIGURE_ENV+= FREETYPE_CONFIG=${FREETYPE_CONFIG:Q}
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
pkgbase := freetype2
.include "../../mk/pkg-build-options.mk"
.if !empty(PKG_BUILD_OPTIONS.freetype2:Mpng)
CHECK_BUILTIN.freetype2:= yes
.include "../../graphics/freetype2/builtin.mk"
CHECK_BUILTIN.freetype2:= no
. if empty(USE_BUILTIN.freetype2:M[yY][eE][sS])
. include "../../graphics/png/buildlink3.mk"
. endif
.endif
.endif # FREETYPE2_BUILDLINK3_MK
BUILDLINK_TREE+= -freetype2