[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / graphics / png

File: [cvs.NetBSD.org] / pkgsrc / graphics / png / Makefile (download)

Revision 1.201, Mon Sep 26 17:08:37 2022 UTC (2 months, 1 week ago) by adam
Branch: MAIN
CVS Tags: HEAD
Changes since 1.200: +2 -3 lines

png: updated to 1.6.38

Version 1.6.38 [September 14, 2022]
  Added configurations and scripts for continuous integration.
  Fixed various errors in the handling of tRNS, hIST and eXIf.
  Implemented many stability improvements across all platforms.
  Updated the internal documentation.

# $NetBSD: Makefile,v 1.201 2022/09/26 17:08:37 adam Exp $

DISTNAME=	libpng-1.6.38
PKGNAME=	${DISTNAME:S/lib//}
CATEGORIES=	graphics
MASTER_SITES=	https://ftp-osl.osuosl.org/pub/libpng/src/archive/xz/libpng16/
MASTER_SITES+=	${MASTER_SITE_SOURCEFORGE:=libpng/}
MASTER_SITES+=	ftp://ftp.fu-berlin.de/unix/graphics/png/src/libpng16/
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.libpng.org/pub/png/libpng.html
COMMENT=	Library for manipulating PNG images
LICENSE=	zlib

USE_LIBTOOL=		yes
GNU_CONFIGURE=		yes
# do not create libpng.la
CONFIGURE_ARGS+=	--disable-unversioned-links
# but do install png.h outside include/libpng$VERSION for now
# until pkgsrc is fixed to use libpng-config or the pc file everywhere
INSTALL_TARGET=		install install-header-links

PKGCONFIG_OVERRIDE=	scripts/libpng.pc.in libpng.pc.in
TEST_TARGET=		check

CPPFLAGS+=	-DPNG_USER_CHUNK_CACHE_MAX=128 -DPNG_USER_CHUNK_MALLOC_MAX=8000000

.include "../../mk/bsd.prefs.mk"
# keep this in sync with the same code in buildlink3.mk
.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64"
CPPFLAGS+=	-DPNG_NO_ASSEMBLER_CODE
.endif

SUBST_CLASSES+=		rpathfix
SUBST_FILES.rpathfix=	libpng-config.in
SUBST_VARS.rpathfix=	COMPILER_RPATH_FLAG
SUBST_STAGE.rpathfix=	post-build

.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"