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

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

Revision 1.42, Tue Jul 16 08:43:16 2019 UTC (18 months, 1 week ago) by adam
Branch: MAIN
Changes since 1.41: +7 -3 lines

exiv2: fix buildling on Darwin

# $NetBSD: Makefile,v 1.42 2019/07/16 08:43:16 adam Exp $

DISTNAME=	exiv2-0.27.1-Source
PKGNAME=	${DISTNAME:S/-Source//}
CATEGORIES=	graphics
MASTER_SITES=	https://www.exiv2.org/builds/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.exiv2.org/
COMMENT=	Image metadata manipulation
LICENSE=	gnu-gpl-v2

USE_CMAKE=	yes
USE_TOOLS+=	msgfmt
USE_LANGUAGES=	c c++
GCC_REQD+=	3.3

.include "../../mk/bsd.prefs.mk"

CMAKE_ARGS+=	-DEXIV2_BUILD_SAMPLES:BOOL=OFF
.if ${OPSYS} == "Darwin"
CMAKE_ARGS+=	-DIntl_INCLUDE_DIR=${BUILDLINK_PREFIX.gettext}/include
.endif

LDFLAGS.Linux+=	-ldl
LDFLAGS.SunOS+=	-lsocket -lnsl

USE_PKGLOCALEDIR=	yes
PKGCONFIG_OVERRIDE=	config/exiv2.pc.in

.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"