0c82db8d8a
may alter the compiler selection. In this particular case, librevenge depends on boost-libs, which will set GCC_REQD and possibly select a GCC dependency, so long as the compiler hasn't been forcibly pre-selected by including compiler.mk too early. Fixes build of libwpg on platforms with a native GCC older than what boost-libs calls for.
35 lines
996 B
Makefile
35 lines
996 B
Makefile
# $NetBSD: Makefile,v 1.19 2015/09/14 03:09:00 dsainty Exp $
|
|
|
|
DISTNAME= libwpg-0.3.0
|
|
PKGREVISION= 2
|
|
CATEGORIES= converters graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libwpg/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://libwpg.sourceforge.net/
|
|
COMMENT= Library for importing and converting Corel WordPerfect Graphics images
|
|
LICENSE= gnu-lgpl-v2 OR mpl-2.0
|
|
|
|
USE_LANGUAGES= c c++
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= perl pkg-config
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --without-docs
|
|
PKGCONFIG_OVERRIDE+= libwpg.pc.in
|
|
|
|
REPLACE_PERL= src/conv/svg/wpg2svgbatch.pl
|
|
|
|
.include "../../converters/libwpd/buildlink3.mk"
|
|
.include "../../converters/librevenge/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
# Include all buildlink3.mk before compiler.mk, as the buildlink dependencies
|
|
# may alter the compiler selection.
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
BUILDLINK_TRANSFORM+= rm:-Werror
|
|
.endif
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|