ports/84022: www/mozilla: install IDL files.
Thierry Thomas
thierry at tinder.pompo.net
Sun Jul 24 23:00:32 UTC 2005
>Number: 84022
>Category: ports
>Synopsis: www/mozilla: install IDL files.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 24 23:00:30 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Thierry Thomas
>Release: FreeBSD 6.0-BETA1 i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD tinder.pompo.net 6.0-BETA1 FreeBSD 6.0-BETA1 #1: Mon Jul 18 10:38:44 CEST 2005 thierry at tinder.pompo.net:/usr/obj/usr/src/sys/TINDER050717 i386
>Description:
When compiled and installed directly from the tarball with the
default install target, mozilla installs IDL files; when installed
as a port, these files are not installed. They are required to
build some plug-ins, e.g. the openvrml plug-in.
The following patch installs IDL files in $PREFIX/share/idl/mozilla.
du -h /usr/X11R6/share/idl/mozilla
5.2M /usr/X11R6/share/idl/mozilla
The option is set by default, in order to build the dependent
plug-ins, but it can be deactivated to spare 5.2 Mb.
Note: by default, mozilla installs these files in
$PREFIX/share/idl/mozilla-$PORTVERSION, but I have removed the
version string, to avoid unnecessary rebuild of its dependences.
>How-To-Repeat:
Try to install openvrml version 0.15.9.
>Fix:
Please apply the following patch:
--- mozilla.diff begins here ---
diff -urN www/mozilla.orig/Makefile www/mozilla/Makefile
--- www/mozilla.orig/Makefile Fri Jul 22 01:57:10 2005
+++ www/mozilla/Makefile Fri Jul 22 13:23:45 2005
@@ -7,6 +7,7 @@
PORTNAME= mozilla
PORTVERSION= 1.7.10
+PORTREVISION?= 1
PORTEPOCH= 2
CATEGORIES?= www
MASTER_SITES= ${MASTER_SITE_MOZILLA} \
@@ -102,7 +103,8 @@
JAVASCRIPT_DEBUGGER "Enable DTD and JavaScript debuggers" off \
OPTIMIZED_CFLAGS "Enable -O2 optimizations" off \
CAIRO_RENDER "Enable SVG rendering with Cairo" off \
- SMB "Enable smb:// URI support via gnomevfs" off
+ SMB "Enable smb:// URI support via gnomevfs" off \
+ IDL "Enable build of external plug-ins" on
.include <bsd.port.pre.mk>
@@ -318,6 +320,15 @@
${ECHO_CMD} @dirrm include/${MOZILLA} >> ${PLIST}
${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-desktop-database > /dev/null || ${TRUE}" >> ${PLIST}
${ECHO_CMD} "@unexec ${LOCALBASE}/bin/update-desktop-database > /dev/null || ${TRUE}" >> ${PLIST}
+.if !defined(WITHOUT_IDL)
+ cd ${FAKEDIR}/share/idl/${MOZILLA}-${PORTVERSION} \
+ && ${FIND} -s * -type f -o -type l | \
+ ${SED} -e 's:^:share/idl/${MOZILLA}/:' >> ${PLIST} \
+ && ${FIND} -d * -type d | \
+ ${SED} -e 's:^:@dirrm share/idl/${MOZILLA}/:' >> ${PLIST}
+ ${ECHO_CMD} "@dirrm share/idl/${MOZILLA}" >> ${PLIST}
+ ${ECHO_CMD} "@dirrm share/idl" >> ${PLIST}
+.endif
do-install:
${MKDIR} ${PREFIX}/lib/${MOZILLA}
@@ -357,6 +368,11 @@
${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKDIR}/mozilla.desktop \
${PREFIX}/share/applications
+.if !defined(WITHOUT_IDL)
+ ${MKDIR} ${PREFIX}/share/idl/${MOZILLA}
+ cd ${FAKEDIR}/share/idl/${MOZILLA}-${PORTVERSION} && ${FIND} . | \
+ ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/idl/${MOZILLA}
+.endif
post-install:
@${CHMOD} -R u-w ${PREFIX}/lib/${MOZILLA}/components
--- mozilla.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list