summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-03-30 09:34:32 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-03-30 09:34:32 +0800
commita3fc1bdbd3874c14bdcbe050841440627fd5b4be (patch)
tree28507b49f0a94286329816e1dd9ed13934d69fe6 /www
parent623dfa80856fce78bbeb3cbdc998d8cde01d8d96 (diff)
downloadmarcuscom-ports-a3fc1bdbd3874c14bdcbe050841440627fd5b4be.tar.gz
marcuscom-ports-a3fc1bdbd3874c14bdcbe050841440627fd5b4be.tar.zst
marcuscom-ports-a3fc1bdbd3874c14bdcbe050841440627fd5b4be.zip
Add libxul after a repocopy from xulrunner, and update to 1.9.0.7. The
modifications in this version allow one to build epiphany with libxul support. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12186 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www')
-rw-r--r--www/libxul/Makefile15
-rw-r--r--www/libxul/distinfo6
-rw-r--r--www/libxul/files/patch-xulrunner_installer_libxul.pc.in11
3 files changed, 25 insertions, 7 deletions
diff --git a/www/libxul/Makefile b/www/libxul/Makefile
index 8a11318cb..cd484b4b4 100644
--- a/www/libxul/Makefile
+++ b/www/libxul/Makefile
@@ -3,16 +3,16 @@
# Whom: Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/www/xulrunner/Makefile,v 1.18 2009/02/09 02:43:46 ahze Exp $
+# $MCom$
#
-PORTNAME= xulrunner
-PORTVERSION= 1.9.0.6
+PORTNAME= libxul
+PORTVERSION= 1.9.0.7
PORTREVISION?= 0
CATEGORIES?= www devel
MASTER_SITES= ${MASTER_SITE_MOZILLA}
MASTER_SITE_SUBDIR= xulrunner/releases/${PORTVERSION}/source/
-DISTNAME= ${PORTNAME}-${PORTVERSION}-source
+DISTNAME= xulrunner-${PORTVERSION}-source
MAINTAINER?= gnome@FreeBSD.org
COMMENT?= Mozilla runtime package that can be used to bootstrap XUL+XPCOM apps
@@ -28,6 +28,7 @@ ALL_TARGET= default
HAS_CONFIGURE= yes
USE_BZIP2= yes
USE_GMAKE= yes
+LDFLAGS+= -Wl,-rpath,${PREFIX}/lib/${MOZ_RPATH}
PORT_MOZCONFIG= ${WRKSRC}/xulrunner/config/mozconfig
MOZ_OPTIONS?= --with-default-mozilla-five-home=${PREFIX}/lib/${MOZILLA} \
@@ -43,4 +44,10 @@ MOZ_PKGCONFIG_FILES= libxul-embedding-unstable libxul-embedding \
libxul-unstable libxul mozilla-gtkmozembed-embedding \
mozilla-gtkmozembed mozilla-js mozilla-nss mozilla-plugin
+post-build:
+ @${REINPLACE_CMD} -e "s|\(Libs:.*\)\($$\)|\1 -Wl,-rpath,${PREFIX}/lib/${MOZ_RPATH}\2| ; \
+ s|%sdkdir%|%sdkdir%/sdk|g ; \
+ s|%%MOZ_LIBDIR%%|${PREFIX}/lib/${MOZILLA}|g" \
+ ${WRKSRC}/xulrunner/installer/*.pc.in || ${TRUE}
+
.include <bsd.port.mk>
diff --git a/www/libxul/distinfo b/www/libxul/distinfo
index 944baa85f..5c4a36a6d 100644
--- a/www/libxul/distinfo
+++ b/www/libxul/distinfo
@@ -1,3 +1,3 @@
-MD5 (xulrunner-1.9.0.6-source.tar.bz2) = 1b6063d29fe9785b929a36f249866360
-SHA256 (xulrunner-1.9.0.6-source.tar.bz2) = f96a298548249fca90849be2159bdc9a27ce1f36d3d62da9925ad8ecee8c8a8d
-SIZE (xulrunner-1.9.0.6-source.tar.bz2) = 37081721
+MD5 (xulrunner-1.9.0.7-source.tar.bz2) = 9875c9237b532009df8e91c3785539a3
+SHA256 (xulrunner-1.9.0.7-source.tar.bz2) = 300749986499629fdab5b271c35eb53f42753a3586ef474500d52bd3386cad9b
+SIZE (xulrunner-1.9.0.7-source.tar.bz2) = 37066129
diff --git a/www/libxul/files/patch-xulrunner_installer_libxul.pc.in b/www/libxul/files/patch-xulrunner_installer_libxul.pc.in
new file mode 100644
index 000000000..690ce9ce9
--- /dev/null
+++ b/www/libxul/files/patch-xulrunner_installer_libxul.pc.in
@@ -0,0 +1,11 @@
+--- xulrunner/installer/libxul.pc.in.orig 2007-08-03 10:46:28.000000000 -0400
++++ xulrunner/installer/libxul.pc.in 2009-03-29 15:17:17.000000000 -0400
+@@ -12,5 +12,5 @@ Name: libxul
+ Description: The Mozilla Runtime and Embedding Engine
+ Version: %MOZILLA_VERSION%
+ Requires: %NSPR_NAME% >= %NSPR_VERSION%
+-Libs: -L${sdkdir}/lib -lxpcomglue_s -lxul -lxpcom
+-Cflags: -I${includedir}/${includetype} -fshort-wchar
+\ No newline at end of file
++Libs: -L${sdkdir}/lib -L%%MOZ_LIBDIR%% -lxpcomglue_s -lxul -lxpcom
++Cflags: -I${includedir}/${includetype} -fshort-wchar