Free commit, shuffle things around to greatly reduce the diff between

thunderbird and seamonkey makefiles.
This commit is contained in:
landry 2012-10-21 09:55:47 +00:00
parent 14c60eb928
commit 7365c2e720

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.114 2012/10/14 14:26:02 naddy Exp $
# $OpenBSD: Makefile,v 1.115 2012/10/21 09:55:47 landry Exp $
COMMENT-main = Mozilla application suite
COMMENT-lightning = Mozilla Seamonkey calendar extension
@ -20,66 +20,70 @@ REVISION-lightning = 0
EPOCH-enigmail = 0
REVISION-enigmail = 0
SO_VERSION= 26.0
#MASTER_SITES= ftp://ftp.mozilla.org/pub/mozilla.org/${MOZILLA_PROJECT}/nightly/${MOZILLA_VERSION}-candidates/build1/source/
MASTER_SITES0 = http://www.mozilla-enigmail.org/download/source/
DISTFILES += ${MOZILLA_PROJECT}-${MOZILLA_VERSION}.source.tar.bz2 \
enigmail-${ENIG_V}.tar.gz:0
EXTRACT_CASES = enigmail-*.tar.gz) ${GZIP_CMD} -dc ${FULLDISTDIR}/$$archive | tar -C comm-${MOZILLA_BRANCH}/mailnews/extensions/ -xf -;;
SO_VERSION = 26.0
# NOTE: Must bump minor version if any shlib's are removed from the
# components dir to avoid pkg_add -r issues.
MOZILLA_LIBS = ldap60 ldif60 mozalloc prldap60 suite xpcom xul calbasecomps enigmime ipc
CATEGORIES= www mail net news
# mozilla public license
# MPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
#MASTER_SITES= ftp://ftp.mozilla.org/pub/mozilla.org/${MOZILLA_PROJECT}/nightly/${MOZILLA_VERSION}-candidates/build1/source/
MASTER_SITES0 = http://www.mozilla-enigmail.org/download/source/
MODULES = www/mozilla devel/gettext lang/python
MODPY_RUNDEP = No
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
enigmail-${ENIG_V}.tar.gz
EXTRACT_CASES = enigmail-*.tar.gz) ${GZIP_CMD} -dc ${FULLDISTDIR}/$$archive | tar -C comm-${MOZILLA_BRANCH}/mailnews/extensions/ -xf -;;
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} \
enigmail-${ENIG_V}.tar.gz:0
MODULES= www/mozilla devel/gettext lang/python
BUILD_DEPENDS+= archivers/unzip
USE_GROFF = Yes
NO_REGRESS= Yes
MODGNU_CONFIG_GUESS_DIRS+= ${WRKSRC}/ldap/sdks/c-sdk/config/autoconf
MODGNU_CONFIG_GUESS_DIRS += ${WRKSRC}/ldap/sdks/c-sdk/config/autoconf
LIB_DEPENDS-lightning = STEM->=${MOZILLA_VERSION:S/b/beta/}:${BUILD_PKGPATH},-main
WANTLIB-lightning = lib/${MOZILLA_PROJECT}-${MOZILLA_VERSION:C/b.//}/xpcom \
lib/${MOZILLA_PROJECT}-${MOZILLA_VERSION:C/b.//}/xul \
lib/${MOZILLA_PROJECT}-${MOZILLA_VERSION:C/b.//}/mozalloc \
c m stdc++ nspr4 plc4 plds4
RUN_DEPENDS-enigmail = security/gnupg
LIB_DEPENDS-enigmail = ${LIB_DEPENDS-lightning}
WANTLIB-enigmail = ${WANTLIB-lightning}
# bug #736961
SEPARATE_BUILD = Yes
CONFIGURE_STYLE = autoconf no-autoheader
CONFIGURE_ENV += CPPFLAGS=-I${X11BASE}/include
CONFIGURE_ARGS += --enable-calendar
CONFIGURE_ARGS += --enable-official-branding
CONFIGURE_ARGS += --disable-gconf
CONFIGURE_ARGS += --with-system-libevent=/usr/
CONFIGURE_ARGS += --with-system-zlib=/usr/ --with-system-bz2=${LOCALBASE}
WANTLIB += event
# bug #736961
SEPARATE_BUILD = Yes
CONFIGURE_ENV += CPPFLAGS=-I${X11BASE}/include
# XXX needed since 2.7b?, relocation overflow otherwise...
# replaces -g by -Os
.if ${MACHINE_ARCH} == "powerpc"
CONFIGURE_ENV += MOZ_DEBUG_FLAGS="-Os"
.endif
ALL_TARGET= default
MOZILLA_AUTOCONF_DIRS = ldap/sdks/c-sdk mozilla mozilla/js/src
LIB_DEPENDS-lightning = STEM->=${MOZILLA_VERSION:S/b/beta/}:${BUILD_PKGPATH},-main
WANTLIB-lightning = lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/xpcom \
lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/xul \
lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/mozalloc \
c m stdc++ nspr4 plc4 plds4
BUILD_DEPENDS+= archivers/unzip #to unzip xpi
RUN_DEPENDS-enigmail = security/gnupg
LIB_DEPENDS-enigmail = ${LIB_DEPENDS-lightning}
WANTLIB-enigmail = ${WANTLIB-lightning}
# build lightning xpi
CONFIGURE_ARGS += --enable-calendar \
--disable-gconf
ALL_TARGET = default
MOZILLA_AUTOCONF_DIRS = ldap/sdks/c-sdk mozilla mozilla/js/src
ENIGMAIL_DIR = mailnews/extensions/enigmail
@ -97,8 +101,7 @@ GUIDS = gdata-provider {a62ef8ec-5fdc-40c2-873c-223b8a6925cc} \
calendar-timezones calendar-timezones@mozilla.org \
../bin/enigmail-1.5-openbsd-${GNU_ARCH} {847b3a00-7ab1-11d4-8f02-006008948af5}
EXTDIR = ${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VERSION:C/b.//}/extensions/
EXTDIR = ${PREFIX}/lib/${MOZILLA_PROJECT}-${MOZILLA_VER}/extensions/
post-install:
${INSTALL_MAN} ${WRKBUILD}/mozilla/dist/man/man1/seamonkey.1 ${PREFIX}/man/man1/