File:  [cvs.NetBSD.org] / pkgsrc / graphics / babl / Makefile
Revision 1.51: download - view: text, annotated - select for diffs
Sat Sep 10 11:27:52 2022 UTC (2 years, 3 months ago) by tnn
Branches: MAIN
CVS tags: HEAD
babl: append to PKG_SUGGESTED_OPTIONS

# $NetBSD: Makefile,v 1.51 2022/09/10 11:27:52 tnn Exp $

DISTNAME=	babl-0.1.96
CATEGORIES=	graphics
MASTER_SITES=	https://download.gimp.org/pub/babl/${PKGVERSION_NOREV:R}/
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://gegl.org/babl/
COMMENT=	Dynamic pixel conversion library
LICENSE=	gnu-gpl-v3

USE_TOOLS+=	pkg-config
USE_LANGUAGES=	c99

MESON_ARGS+=	-Dwith-docs=false

PKGCONFIG_OVERRIDE+=	babl.pc.in

PYTHON_FOR_BUILD_ONLY=	tool

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

PLIST_VARS+=		Darwin not_Darwin
.if ${OPSYS} == "Darwin"
PLIST.Darwin=		yes
PLIST_SUBST+=		SOEXT="dylib"
.else
PLIST.not_Darwin=	yes
PLIST_SUBST+=		SOEXT="so"
.endif

PLIST_VARS+=		x86_64
.if ${MACHINE_ARCH} == "x86_64"
PLIST.x86_64=		yes
.endif


PKG_OPTIONS_VAR=	PKG_OPTIONS.babl
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
PKG_SUPPORTED_OPTIONS+=	mmx
.endif

.include "../../mk/compiler.mk"

.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") \
	&& empty(CC_VERSION:Mgcc-7.*)
PKG_SUGGESTED_OPTIONS+=	mmx
.endif

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mmmx)
MESON_ARGS+=	-Denable-mmx=true
.else
MESON_ARGS+=	-Denable-mmx=false
.endif

# Apply removals to post-wrapper transformed arguments.
BUILDLINK_TRANSFORM.Darwin+=	rm:-Wl,--version-script
BUILDLINK_TRANSFORM.Darwin+=	rm:-Wl,babl.map
BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,--version-script
BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,babl.map

TEST_ENV+=	LD_LIBRARY_PATH=${WRKSRC}/output/babl

.include "../../devel/meson/build.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/gobject-introspection/buildlink3.mk"
.include "../../lang/vala/buildlink3.mk"
.include "../../graphics/lcms2/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>