openbsd-ports/graphics/babl/Makefile
2019-02-05 15:41:41 +00:00

51 lines
957 B
Makefile

# $OpenBSD: Makefile,v 1.49 2019/02/05 15:41:41 ajacoutot Exp $
COMMENT= dynamic pixel format conversion library
V= 0.1.62
DISTNAME= babl-${V}
EXTRACT_SUFX= .tar.bz2
API_VERSION= ${V:R}
SUBST_VARS= API_VERSION
CATEGORIES= graphics devel
SHARED_LIBS += babl-0.1 1.6 # 161.1
HOMEPAGE= http://gegl.org/babl/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv3/LGPLv3
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += m pthread
MASTER_SITES= http://download.gimp.org/pub/babl/${V:R}/
USE_GMAKE= Yes
COMPILER= base-clang ports-gcc
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= LDFLAGS="-pthread" \
ac_cv_path_W3M=no \
ac_cv_path_RSVG=no
CONFIGURE_ARGS += --enable-mmx \
--disable-altivec
.if ${MACHINE_ARCH} == "amd64"
CONFIGURE_ARGS += --enable-sse \
--enable-sse2
.else
CONFIGURE_ARGS += --disable-sse \
--disable-sse2
.endif
post-install:
rm ${PREFIX}/lib/babl-${API_VERSION}/*.{a,la}
.include <bsd.port.mk>