Tue Jun 2 06:13:43 2020 UTC ()
www/seamonkey: fix build on NetBSD 8

ERROR: Only GCC 6.1 or newer is supported (found version 5.5.0).

Note that GCC_REQD must be added above any .include lines since otherwise
it is silently ignored.  This needs to be fixed in mk/compiler.mk.


(rillig)
diff -r1.212 -r1.213 pkgsrc/www/seamonkey/Makefile

cvs diff -r1.212 -r1.213 pkgsrc/www/seamonkey/Makefile (expand / switch to unified diff)

--- pkgsrc/www/seamonkey/Makefile 2020/06/02 06:11:28 1.212
+++ pkgsrc/www/seamonkey/Makefile 2020/06/02 06:13:43 1.213
@@ -1,37 +1,39 @@ @@ -1,37 +1,39 @@
1# $NetBSD: Makefile,v 1.212 2020/06/02 06:11:28 rillig Exp $ 1# $NetBSD: Makefile,v 1.213 2020/06/02 06:13:43 rillig Exp $
2 2
3DISTNAME= seamonkey-${SM_VER}.source 3DISTNAME= seamonkey-${SM_VER}.source
4PKGNAME= seamonkey-${SM_VER:S/b/beta/} 4PKGNAME= seamonkey-${SM_VER:S/b/beta/}
5PKGREVISION= 1 5PKGREVISION= 1
6SM_VER= 2.53.2 6SM_VER= 2.53.2
7CATEGORIES= www 7CATEGORIES= www
8MASTER_SITES= ${MASTER_SITE_MOZILLA:=seamonkey/releases/${SM_VER}/source/} 8MASTER_SITES= ${MASTER_SITE_MOZILLA:=seamonkey/releases/${SM_VER}/source/}
9EXTRACT_SUFX= .tar.xz 9EXTRACT_SUFX= .tar.xz
10 10
11MAINTAINER= pkgsrc-users@NetBSD.org 11MAINTAINER= pkgsrc-users@NetBSD.org
12HOMEPAGE= https://www.seamonkey-project.org/ 12HOMEPAGE= https://www.seamonkey-project.org/
13COMMENT= Full-featured gecko-based browser 13COMMENT= Full-featured gecko-based browser
14LICENSE= mpl-2.0 14LICENSE= mpl-2.0
15 15
16WRKSRC= ${WRKDIR}/${DISTNAME:S/.source//} 16WRKSRC= ${WRKDIR}/${DISTNAME:S/.source//}
17MOZILLA_DIR= mozilla/ 17MOZILLA_DIR= mozilla/
18PLIST_SRC+= ${PLIST_SRC_DFLT} 18PLIST_SRC+= ${PLIST_SRC_DFLT}
19USE_LANGUAGES+= c c++ 19USE_LANGUAGES+= c c++
20USE_TOOLS+= unzip pax 20USE_TOOLS+= unzip pax
21 21
22NOT_PAX_MPROTECT_SAFE+= lib/${PKGBASE}/seamonkey 22NOT_PAX_MPROTECT_SAFE+= lib/${PKGBASE}/seamonkey
23NOT_PAX_MPROTECT_SAFE+= lib/${PKGBASE}/seamonkey-bin 23NOT_PAX_MPROTECT_SAFE+= lib/${PKGBASE}/seamonkey-bin
24 24
 25GCC_REQD+= 6
 26
25.include "../../mk/bsd.prefs.mk" 27.include "../../mk/bsd.prefs.mk"
26.include "options.mk" 28.include "options.mk"
27# See mozilla/config/milestone.txt 29# See mozilla/config/milestone.txt
28.include "../../www/firefox60/mozilla-common.mk" 30.include "../../www/firefox60/mozilla-common.mk"
29 31
30# Workaround to fix pixman.h detection 32# Workaround to fix pixman.h detection
31CFLAGS+= -I${BUILDLINK_PREFIX.pixman}/include/pixman-1 33CFLAGS+= -I${BUILDLINK_PREFIX.pixman}/include/pixman-1
32 34
33CONFIG_GUESS_OVERRIDE+= ldap/sdks/c-sdk/config/autoconf/config.guess 35CONFIG_GUESS_OVERRIDE+= ldap/sdks/c-sdk/config/autoconf/config.guess
34CONFIG_SUB_OVERRIDE+= ldap/sdks/c-sdk/config/autoconf/config.sub 36CONFIG_SUB_OVERRIDE+= ldap/sdks/c-sdk/config/autoconf/config.sub
35 37
36CONFIGURE_ARGS+= --enable-application=suite 38CONFIGURE_ARGS+= --enable-application=suite
37 39