Wed Jul 3 17:17:59 2019 UTC ()
Need to define __DARWIN_UNIX03 to use unsetenv(3) which return integer.
Resolves build on Tiger
via https://trac.macports.org/ticket/56099


(sevan)
diff -r1.71 -r1.72 pkgsrc/security/libgpg-error/Makefile

cvs diff -r1.71 -r1.72 pkgsrc/security/libgpg-error/Makefile (expand / switch to unified diff)

--- pkgsrc/security/libgpg-error/Makefile 2019/03/20 05:43:20 1.71
+++ pkgsrc/security/libgpg-error/Makefile 2019/07/03 17:17:58 1.72
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.71 2019/03/20 05:43:20 adam Exp $ 1# $NetBSD: Makefile,v 1.72 2019/07/03 17:17:58 sevan Exp $
2 2
3DISTNAME= libgpg-error-1.36 3DISTNAME= libgpg-error-1.36
4CATEGORIES= security 4CATEGORIES= security
5MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/libgpg-error/ 5MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/libgpg-error/
6MASTER_SITES+= ftp://ftp.ring.gr.jp/pub/net/gnupg/libgpg-error/ 6MASTER_SITES+= ftp://ftp.ring.gr.jp/pub/net/gnupg/libgpg-error/
7EXTRACT_SUFX= .tar.bz2 7EXTRACT_SUFX= .tar.bz2
8 8
9MAINTAINER= minskim@NetBSD.org 9MAINTAINER= minskim@NetBSD.org
10HOMEPAGE= http://www.gnupg.org/ 10HOMEPAGE= http://www.gnupg.org/
11COMMENT= Definitions of common error values for all GnuPG components 11COMMENT= Definitions of common error values for all GnuPG components
12LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 12LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1
13 13
14USE_LIBTOOL= yes 14USE_LIBTOOL= yes
@@ -16,20 +16,24 @@ USE_PKGLOCALEDIR= yes @@ -16,20 +16,24 @@ USE_PKGLOCALEDIR= yes
16USE_TOOLS+= gmake 16USE_TOOLS+= gmake
17GNU_CONFIGURE= yes 17GNU_CONFIGURE= yes
18INFO_FILES= yes 18INFO_FILES= yes
19TEST_TARGET= check 19TEST_TARGET= check
20 20
21.include "../../mk/bsd.prefs.mk" 21.include "../../mk/bsd.prefs.mk"
22 22
23.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) 23.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
24CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} 24CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q}
25.else 25.else
26CONFIGURE_ENV+= CC_FOR_BUILD=${CC:Q}\ ${CFLAGS:M*:Q} 26CONFIGURE_ENV+= CC_FOR_BUILD=${CC:Q}\ ${CFLAGS:M*:Q}
27.endif 27.endif
28 28
 29.if !empty(MACHINE_PLATFORM:MDarwin-8.*-powerpc)
 30CFLAGS+= -D__DARWIN_UNIX03
 31.endif
 32
29.if !empty(MACHINE_PLATFORM:MSunOS-5.10-*) 33.if !empty(MACHINE_PLATFORM:MSunOS-5.10-*)
30LIBS+= -lrt 34LIBS+= -lrt
31.endif 35.endif
32 36
33.include "../../converters/libiconv/buildlink3.mk" 37.include "../../converters/libiconv/buildlink3.mk"
34.include "../../devel/gettext-lib/buildlink3.mk" 38.include "../../devel/gettext-lib/buildlink3.mk"
35.include "../../mk/bsd.pkg.mk" 39.include "../../mk/bsd.pkg.mk"