pkgsrc/www/seamonkey/Makefile
ryoon 71a5e83178 Add enigmail 1.4 option (mozilla-enigmail) and Lightning 1.3 option
(mozilla-lightning)

* Lightning 1.3 is fetched from mozilla's hg repository.
* Both options are disabled by default.
2012-03-19 20:28:11 +00:00

67 lines
2.2 KiB
Makefile

# $NetBSD: Makefile,v 1.68 2012/03/19 20:28:11 ryoon Exp $
#
DISTNAME= # empty
PKGNAME= seamonkey-${SM_VER}
SM_VER= 2.8
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA:=seamonkey/releases/${SM_VER}/source/} \
${MASTER_SITE_LOCAL}
DISTFILES= seamonkey-${SM_VER}.source.tar.bz2 \
comm-release-f60c071e187b.tar.bz2
MAINTAINER= tnn@NetBSD.org
HOMEPAGE= http://www.seamonkey-project.org/
COMMENT= Full-featured gecko-based browser
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/comm-release
MOZILLA_DIR= mozilla/
PLIST_SRC+= ${PLIST_SRC_DFLT}
CONFIG_GUESS_OVERRIDE+= ldap/sdks/c-sdk/config/autoconf/config.guess
CONFIG_SUB_OVERRIDE+= ldap/sdks/c-sdk/config/autoconf/config.sub
CONFIGURE_ARGS+= --enable-application=suite
ALL_ENV+= MOZILLA_PKG_NAME=seamonkey
LDFLAGS+= -Wl,-rpath,${PREFIX}/lib/seamonkey
.include "../../mk/bsd.prefs.mk"
.if (${OPSYS} == "Linux" || ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || \
${OPSYS} == "DragonFly") && \
(${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
BUILD_DEPENDS+= yasm>=1.1.0:../../devel/yasm
.endif
pre-configure:
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} autoconf
cd ${WRKSRC}/mozilla && ${SETENV} ${CONFIGURE_ENV} autoconf
cd ${WRKSRC}/mozilla/js/src && ${SETENV} ${CONFIGURE_ENV} autoconf
cd ${WRKSRC}/mozilla/nsprpub && ${SETENV} ${CONFIGURE_ENV} autoconf
cd ${WRKSRC}/ldap/sdks/c-sdk && ${SETENV} ${CONFIGURE_ENV} autoconf
do-build:
# XXX for some reason it doesn't work unless -j is explicitly specified
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} -j${MAKE_JOBS:U1}
post-install:
@${STEP_MSG} "Installing bundled seamonkey extensions."
rm -rf ${WRKDIR}/extensions
${MKDIR} ${WRKDIR}/extensions
${RUN} for e in ${XPI_FILES}; do \
subdir="`${UNZIP_CMD} -c "$$e" install.rdf | awk '/^ <em:id>/ {sub(".*<em:id>","");sub("</em:id>.*","");print;exit;}'`" && \
${MKDIR} "${WRKDIR}/extensions/$$subdir" && \
cd "${WRKDIR}/extensions/$$subdir" && \
${UNZIP_CMD} -aqo $$e; \
done
cd ${WRKDIR}/extensions && pax -rw . \
${DESTDIR}${PREFIX}/lib/seamonkey/extensions/.
rm -rf ${WRKDIR}/extensions
.include "../../devel/xulrunner/mozilla-common.mk"
.include "options.mk"
.include "../../mk/bsd.pkg.mk"