pkgsrc/graphics/libimagequant/Makefile
adam 66a9b6a9e3 libimagequant: updated to 2.11.10
2.11.10:
Bug fixes.
2018-03-12 16:47:35 +00:00

35 lines
919 B
Makefile

# $NetBSD: Makefile,v 1.13 2018/03/12 16:47:35 adam Exp $
DISTNAME= libimagequant-2.11.10
CATEGORIES= graphics
MASTER_SITES+= ${MASTER_SITE_GITHUB:=ImageOptim/}
GITHUB_TAG= ${PKGVERSION_NOREV}
MAINTAINER= adam@NetBSD.org
HOMEPAGE= https://pngquant.org/lib/
COMMENT= High-quality conversion of RGBA images to 8-bit indexed-color
LICENSE= gnu-gpl-v3
USE_LIBTOOL= yes
USE_TOOLS+= bash gmake
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix="${PREFIX}"
BUILD_TARGET= shared
CONFIG_SHELL= ${BASH}
INSTALLATION_DIRS= include lib
REPLACE_BASH= configure
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "x86_64"
CONFIGURE_ARGS+= --enable-sse
.else
CONFIGURE_ARGS+= --disable-sse
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/libimagequant.h ${DESTDIR}${PREFIX}/include/libimagequant.h
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libimagequant.la ${DESTDIR}${PREFIX}/lib
.include "../../mk/bsd.pkg.mk"