| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: mozilla-common.mk,v 1.3 2013/06/02 08:29:06 spz Exp $ | | 1 | # $NetBSD: mozilla-common.mk,v 1.4 2013/06/06 14:07:23 ryoon Exp $ |
2 | # | | 2 | # |
3 | # common Makefile fragment for mozilla packages based on gecko 2.0. | | 3 | # common Makefile fragment for mozilla packages based on gecko 2.0. |
4 | # | | 4 | # |
5 | # used by devel/xulrunner/Makefile | | 5 | # used by devel/xulrunner/Makefile |
6 | # used by mail/thunderbird/Makefile | | 6 | # used by mail/thunderbird/Makefile |
7 | # used by www/firefox/Makefile | | 7 | # used by www/firefox/Makefile |
8 | # used by www/seamonkey/Makefile | | 8 | # used by www/seamonkey/Makefile |
9 | | | 9 | |
10 | GNU_CONFIGURE= yes | | 10 | GNU_CONFIGURE= yes |
11 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip | | 11 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip |
12 | USE_LANGUAGES+= c99 c++ | | 12 | USE_LANGUAGES+= c99 c++ |
13 | UNLIMIT_RESOURCES+= datasize | | 13 | UNLIMIT_RESOURCES+= datasize |
14 | | | 14 | |
| @@ -63,34 +63,26 @@ CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/ | | | @@ -63,34 +63,26 @@ CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/ |
63 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.sub | | 63 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.sub |
64 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.sub | | 64 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.sub |
65 | | | 65 | |
66 | PYTHON_FOR_BUILD_ONLY= yes | | 66 | PYTHON_FOR_BUILD_ONLY= yes |
67 | .include "../../lang/python/application.mk" | | 67 | .include "../../lang/python/application.mk" |
68 | CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q} | | 68 | CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q} |
69 | | | 69 | |
70 | SUBST_CLASSES+= python | | 70 | SUBST_CLASSES+= python |
71 | SUBST_STAGE.python= pre-configure | | 71 | SUBST_STAGE.python= pre-configure |
72 | SUBST_MESSAGE.python= Fixing path to python. | | 72 | SUBST_MESSAGE.python= Fixing path to python. |
73 | SUBST_FILES.python+= media/webrtc/trunk/build/common.gypi | | 73 | SUBST_FILES.python+= media/webrtc/trunk/build/common.gypi |
74 | SUBST_SED.python+= -e 's,<!(python,<!(${PYTHONBIN},' | | 74 | SUBST_SED.python+= -e 's,<!(python,<!(${PYTHONBIN},' |
75 | | | 75 | |
76 | # When MACHINAE_ARCH == "arm", libjpeg-turbo should be enabled. | | | |
77 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") | | | |
78 | BUILD_DEPENDS+= yasm>=1.1.0:../../devel/yasm | | | |
79 | CONFIGURE_ARGS+= --enable-libjpeg-turbo | | | |
80 | .else | | | |
81 | CONFIGURE_ARGS+= --disable-libjpeg-turbo | | | |
82 | .endif | | | |
83 | | | | |
84 | PLIST_VARS+= sps vorbis tremor | | 76 | PLIST_VARS+= sps vorbis tremor |
85 | | | 77 | |
86 | .if !empty(MACHINE_PLATFORM:S/i386/x86/:MLinux-*-x86*) | | 78 | .if !empty(MACHINE_PLATFORM:S/i386/x86/:MLinux-*-x86*) |
87 | PLIST.sps= yes | | 79 | PLIST.sps= yes |
88 | .endif | | 80 | .endif |
89 | | | 81 | |
90 | .if !empty(MACHINE_PLATFORM:MLinux-*-arm*) || ${OPSYS} == "DragonFly" \ | | 82 | .if !empty(MACHINE_PLATFORM:MLinux-*-arm*) || ${OPSYS} == "DragonFly" \ |
91 | || ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" | | 83 | || ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" |
92 | PLIST.tremor= yes | | 84 | PLIST.tremor= yes |
93 | .else | | 85 | .else |
94 | PLIST.vorbis= yes | | 86 | PLIST.vorbis= yes |
95 | .endif | | 87 | .endif |
96 | | | 88 | |