2012-09-22 06:30:17 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.65 2012/09/22 10:30:17 landry Exp $
|
2009-07-27 17:35:56 -04:00
|
|
|
|
2012-03-16 17:45:08 -04:00
|
|
|
MOZILLA_VERSION = 1.9.2.28
|
2010-10-26 06:01:33 -04:00
|
|
|
MOZILLA_BRANCH = 1.9.2
|
|
|
|
MOZILLA_PROJECT = xulrunner1.9
|
2011-08-24 02:22:19 -04:00
|
|
|
MOZILLA_DIST = firefox
|
2012-03-16 17:45:08 -04:00
|
|
|
MOZILLA_DIST_VERSION = 3.6.28
|
2012-09-01 10:35:06 -04:00
|
|
|
REVISION-devel = 1
|
2012-09-22 06:30:17 -04:00
|
|
|
REVISION-main = 4
|
2010-06-12 11:16:47 -04:00
|
|
|
|
2011-01-14 17:50:38 -05:00
|
|
|
SO_VERSION = 3.2
|
2009-07-27 17:35:56 -04:00
|
|
|
# NOTE: Must bump minor version if any shlib's are removed from the
|
|
|
|
# components dir to avoid pkg_add -r issues.
|
2011-01-14 17:50:38 -05:00
|
|
|
MOZILLA_LIBS = imgicon mozjs xpcom xul nullplugin unixprintplugin
|
2009-07-27 17:35:56 -04:00
|
|
|
|
2010-06-12 11:16:47 -04:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
PKG_ARGS+= -Djit=1 -Damd64=0
|
|
|
|
.elif ${MACHINE_ARCH} == "amd64"
|
|
|
|
PKG_ARGS+= -Djit=1 -Damd64=1
|
|
|
|
.else
|
|
|
|
PKG_ARGS+= -Djit=0 -Damd64=0
|
|
|
|
.endif
|
|
|
|
|
2012-09-01 10:35:06 -04:00
|
|
|
# use patches from www/firefox36
|
2011-03-26 09:25:50 -04:00
|
|
|
PATCHDIR = ${PORTSDIR}/www/firefox36/patches
|
2010-06-12 11:16:47 -04:00
|
|
|
|
2010-10-26 06:01:33 -04:00
|
|
|
MOZILLA_DATADIRS = chrome components defaults dictionaries greprefs \
|
2009-07-27 17:35:56 -04:00
|
|
|
icons modules plugins res
|
2010-10-26 06:01:33 -04:00
|
|
|
MOZILLA_AUTOCONF_DIRS += js/src
|
|
|
|
MOZILLA_SUBST_FILES += config/autoconf.mk.in \
|
|
|
|
xulrunner/setup/nsXULAppInstall.js
|
2010-10-26 06:15:39 -04:00
|
|
|
DISTDIRS = idl include
|
|
|
|
TOOLS = nsinstall xpcshell xpidl xpt_dump xpt_link xulrunner-bin xulrunner-stub
|
|
|
|
PCFILES = libxul.pc libxul-embedding.pc mozilla-js.pc \
|
2009-07-27 17:35:56 -04:00
|
|
|
mozilla-plugin.pc mozilla-gtkmozembed.pc \
|
|
|
|
mozilla-gtkmozembed-embedding.pc
|
|
|
|
|
2012-04-07 09:10:50 -04:00
|
|
|
WANTLIB-devel = ${MOZILLA_PROJECT}/mozjs ${MOZILLA_PROJECT}/xpcom \
|
|
|
|
${MOZILLA_PROJECT}/xul
|
|
|
|
|
2009-07-27 17:35:56 -04:00
|
|
|
post-build:
|
|
|
|
cd ${WRKSRC}/xulrunner/installer && env -i ${MAKE_ENV} \
|
|
|
|
${MAKE_PROGRAM} ${MAKE_FLAGS} ${PCFILES}
|
|
|
|
|
2010-10-26 06:01:33 -04:00
|
|
|
pre-install:
|
|
|
|
cd ${MOB} && ln -sf xulrunner ${MOZILLA_PROJECT}
|
|
|
|
cd ${MOB} && ln -sf xulrunner-bin ${MOZILLA_PROJECT}-bin
|
|
|
|
|
|
|
|
post-install:
|
2009-07-27 17:35:56 -04:00
|
|
|
cd ${WRKSRC}/dist && \
|
|
|
|
find ${DISTDIRS} -type d \
|
|
|
|
-exec ${INSTALL_DATA_DIR} ${MOZ}/{} \; && \
|
|
|
|
find ${DISTDIRS} ! -type d \
|
|
|
|
-exec ${INSTALL_DATA} {} ${MOZ}/{} \;
|
2010-10-26 06:01:33 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/lib/libxpcomglue.a \
|
2009-07-27 17:35:56 -04:00
|
|
|
${WRKSRC}/dist/lib/libxpcomglue_s.a ${MOZ}
|
2010-07-11 10:55:56 -04:00
|
|
|
# needed to please libtool - libs are built with fPIC
|
2010-10-26 06:01:33 -04:00
|
|
|
cd ${MOZ} && ln -sf libxpcomglue_s.a libxpcomglue_s_pic.a
|
|
|
|
cd ${MOZ} && ln -sf libxpcomglue.a libxpcomglue_pic.a
|
|
|
|
cd ${MOB} && ${INSTALL_PROGRAM} ${TOOLS} ${MOZ}
|
2009-07-27 17:35:56 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
|
|
|
|
.for pcfile in ${PCFILES}
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/xulrunner/installer/${pcfile} \
|
|
|
|
${PREFIX}/lib/pkgconfig/${pcfile:S/mozilla/xulrunner/}
|
|
|
|
.endfor
|
2012-04-07 09:10:50 -04:00
|
|
|
perl -pi -e 's|libxul|libxul19|g; s|/lib||g; ' \
|
2009-07-27 17:35:56 -04:00
|
|
|
-e 's|^(Libs:.*)|\1 -Wl,-rpath,${LOCALBASE}/xulrunner1.9|g; ' \
|
2010-07-15 07:01:21 -04:00
|
|
|
-e 's|-lxpcomglue |-lxpcomglue_pic |g; s|-lxpcomglue_s |-lxpcomglue_s_pic |; ' \
|
2009-07-27 17:35:56 -04:00
|
|
|
${PREFIX}/lib/pkgconfig/*.pc
|
|
|
|
|
2012-04-07 09:10:50 -04:00
|
|
|
# avoid conflicts with newer xulrunners
|
|
|
|
mv ${PREFIX}/lib/pkgconfig/libxul{,19}.pc
|
|
|
|
mv ${PREFIX}/lib/pkgconfig/libxul{,19}-embedding.pc
|
|
|
|
|
2009-07-27 17:35:56 -04:00
|
|
|
.include <bsd.port.mk>
|