pkgsrc/devel/xulrunner192/options.mk
tnn ff57234978 Re-import previous version of Firefox, because firefox-4.0 won't
work for some users (sparc64 support, for example, is busted and
won't appear again until firefox-5.0).
2011-04-19 11:16:02 +00:00

56 lines
1.5 KiB
Makefile

# $NetBSD: options.mk,v 1.1.1.1 2011/04/19 11:16:07 tnn Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.xulrunner
PKG_SUPPORTED_OPTIONS= debug mozilla-jemalloc gnome
PLIST_VARS+= jit gnome debug jemalloc
.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
PKG_SUGGESTED_OPTIONS+= mozilla-jemalloc
.endif
.if !empty(MACHINE_ARCH:Mi386) || !empty(MACHINE_ARCH:Msparc) || \
!empty(MACHINE_ARCH:Marm)
PKG_SUPPORTED_OPTIONS+= mozilla-jit
PKG_SUGGESTED_OPTIONS+= mozilla-jit
NANOJIT_ARCH.i386= i386
NANOJIT_ARCH.arm= ARM
NANOJIT_ARCH.sparc= Sparc
.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
PLIST.jemalloc= yes
.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-jit
.else
CONFIGURE_ARGS+= --disable-jit
.endif