pkgsrc/graphics/libimagequant/Makefile
adam 0b08bf5baa libimagequant: updated to 2.12.6
2.12.6:
Unknown changes
2020-02-16 21:16:25 +00:00

35 lines
918 B
Makefile

# $NetBSD: Makefile,v 1.18 2020/02/16 21:16:25 adam Exp $
DISTNAME= libimagequant-2.12.6
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"