From 401f96f227521c4527ea9c3887b10fb4bd7ff24b Mon Sep 17 00:00:00 2001 From: Mark Linimon Date: Wed, 26 Dec 2018 11:54:55 +0000 Subject: This port requires adding -fnested-functions to CFLAGS when base GCC is used. While here, add USES=gnome. PR: 234302 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket) --- deskutils/growl-for-linux/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deskutils/growl-for-linux/Makefile b/deskutils/growl-for-linux/Makefile index 1f50ea627752..4b44c20bb0c0 100644 --- a/deskutils/growl-for-linux/Makefile +++ b/deskutils/growl-for-linux/Makefile @@ -34,11 +34,17 @@ OPTIONS_DEFINE= LIBNOTIFY PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S,^${PREFIX}/,,} -USES= autoreconf compiler:nestedfct libtool pkgconfig sqlite:3 ssl +USES= autoreconf compiler:nestedfct gnome libtool pkgconfig sqlite:3 \ + ssl USE_GITHUB= yes USE_GNOME= cairo gdkpixbuf2 gtk20 libxml2 USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}/display \ ${PREFIX}/lib/${PORTNAME}/subscribe + +.if exists(/usr/lib/libstdc++.so) +CFLAGS+= -fnested-functions +.endif + post-patch: @${REINPLACE_CMD} '/^gol_LDADD =/s/$$/ -lgmodule-2.0/' \ ${WRKSRC}/Makefile.am -- cgit v1.2.3