pkgsrc/textproc/libodfgen/Makefile

40 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.27 2020/03/20 11:58:27 nia Exp $
DISTNAME= libodfgen-0.1.6
PKGREVISION= 11
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libwpd/libodfgen/libodfgen-${PKGVERSION_NOREV}/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= jaapb@NetBSD.org
HOMEPAGE= http://libwpd.sourceforge.net/
COMMENT= Library to generate ODF documents through libwpd and libwps
LICENSE= mpl-2.0 OR gnu-lgpl-v2
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++
CONFIGURE_ARGS+= --without-docs
PKGCONFIG_OVERRIDE+= libodfgen.pc.in
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CONFIGURE_ARGS+= --with-sharedptr=c++11
.else
CONFIGURE_ARGS+= --with-sharedptr=tr1
.endif
# Avoid erroring out due to multiple -Werror=parentheses with gcc8
.if !empty(CC_VERSION:Mgcc-[89]*)
CONFIGURE_ARGS+= --disable-werror
.endif
.include "../../converters/libetonyek/buildlink3.mk"
.include "../../converters/librevenge/buildlink3.mk"
.include "../../converters/libwpd/buildlink3.mk"
.include "../../converters/libwpg/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"