summaryrefslogtreecommitdiff
path: root/mail/thunderbird10/options.mk
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2012-03-15 09:45:26 +0000
committerryoon <ryoon@pkgsrc.org>2012-03-15 09:45:26 +0000
commit2d936aaaf2d470d6f71f104e257ace5de677aaf5 (patch)
tree9ec36145e64025eaa44b355cf6f5917a87dd4424 /mail/thunderbird10/options.mk
parent4a4bd1d68c79141ed7e7234822f0142533e3519b (diff)
downloadpkgsrc-2d936aaaf2d470d6f71f104e257ace5de677aaf5.tar.gz
Import thunderbird10-10.0.3 as mail/thunderbird10
* This is ESR (Extended Support Release) version. * Fix security bugs
Diffstat (limited to 'mail/thunderbird10/options.mk')
-rw-r--r--mail/thunderbird10/options.mk82
1 files changed, 82 insertions, 0 deletions
diff --git a/mail/thunderbird10/options.mk b/mail/thunderbird10/options.mk
new file mode 100644
index 00000000000..815bea9795f
--- /dev/null
+++ b/mail/thunderbird10/options.mk
@@ -0,0 +1,82 @@
+# $NetBSD: options.mk,v 1.1.1.1 2012/03/15 09:45:29 ryoon Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.thunderbird
+PKG_SUPPORTED_OPTIONS= debug mozilla-jemalloc gnome official-mozilla-branding mozilla-lightning mozilla-enigmail
+PKG_SUGGESTED_OPTIONS= mozilla-lightning
+
+PLIST_VARS+= branding nobranding debug gnome jemalloc jit
+
+.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"
+CONFIGURE_ARGS+= --enable-gnomevfs --enable-dbus --enable-gnomeui
+PLIST.gnome= yes
+.else
+CONFIGURE_ARGS+= --disable-gnomevfs --disable-dbus --disable-gnomeui
+.endif
+
+.if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
+PLIST.jemalloc= yes
+CONFIGURE_ARGS+= --enable-jemalloc
+.else
+CONFIGURE_ARGS+= --disable-jemalloc
+.endif
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug --enable-debug-symbols
+CONFIGURE_ARGS+= --disable-install-strip
+PLIST.debug= yes
+.else
+CONFIGURE_ARGS+= --disable-debug --disable-debug-symbols
+CONFIGURE_ARGS+= --enable-install-strip
+.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:Mmozilla-lightning)
+CONFIGURE_ARGS+= --enable-calendar
+PLIST_SRC+= PLIST.lightning
+XPI_FILES+= ${WRKSRC}/mozilla/dist/xpi-stage/calendar-timezones.xpi
+XPI_FILES+= ${WRKSRC}/mozilla/dist/xpi-stage/gdata-provider.xpi
+XPI_FILES+= ${WRKSRC}/mozilla/dist/xpi-stage/lightning.xpi
+.else
+CONFIGURE_ARGS+= --disable-calendar
+.endif
+
+.if !empty(PKG_OPTIONS:Mmozilla-enigmail) || make(distinfo)
+.include "enigmail.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mofficial-mozilla-branding)
+CONFIGURE_ARGS+= --enable-official-branding
+PLIST.branding= yes
+LICENSE= mozilla-trademark-license
+RESTRICTED= Trademark holder prohibits distribution of modified versions.
+NO_BIN_ON_CDROM= ${RESTRICTED}
+NO_BIN_ON_FTP= ${RESTRICTED}
+.else
+CONFIGURE_ARGS+= --disable-official-branding
+PLIST.nobranding= yes
+.endif