0725f99d1e
No functionally change, but bump PKGREVISION due to detect x11 option.
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.18 2007/11/17 01:40:50 obache Exp $
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
IMLIB2_BUILDLINK3_MK:= ${IMLIB2_BUILDLINK3_MK}+
|
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
BUILDLINK_DEPENDS+= imlib2
|
|
.endif
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nimlib2}
|
|
BUILDLINK_PACKAGES+= imlib2
|
|
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}imlib2
|
|
|
|
.if !empty(IMLIB2_BUILDLINK3_MK:M+)
|
|
BUILDLINK_API_DEPENDS.imlib2+= imlib2>=1.1.0nb2
|
|
BUILDLINK_ABI_DEPENDS.imlib2+= imlib2>=1.2.0nb5
|
|
BUILDLINK_PKGSRCDIR.imlib2?= ../../graphics/imlib2
|
|
.endif # IMLIB2_BUILDLINK3_MK
|
|
|
|
.include "../../devel/libltdl/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
|
.include "../../graphics/libungif/buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../graphics/tiff/buildlink3.mk"
|
|
|
|
_IMLIB2_PRE_X11_OPTION!= \
|
|
if ${PKG_INFO} -qe 'imlib2<=1.4.0'; then \
|
|
${ECHO} yes; \
|
|
else \
|
|
${ECHO} no; \
|
|
fi
|
|
|
|
pkgbase := imlib2
|
|
.include "../../mk/pkg-build-options.mk"
|
|
|
|
.if ${_IMLIB2_PRE_X11_OPTION} == "yes" || !empty(PKG_BUILD_OPTIONS.imlib2:Mx11)
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
.endif
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|