43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.7 2013/12/04 23:59:27 landry Exp $
|
|
|
|
MOZILLA_VERSION = 24.0
|
|
MOZILLA_BRANCH = release
|
|
MOZILLA_PROJECT = xulrunner
|
|
PKGSPEC-devel = xulrunner-devel->=24.0,<31.0
|
|
PKGSPEC-main = xulrunner->=24.0,<31.0
|
|
REVISION = 0
|
|
REVISION-devel = 3
|
|
|
|
SO_VERSION = 0.0
|
|
MOZILLA_LIBS = mozgnome mozalloc xul
|
|
|
|
# necessary glue to build with the correct compiler after fx 17
|
|
MODULES += gcc4 lang/clang
|
|
MODGCC4_ARCHS = powerpc sparc64 alpha
|
|
MODGCC4_LANGS = c c++
|
|
MODCLANG_ARCHS = amd64 i386
|
|
MODCLANG_LANGS = c c++
|
|
|
|
# to be able to link when building with clang on i386 or gcc on ppc
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc"
|
|
CONFIGURE_ARGS += --disable-debug-symbols
|
|
.endif
|
|
|
|
RUN_DEPENDS-devel = ${PKGNAME-main}:${BASE_PKGPATH},-main
|
|
|
|
CONFIGURE_ENV += MOZ_OFFICIAL_BRANDING_DIRECTORY=browser/branding
|
|
|
|
post-install:
|
|
#otherwise libxul.so ends up being 1Go in sdk/lib
|
|
${STRIP} ${PREFIX}/lib/${MOZILLA_PROJECT}-devel-${MOZILLA_VERSION}/sdk/lib/lib*.{so*,a}
|
|
#avoid conflict with lang/spidermonkey
|
|
mv ${PREFIX}/lib/pkgconfig/{mozilla,libxul}-js.pc
|
|
# MOZ_ENABLE_SKIA_GPU is false on ppc (see configure.in:8041 / bug 849253)
|
|
# manually install the header to avoir packaging hacks
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
|
${INSTALL_DATA} ${WRKSRC}/gfx/gl/GLContextSkia.h \
|
|
${PREFIX}/include/${MOZILLA_PROJECT}-${MOZILLA_VERSION}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|