tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: librsvg



On Wed, May 29, 2019 at 08:11:37AM -0400, Greg Troxel wrote:
> That seems ok, except that I would not expect "if NetBSD then rust is
> supported" to be true.  So I'd expect further conditionals on
> architecture, and to err on the side of not including something as rust
> if it's not known to work.

So how about this?
 Thomas
# $NetBSD: buildlink3.mk,v 1.46 2018/11/14 22:21:42 kleink Exp $

BUILDLINK_TREE+=	librsvg

.if !defined(LIBRSVG_BUILDLINK3_MK)
LIBRSVG_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.librsvg+=		librsvg>=2.12.6nb1
BUILDLINK_ABI_DEPENDS.librsvg+=		librsvg>=2.40.20nb4

.include "../../mk/bsd.fast.prefs.mk"

# platforms where pkgsrc supports lang/rust
.if (${MACHINE_ARCH} == "aarch64" \
  || ${MACHINE_ARCH} == "armv7" \
  || ${MACHINE_ARCH} == "i386" \
  || ${MACHINE_ARCH} == "powerpc" \
  || ${MACHINE_ARCH} == "sparc64" \
  || ${MACHINE_ARCH} == "x86_64") \
  && \
 (${OPSYS} == "Darwin" \
 || ${OPSYS} == "FreeBSD" \
 || ${OPSYS} == "Linux" \
 || ${OPSYS} == "NetBSD" \
 || ${OPSYS} == "SunOS")
LIBRSVG_USE_RUST?=	yes
.endif

.if ${LIBRSVG_USE_RUST} == "yes"
BUILDLINK_PKGSRCDIR.librsvg?=		../../graphics/librsvg
BUILDLINK_API_DEPENDS.librsvg+=		librsvg>=2.41
.else
BUILDLINK_PKGSRCDIR.librsvg?=		../../graphics/librsvg-c
BUILDLINK_API_DEPENDS.librsvg+=		librsvg<2.41
.endif

.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
.include "../../textproc/libcroco/buildlink3.mk"
.endif # LIBRSVG_BUILDLINK3_MK

BUILDLINK_TREE+=	-librsvg


Home | Main Index | Thread Index | Old Index