From owner-freebsd-gecko@FreeBSD.ORG Wed Sep 5 14:45:59 2012 Return-Path: Delivered-To: freebsd-gecko@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA938106566C for ; Wed, 5 Sep 2012 14:45:59 +0000 (UTC) (envelope-from svn-freebsd-gecko@chruetertee.ch) Received: from trillian.chruetertee.ch (trillian.chruetertee.ch [217.150.245.56]) by mx1.freebsd.org (Postfix) with ESMTP id 413668FC0C for ; Wed, 5 Sep 2012 14:45:59 +0000 (UTC) Received: from trillian.chruetertee.ch (trillian [217.150.245.56]) by trillian.chruetertee.ch (8.14.4/8.14.3) with ESMTP id q85EjwbR064212 for ; Wed, 5 Sep 2012 14:45:58 GMT (envelope-from svn-freebsd-gecko@chruetertee.ch) Received: (from www@localhost) by trillian.chruetertee.ch (8.14.4/8.14.3/Submit) id q85EjrX6063785 for freebsd-gecko@freebsd.org; Wed, 5 Sep 2012 14:45:53 GMT (envelope-from svn-freebsd-gecko@chruetertee.ch) Date: Wed, 5 Sep 2012 14:45:53 GMT Message-Id: <201209051445.q85EjrX6063785@trillian.chruetertee.ch> X-Authentication-Warning: trillian.chruetertee.ch: www set sender to svn-freebsd-gecko@chruetertee.ch using -f From: svn-freebsd-gecko@chruetertee.ch To: freebsd-gecko@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [SVN-Commit] r989 - in trunk/devel/nspr: . files X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-gecko@freebsd.org List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2012 14:45:59 -0000 Author: jbeich Date: Wed Sep 5 14:45:53 2012 New Revision: 989 Log: use _linux.cfg, it has support for more archs Existing constants for i386, amd64, powerpc, powerpc64, sparc64 are identical. With this change we get support for arm, mips, hppa, s390, s390x, sh, avr32, m32r, mc68000, sparc. Added: trunk/devel/nspr/files/patch-..::pr::include::md::_linux.cfg Modified: trunk/devel/nspr/Makefile Modified: trunk/devel/nspr/Makefile ============================================================================== --- trunk/devel/nspr/Makefile Wed Sep 5 14:45:45 2012 (r988) +++ trunk/devel/nspr/Makefile Wed Sep 5 14:45:53 2012 (r989) @@ -36,7 +36,10 @@ .endif post-patch: - @${REINPLACE_CMD} -e 's,-lpthread,${PTHREAD_LIBS},g ; s,echo aout,echo elf,g' ${WRKSRC}/${CONFIGURE_SCRIPT} + @${REINPLACE_CMD} -e '/MDCPUCFG_H/s/freebsd/linux/' \ + -e 's,-lpthread,${PTHREAD_LIBS},g' \ + -e 's,echo aout,echo elf,g' \ + ${WRKSRC}/${CONFIGURE_SCRIPT} do-install: ${MKDIR} ${PREFIX}/include/nspr Added: trunk/devel/nspr/files/patch-..::pr::include::md::_linux.cfg ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ trunk/devel/nspr/files/patch-..::pr::include::md::_linux.cfg Wed Sep 5 14:45:53 2012 (r989) @@ -0,0 +1,15 @@ +--- ../pr/include/md/_linux.cfg ++++ ../pr/include/md/_linux.cfg +@@ -17,9 +17,11 @@ + + #if !defined(LINUX) && defined(__linux__) + #define LINUX ++#elif !defined(FREEBSD) && defined(__FreeBSD__) ++#define FREEBSD + #endif + +-#ifdef __FreeBSD_kernel__ ++#if defined(__FreeBSD_kernel__) || defined(__FreeBSD__) + #define PR_AF_INET6 28 /* same as AF_INET6 */ + #elif defined(__GNU__) + #define PR_AF_INET6 26 /* same as AF_INET6 */