pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/firefox firefox: don't include malloc.h on dragonf...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b550aa21f14c
branches:  trunk
changeset: 358064:b550aa21f14c
user:      maya <maya%pkgsrc.org@localhost>
date:      Sat Feb 04 12:58:12 2017 +0000

description:
firefox: don't include malloc.h on dragonflybsd.

a slightly more maintenance friendly version of the patch in PR pkg/51695 from
David Shao.

diffstat:

 www/firefox/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r f1ad5736ab2d -r b550aa21f14c www/firefox/Makefile
--- a/www/firefox/Makefile      Sat Feb 04 12:51:55 2017 +0000
+++ b/www/firefox/Makefile      Sat Feb 04 12:58:12 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.280 2017/01/27 13:28:11 ryoon Exp $
+# $NetBSD: Makefile,v 1.281 2017/02/04 12:58:12 maya Exp $
 
 FIREFOX_VER=           ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
 MOZ_BRANCH=            51.0
@@ -37,6 +37,13 @@
 BUILDLINK_TRANSFORM.SunOS+=    rm:-fdata-sections
 BUILDLINK_TRANSFORM.SunOS+=    rm:-ffunction-sections
 
+SUBST_CLASSES+=                        dfly_malloc_h
+SUBST_STAGE.dfly_malloc_h=     pre-configure
+SUBST_MESSAGE.dfly_malloc_h=   Dont include malloc.h on dragonflybsd
+SUBST_SED.dfly_malloc_h=       -e 's,HAVE_MALLOC_H,HAVE_MALLOC_H \&\& !defined(__DragonFly__),g'
+SUBST_FILES.dfly_malloc_h=     media/libav/libavutil/mem.c
+SUBST_FILES.dfly_malloc_h+=    media/ffvpx/libavutil/mem.c
+
 LDFLAGS.DragonFly=     -lplc4 -lnspr4
 LDFLAGS.FreeBSD=       -lplc4 -lnspr4
 LDFLAGS.Linux=         -lnspr4



Home | Main Index | Thread Index | Old Index