2010-09-26 03:42:03 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2010/09/26 07:42:03 espie Exp $
|
2009-07-27 17:35:56 -04:00
|
|
|
|
|
|
|
VERSION= 1.8.1.19
|
2010-09-26 03:42:03 -04:00
|
|
|
REVISION-main= 6
|
|
|
|
REVISION-devel= 6
|
2009-07-27 17:35:56 -04:00
|
|
|
DIRECTORY= xulrunner
|
|
|
|
|
|
|
|
SO_VERSION= 2.0
|
|
|
|
# NOTE: Must bump minor version if any shlib's are removed from the
|
|
|
|
# components dir to avoid pkg_add -r issues.
|
|
|
|
.for _lib in auth autoconfig cookie fileview gtkembedmoz mozjs nullplugin \
|
|
|
|
permissions pipboot pipnss pippki system-pref transformiix \
|
|
|
|
universalchardet unixprintplugin websrvcs xmlextras xpcom xul xulutil
|
|
|
|
SHARED_LIBS+= ${_lib} ${SO_VERSION}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-system-png=${LOCALBASE} \
|
2010-09-12 13:58:51 -04:00
|
|
|
--enable-system-sqlite \
|
2009-07-27 17:35:56 -04:00
|
|
|
--enable-default-toolkit=gtk2
|
|
|
|
|
|
|
|
MOB= ${WRKSRC}/dist/bin
|
|
|
|
MOZ= ${PREFIX}/${DIRECTORY}
|
|
|
|
|
|
|
|
DATADIRS= chrome defaults icons res components greprefs plugins
|
|
|
|
DISTDIRS= idl include
|
|
|
|
TOOLS= TestGtkEmbed xpcshell xpt_link mozilla-xremote-client \
|
|
|
|
xpicleanup xulrunner-bin nsinstall xpidl \
|
|
|
|
xulrunner-stub regxpcom xpt_dump
|
|
|
|
|
2010-06-20 15:44:40 -04:00
|
|
|
WANTLIB-main+= Xft
|
|
|
|
|
2009-07-27 17:35:56 -04:00
|
|
|
pre-configure:
|
|
|
|
@perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g; s|_X11BASE_|${X11BASE}|g' \
|
|
|
|
${WRKSRC}/js/src/xpconnect/shell/Makefile.in \
|
|
|
|
${WRKSRC}/xulrunner/app/mozilla.in \
|
|
|
|
${WRKSRC}/xulrunner/setup/nsXULAppInstall.js
|
|
|
|
@perl -pi -e 's|_SO_VERSION_|${SO_VERSION}|g' \
|
|
|
|
${WRKSRC}/xpcom/components/nsNativeComponentLoader.cpp
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC}/dist && \
|
|
|
|
find ${DISTDIRS} -type d \
|
|
|
|
-exec ${INSTALL_DATA_DIR} ${MOZ}/{} \; && \
|
|
|
|
find ${DISTDIRS} ! -type d \
|
|
|
|
-exec ${INSTALL_DATA} {} ${MOZ}/{} \;
|
|
|
|
cd ${MOB} && \
|
|
|
|
find ${DATADIRS} -type d \
|
|
|
|
-exec ${INSTALL_DATA_DIR} ${MOZ}/{} \; && \
|
|
|
|
find ${DATADIRS} ! -type d \
|
|
|
|
-exec ${INSTALL_DATA} -m 644 {} ${MOZ}/{} \; && \
|
|
|
|
${INSTALL_PROGRAM} ${TOOLS} ${MOZ}
|
|
|
|
${INSTALL_DATA} ${MOB}/*.so.${SO_VERSION} ${MOZ}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/lib/libxpcomglue.a \
|
|
|
|
${WRKSRC}/dist/lib/libxpcomglue_s.a ${MOZ}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${MOZ}
|
|
|
|
${INSTALL_SCRIPT} ${MOB}/xulrunner ${MOB}/xulrunner-config \
|
|
|
|
${PREFIX}/bin/
|
|
|
|
${INSTALL_SCRIPT} ${MOB}/run-mozilla.sh ${MOZ}
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/build/unix/*.pc \
|
|
|
|
${FILESDIR}/xulrunner-embedding.pc ${PREFIX}/lib/pkgconfig
|
|
|
|
@perl -pi -e 's|!!PREFIX!!|${TRUEPREFIX}|g; ' \
|
|
|
|
-e 's|!!VERSION!!|${VERSION}|g; ' \
|
|
|
|
${PREFIX}/lib/pkgconfig/xulrunner-embedding.pc
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|