# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD: tags/RELEASE_11_3_0/x11/babl/Makefile 487272 2018-12-12 01:35:33Z gerald $

PORTNAME=	babl
PORTVERSION=	0.1.60
PORTREVISION=	1
CATEGORIES=	x11
MASTER_SITES=	GIMP

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Dynamic pixel format conversion library

LICENSE=	LGPL3
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		compiler:c11 gmake libtool pathfix pkgconfig tar:bzip2

USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=	SIMD
OPTIONS_DEFAULT=SIMD

SIMD_CONFIGURE_OFF=	--disable-mmx --disable-sse --disable-sse2 \
		--disable-sse3 --disable-sse4_1 --disable-f16c \
		--disable-altivec

post-patch:
	@${REINPLACE_CMD} -e 's|x86_64|amd64|g' \
		${WRKSRC}/configure

.include <bsd.port.mk>
