pkgsrc/devel/xulrunner/options.mk
tnn 9372577180 Update to firefox-4.0.
Firefox 4 is based on the Gecko 2.0 Web platform. This release features
JavaScript execution speeds up to six times faster than the previous
version, new capabilities for Web Developers and Add-on Developers such as
hardware accelerated graphics and HTML5 technologies, and a completely
revised user interface.
2011-04-26 14:16:36 +00:00

61 lines
1.6 KiB
Makefile

# $NetBSD: options.mk,v 1.9 2011/04/26 14:16:36 tnn Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.xulrunner
PKG_SUPPORTED_OPTIONS= debug mozilla-jemalloc gnome pulseaudio
PLIST_VARS+= jit gnome debug
.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
PKG_SUGGESTED_OPTIONS+= mozilla-jemalloc
.endif
.if !empty(MACHINE_ARCH:Mi386) || !empty(MACHINE_ARCH:Msparc) || \
!empty(MACHINE_ARCH:Marm) || !empty(MACHINE_ARCH:Mx86_64)
PKG_SUPPORTED_OPTIONS+= mozilla-jit
PKG_SUGGESTED_OPTIONS+= mozilla-jit
NANOJIT_ARCH.i386= i386
NANOJIT_ARCH.arm= ARM
NANOJIT_ARCH.sparc= Sparc
NANOJIT_ARCH.x86_64= X64
.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mgnome)
.include "../../devel/libgnomeui/buildlink3.mk"
.include "../../sysutils/gnome-vfs/buildlink3.mk"
.include "../../sysutils/libnotify/buildlink3.mk"
CONFIGURE_ARGS+= --enable-gnomevfs --enable-dbus --enable-gnomeui
CONFIGURE_ARGS+= --enable-libnotify
PLIST.gnome= yes
.else
CONFIGURE_ARGS+= --disable-gnomevfs --disable-dbus --disable-gnomeui
CONFIGURE_ARGS+= --disable-libnotify
.endif
.if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
CONFIGURE_ARGS+= --enable-jemalloc
.else
CONFIGURE_ARGS+= --disable-jemalloc
.endif
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug
CONFIGURE_ARGS+= --disable-install-strip
PLIST.debug= yes
.else
CONFIGURE_ARGS+= --disable-debug
.endif
.if !empty(PKG_OPTIONS:Mmozilla-jit)
PLIST.jit= yes
PLIST_SUBST+= NANOJIT_ARCH=${NANOJIT_ARCH.${MACHINE_ARCH}}
CONFIGURE_ARGS+= --enable-tracejit
.else
CONFIGURE_ARGS+= --disable-tracejit
.endif
.if !empty(PKG_OPTIONS:Mpulseaudio)
.include "../../audio/pulseaudio/buildlink3.mk"
ALL_ENV+= PKGSRC_PULSEAUDIO=1
.endif