pkgsrc/devel/glibmm/Makefile
gdt f54d43ad27 glibmm: Add kludge to use gcc 4.9 for depending packages
glibmm seems to need gcc 4.9 to build; therefore set GCC_REQD.

This means that depending packages using other versions (specifically
4.8 on NetBSD 7) will fail to link.  As a kludge to make more things
build for the upcoming branch, force GCC_REQD to 4.9 in glibmm's
buildlink3.mk.  Now, at least some packages that depend on glibmm
build.  While icky, it's my judgement that having more packages
building is better.

This will very likely be reverted either after the branch or as part
of the upcoming compiler selection logic changes.

As proposed on tech-pkg.
2017-12-29 23:06:14 +00:00

47 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.76 2017/12/29 23:06:14 gdt Exp $
DISTNAME= glibmm-2.54.1
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/glibmm/${PKGVERSION_NOREV:R}/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= adam@NetBSD.org
HOMEPAGE= https://www.gtkmm.org/
COMMENT= C++ bindings for glib
LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1
# With 4.8, one gets the following:
# error: no matching function for call to 'regex_replace(const char*&, std::regex, const char [3])'
GCC_REQD+= 4.9
USE_LANGUAGES= c c++11
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake pkg-config perl:run
GNU_CONFIGURE= yes
EXTRACT_USING= bsdtar # added for pkg/42258
PKGCONFIG_OVERRIDE+= gio/giomm.pc.in
PKGCONFIG_OVERRIDE+= glib/glibmm.pc.in
# x11/gtkmm needs these tools
INSTALLATION_DIRS= share/glibmm-2.4/doctool
post-install:
.for tool in doc-install.pl doc-postprocess.pl
${INSTALL_SCRIPT} ${WRKSRC}/docs/${tool} \
${DESTDIR}${PREFIX}/share/glibmm-2.4/doctool/${tool}
.endfor
.include "../../mk/bsd.prefs.mk"
PLIST_VARS+= notmac
.if ${OPSYS} != "Darwin"
PLIST.notmac= yes
.endif
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.50.0
.include "../../devel/glib2/buildlink3.mk"
BUILDLINK_API_DEPENDS.libsigcpp+= libsigc++>=2.9.1
.include "../../devel/libsigc++/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"