packages: OpenCASCADE/OpenCASCADE.conf (NEW), OpenCASCADE/OpenCASCADE.spec ...

gotar gotar at pld-linux.org
Fri May 28 12:26:31 CEST 2010


Author: gotar                        Date: Fri May 28 10:26:31 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial import from OpenSuse OpenCASCADE-6.3.0-40.3.src.rpm

---- Files affected:
packages/OpenCASCADE:
   OpenCASCADE.conf (NONE -> 1.1)  (NEW), OpenCASCADE.spec (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-DESTDIR.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-WOKUnix_FDescr.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-casroot.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-dep-libs.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-lib-release.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-maint-mode.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-make-draw-libs-private.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-make-wok-libs-private.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-mft-disable-mmap.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-move-vrml-vis.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-no-bitmaps-icon.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-obs-check.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-occ6.3.0.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-strcmp.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-tkernel-ld.patch (NONE -> 1.1)  (NEW), OpenCASCADE6.3.0-udlist.patch (NONE -> 1.1
 )  (NEW), OpenCASCADE6.3.0-wok-install.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/OpenCASCADE/OpenCASCADE.conf
diff -u /dev/null packages/OpenCASCADE/OpenCASCADE.conf:1.1
--- /dev/null	Fri May 28 12:26:32 2010
+++ packages/OpenCASCADE/OpenCASCADE.conf	Fri May 28 12:26:25 2010
@@ -0,0 +1,3 @@
+/opt/OpenCASCADE/lib
+/opt/OpenCASCADE/lib64
+/opt/OpenCASCADE/Linux/lib

================================================================
Index: packages/OpenCASCADE/OpenCASCADE.spec
diff -u /dev/null packages/OpenCASCADE/OpenCASCADE.spec:1.1
--- /dev/null	Fri May 28 12:26:32 2010
+++ packages/OpenCASCADE/OpenCASCADE.spec	Fri May 28 12:26:25 2010
@@ -0,0 +1,245 @@
+#
+# spec file for package OpenCASCADE
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# norootforbuild
+
+%define _prefix /opt/OpenCASCADE
+
+Name:            OpenCASCADE
+Summary:    	 OpenCASCADE CAE platform
+Url:             http://www.opencascade.org/
+Group:           Productivity/Other
+Version:         6.3.0
+Release:         40.3
+License:         LGPL-like, see http://www.opencascade.org/occ/license/
+Packager:        Andrea Florio <andrea at opensuse.org>
+Source0:         %{name}%{version}.tar.bz2
+Source1:	 %name.conf
+Source2:	 OpenCASCADE-rpmlintrc
+Patch0:          OpenCASCADE6.3.0-obs-check.patch
+Patch1:          OpenCASCADE6.3.0-strcmp.patch
+Patch2:          OpenCASCADE6.3.0-occ6.3.0.patch
+Patch3:          OpenCASCADE6.3.0-casroot.patch
+Patch4:          OpenCASCADE6.3.0-lib-release.patch
+Patch5:          OpenCASCADE6.3.0-tkernel-ld.patch
+Patch6:          OpenCASCADE6.3.0-mft-disable-mmap.patch
+Patch7:          OpenCASCADE6.3.0-no-bitmaps-icon.patch
+Patch8:          OpenCASCADE6.3.0-DESTDIR.patch
+Patch9:          OpenCASCADE6.3.0-maint-mode.patch
+Patch10:         OpenCASCADE6.3.0-dep-libs.patch
+Patch11:         OpenCASCADE6.3.0-move-vrml-vis.patch
+Patch12:         OpenCASCADE6.3.0-make-wok-libs-private.patch
+Patch13:         OpenCASCADE6.3.0-make-draw-libs-private.patch
+Patch14:         OpenCASCADE6.3.0-wok-install.patch
+Patch15:         OpenCASCADE6.3.0-udlist.patch
+Patch16:         OpenCASCADE6.3.0-WOKUnix_FDescr.patch
+
+BuildRequires:   Mesa-devel autoconf automake bison gcc-c++ xorg-x11-devel
+BuildRequires:   flex libtool tcl-devel tk-devel xorg-x11-libXmu-devel fdupes
+%ifarch i586
+BuildRequires:   compat
+%else
+BuildRequires:   compat-32bit
+%endif
+%if %suse_version >= 1100
+BuildRequires:   java-1_5_0-gcj-compat-devel
+%else
+BuildRequires:   java-1_4_2-gcj-compat-devel
+%endif
+Requires:        tcsh
+BuildRoot:       %{_tmppath}/%{name}-%{version}-build
+
+%description
+OpenCASCADE is a suite for 3D surface and solid modeling, visualization, data
+exchange and rapid application development.  It is an excellent platform for
+development of numerical simulation software including CAD/CAM/CAE, AEC and
+GIS, as well as PDM applications.
+
+%package devel
+
+Group:          Development/Libraries/C and C++
+Summary:        Devel package for %{name}
+Requires:       %{name} = %{version}
+
+%description devel
+OpenCASCADE is a suite for 3D surface and solid modeling, visualization, data
+exchange and rapid application development.  It is an excellent platform for
+development of numerical simulation software including CAD/CAM/CAE, AEC and
+GIS, as well as PDM applications.
+
+%prep
+%setup -q -n %{name}%{version}
+# all patches must applied in that order or some of them could fail
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+%patch13 -p1
+%patch14 -p1
+%patch15 -p1
+%patch16 -p1
+
+%build
+cd ros/src/ExprIntrp
+bison -d -p ExprIntrp -o ExprIntrp.tab.c ExprIntrp.yacc
+flex -L -8 -Cf -Cr -P ExprIntrp -o lex.ExprIntrp.c ExprIntrp.lex
+mv ExprIntrp.tab.h ../../inc/
+cp ExprIntrp.tab.c lex.ExprIntrp.c ../../drv/ExprIntrp/
+cd ../..
+%ifarch x86_64 ppc64
+export CFLAGS="$RPM_OPT_FLAGS -D_OCC64 -fno-strict-aliasing"
+export CXXFLAGS="$RPM_OPT_FLAGS -D_OCC64 -fno-strict-aliasing"
+%else
+export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
+export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
+%endif
+autoreconf -f -i
+LDFLAGS=-lpthread %configure \
+   --with-gl-include=/usr/include \
+   --with-gl-library=/usr/%{_lib} \
+   --with-xmu-include=/usr/include/X11 \
+   --with-xmu-library=/usr/%{_lib} \
+   --with-tcl=/usr/%{_lib} \
+   --with-tk=/usr/%{_lib} \
+   --disable-static \
+   --disable-debug \
+   --enable-production \
+   --enable-wok \
+   --enable-wrappers \
+   --enable-draw
+
+%__make %{?jobs:-j%{jobs}}
+
+%install
+cd ros
+%makeinstall
+
+`for i in $(find %{buildroot}%{_prefix}/inc/ -name '*.h'); do chmod -x $i; done`
+`for i in $(find %{buildroot}%{_prefix}/inc/ -name '*.hxx'); do chmod -x $i; done`
+`for i in $(find %{buildroot}%{_prefix}/inc/ -name '*.lxx'); do chmod -x $i; done`
+`for i in $(find %{buildroot}%{_prefix}/inc/ -name '*.gxx'); do chmod -x $i; done`
+
+chmod -x %{buildroot}%{_prefix}/wok/lib/config.h
+chmod -x %{buildroot}%{_libdir}/*.la
+chmod -x %{buildroot}%{_libdir}/opencas/*.la
+chmod -x %{buildroot}%{_prefix}/src/UnitsAPI/UnitsAPI.cxx
+chmod -x %{buildroot}%{_prefix}/src/DrawResources/Filtre.c
+chmod -x %{buildroot}%{_prefix}/src/DrawResources/TestDraw.cxx
+chmod -x %{buildroot}%{_prefix}/src/DrawResources/DIFF.c
+
+cd ..
+mv data %{buildroot}%{_prefix}/
+mv doc %{buildroot}%{_prefix}/
+mv samples %{buildroot}%{_prefix}/
+find %{buildroot}%{_prefix}/data -type f -print0 |xargs -0 chmod a-x
+find %{buildroot}%{_prefix}/doc -type f -print0 |xargs -0 chmod a-x
+find %{buildroot}%{_prefix}/samples -type f -print0 |xargs -0 chmod a-x
+
+%ifarch x86_64
+%__ln_s %{_libdir} %{buildroot}/%{_prefix}/Linux/lib
+%__ln_s %{_libdir} %{buildroot}/%{_prefix}/lin/lib
+%endif
+
+# add synlinks for compatibility resons
+%__mkdir -p %{buildroot}/usr/share/opencascade/
+%__mkdir -p %{buildroot}/usr/include/
+%__mkdir -p %{buildroot}/usr/share/doc/packages/
+%__mkdir -p %{buildroot}/usr/%{_lib}
+
+%__ln_s %{_prefix} %{buildroot}/usr/share/opencascade/%{version}
+%__ln_s %{_prefix}/inc  %{buildroot}/usr/include/opencascade
+%__ln_s %{_prefix}/doc  %{buildroot}/usr/share/doc/packages/opencascade
+`for i in $(ls  %{buildroot}/%{_libdir}); do %__ln_s %{_libdir}/$i %{buildroot}/usr/%{_lib}/$i; done`
+
+%__mkdir -p %buildroot/etc/ld.so.conf.d/
+%__cp %SOURCE1 %buildroot/etc/ld.so.conf.d/
+
+%fdupes -s %{buildroot}
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%clean
+rm -rf %buildroot
+
+%files
+%defattr(-,root,root)
+%dir %{_prefix}
+%dir %{_bindir}
+%dir %{_prefix}/lin
+%dir %{_prefix}/Linux
+%dir %{_prefix}/wok
+%dir %{_prefix}/wok/lib/
+%dir %{_prefix}/wok/site/
+%dir %{_prefix}/data
+%dir %{_prefix}/doc
+%dir %{_libdir}/
+%dir %{_libdir}/opencas/
+%dir /usr/share/opencascade/
+%{_bindir}/DRAWEXE
+%{_bindir}/wokprocess
+%{_bindir}/woksh
+%{_prefix}/lin/bin
+%{_prefix}/lin/lib
+%{_prefix}/Linux/bin
+%{_prefix}/Linux/lib
+%{_prefix}/data/*
+%{_prefix}/doc/*
+%{_prefix}/wok/lib/*
+%{_prefix}/wok/site/*
+%{_prefix}/config.h
+%{_prefix}/env_DRAW.sh
+%{_libdir}/*.so
+%{_libdir}/opencas/*.so
+/usr/%_lib/*
+/usr/share/opencascade/%{version}
+/usr/share/doc/packages/opencascade
+%config /etc/ld.so.conf.d/%name.conf
+%dir %{_prefix}/src/UnitsAPI
+%dir %{_prefix}/src
+%{_prefix}/src/UnitsAPI/*.dat
+
+%files devel
+%defattr(-,root,root)
+%dir /usr/include/opencascade/
+%{_libdir}/*.la
+%{_libdir}/opencas/*.la
+%dir %{_prefix}/src/
+%{_prefix}/src/*
+%dir %{_prefix}/inc/
+%{_prefix}/inc/*
+%dir %{_prefix}/samples
+%{_prefix}/samples/*
+%exclude %{_prefix}/src/UnitsAPI/*.dat
+
+%changelog
+* Fri Dec  4 2009 andrea at opensuse.org
+- enabled wrappers
+* Sat May  2 2009 andrea at opensuse.org
+- added some symlink to provide compatibility with soma packages
+* Tue Feb 10 2009 andrea at opensuse.org
+- moved *.dat to main package, not sources and some packages need them
+* Wed Oct 29 2008 lars at linux-schulserver.de
+- ignore post-build-checks until /opt is allowed again
+* Sat Sep 27 2008 Andrea Florio <andrea at opensuse.org> 6.3.0
+- new package

================================================================
Index: packages/OpenCASCADE/OpenCASCADE6.3.0-DESTDIR.patch
diff -u /dev/null packages/OpenCASCADE/OpenCASCADE6.3.0-DESTDIR.patch:1.1
--- /dev/null	Fri May 28 12:26:32 2010
+++ packages/OpenCASCADE/OpenCASCADE6.3.0-DESTDIR.patch	Fri May 28 12:26:25 2010
@@ -0,0 +1,179 @@
+diff -uNr old-OpenCASCADE6.3.0/ros/Makefile.am OpenCASCADE6.3.0/ros/Makefile.am
+--- old-OpenCASCADE6.3.0/ros/Makefile.am	2008-09-09 17:49:10.000000000 +0200
++++ OpenCASCADE6.3.0/ros/Makefile.am	2008-10-01 19:19:50.000000000 +0200
+@@ -108,126 +108,126 @@
+ dir_SunOS=sun
+ 
+ install-exec-local:
+-	$(INSTALL) -d $(prefix)/$(platform)
+-	if [ -e $(prefix)/bin -a ! -e $(prefix)/$(platform)/bin ]; then \
+-		cd $(prefix)/$(platform) && ln -s ../bin bin; \
++	$(INSTALL) -d $(DESTDIR)$(prefix)/$(platform)
++	if [ -e $(DESTDIR)$(prefix)/bin -a ! -e $(DESTDIR)$(prefix)/$(platform)/bin ]; then \
++		cd $(DESTDIR)$(prefix)/$(platform) && ln -s ../bin bin; \
+ 	fi
+-	if [ -e $(prefix)/lib -a ! -e $(prefix)/$(platform)/lib ]; then \
+-		cd $(prefix)/$(platform) && ln -s ../lib lib; \
++	if [ -e $(DESTDIR)$(prefix)/lib -a ! -e $(DESTDIR)$(prefix)/$(platform)/lib ]; then \
++		cd $(DESTDIR)$(prefix)/$(platform) && ln -s ../lib lib; \
+ 	fi
+-	$(INSTALL) -d $(prefix)/$(dir_$(platform))
+-	if [ -e $(prefix)/bin -a ! -e $(prefix)/$(dir_$(platform))/bin ]; then \
+-		cd $(prefix)/$(dir_$(platform)) && ln -s ../bin bin; \
++	$(INSTALL) -d $(DESTDIR)$(prefix)/$(dir_$(platform))
++	if [ -e $(DESTDIR)$(prefix)/bin -a ! -e $(DESTDIR)$(prefix)/$(dir_$(platform))/bin ]; then \
++		cd $(DESTDIR)$(prefix)/$(dir_$(platform)) && ln -s ../bin bin; \
+ 	fi
+-	if [ -e $(prefix)/lib -a ! -e $(prefix)/$(dir_$(platform))/lib ]; then \
+-		cd $(prefix)/$(dir_$(platform)) && ln -s ../lib lib; \
++	if [ -e $(DESTDIR)$(prefix)/lib -a ! -e $(DESTDIR)$(prefix)/$(dir_$(platform))/lib ]; then \
++		cd $(DESTDIR)$(prefix)/$(dir_$(platform)) && ln -s ../lib lib; \
+ 	fi
+-	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
++	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
+ 	if [ "$$pd" != "$$sd" ]; then \
+-		$(INSTALL) -d $(prefix)/inc; \
+-		cp -fr$(CP_$(platform)) $(top_srcdir)/inc $(prefix); \
++		$(INSTALL) -d $(DESTDIR)$(prefix)/inc; \
++		cp -fr$(CP_$(platform)) $(top_srcdir)/inc $(DESTDIR)$(prefix); \
+ 	fi; \
+ 	if [ "$$pd" != "$$bd" ]; then \
+-		cp -fr$(CP_$(platform)) $$bd/config.h $(prefix); \
++		cp -fr$(CP_$(platform)) $$bd/config.h $(DESTDIR)$(prefix); \
+ 	fi
+-	if [ -e $(prefix)/inc/config.h ]; then \
+-		unlink $(prefix)/inc/config.h; \
++	if [ -e $(DESTDIR)$(prefix)/inc/config.h ]; then \
++		unlink $(DESTDIR)$(prefix)/inc/config.h; \
+ 	fi
+-	cd $(prefix)/inc && ln -s ../config.h config.h 
+-	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
++	cd $(DESTDIR)$(prefix)/inc && ln -s ../config.h config.h 
++	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
+ 	if [ "$$pd" != "$$sd" -a -d $(top_srcdir)/src/UnitsAPI ]; then \
+-		$(INSTALL) -d $(prefix)/src; \
+-		$(INSTALL) -d $(prefix)/src/UnitsAPI; \
+-		cp -fr$(CP_$(platform)) $(top_srcdir)/src/UnitsAPI $(prefix)/src; \
+-		cp -f$(CP_$(platform)) $(top_srcdir)/env_DRAW.sh $(prefix); \
++		$(INSTALL) -d $(DESTDIR)$(prefix)/src; \
++		$(INSTALL) -d $(DESTDIR)$(prefix)/src/UnitsAPI; \
++		cp -fr$(CP_$(platform)) $(top_srcdir)/src/UnitsAPI $(DESTDIR)$(prefix)/src; \
++		cp -f$(CP_$(platform)) $(top_srcdir)/env_DRAW.sh $(DESTDIR)$(prefix); \
+ 	fi
+-	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
++	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
+ 	if [ "$$pd" != "$$sd" ]; then \
+ 		inst_dirs="$(FoundationClasses_DIRS)"; \
+ 		if test "x$(FoundationClasses_DIRS)" != "x"; then \
+ 			for d in $$inst_dirs; do \
+-				$(INSTALL) -d $(prefix)/src/$$d; \
+-				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
++				$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
++				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
+ 			done; \
+ 		fi; \
+ 	fi
+-	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
++	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
+ 	if [ "$$pd" != "$$sd" ]; then \
+ 		inst_dirs="$(ModelingData_DIRS)"; \
+ 		if test "x$(ModelingData_DIRS)" != "x"; then \
+ 			for d in $$inst_dirs; do \
+-				$(INSTALL) -d $(prefix)/src/$$d; \
+-				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
++				$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
++				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
+ 			done; \
+ 		fi; \
+ 	fi
+-	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
++	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
+ 	if [ "$$pd" != "$$sd" ]; then \
+ 		inst_dirs="$(ModelingAlgorithms_DIRS)"; \
+ 		if test "x$(ModelingAlgorithms_DIRS)" != "x"; then \
+ 			for d in $$inst_dirs; do \
+-				$(INSTALL) -d $(prefix)/src/$$d; \
+-				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
++				$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
++				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
+ 			done; \
+ 		fi; \
+ 	fi
+-	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
++	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
+ 	if [ "$$pd" != "$$sd" ]; then \
+ 		inst_dirs="$(Visualization_DIRS)"; \
+ 		if test "x$(Visualization_DIRS)" != "x"; then \
+ 			for d in $$inst_dirs; do \
+-				$(INSTALL) -d $(prefix)/src/$$d; \
+-				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
++				$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
++				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
+ 			done; \
+ 		fi; \
+ 	fi
+-	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
++	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
+ 	if [ "$$pd" != "$$sd" ]; then \
+ 		inst_dirs="$(ApplicationFramework_DIRS)"; \
+ 		if test "x$(ApplicationFramework_DIRS)" != "x"; then \
+ 			for d in $$inst_dirs; do \
+-				$(INSTALL) -d $(prefix)/src/$$d; \
+-				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
++				$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
++				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
+ 			done; \
+ 		fi; \
+ 	fi
+-	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
++	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
+ 	if [ "$$pd" != "$$sd" ]; then \
+ 		inst_dirs="$(DataExchange_DIRS)"; \
+ 		if test "x$(DataExchange_DIRS)" != "x"; then \
+ 			for d in $$inst_dirs; do \
+-				$(INSTALL) -d $(prefix)/src/$$d; \
+-				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
++				$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
++				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
+ 			done; \
+ 		fi; \
+ 	fi
+-	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
++	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
+ 	if [ "$$pd" != "$$sd" ]; then \
+ 		inst_dirs="$(Draw_DIRS)"; \
+ 		if test "x$(Draw_DIRS)" != "x"; then \
+ 			for d in $$inst_dirs; do \
+-				$(INSTALL) -d $(prefix)/src/$$d; \
+-				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
++				$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
++				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
+ 			done; \
+ 		fi; \
+ 	fi
+-	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
++	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
+ 	if [ "$$pd" != "$$sd" ]; then \
+ 		inst_dirs="$(WOK_DIRS)"; \
+ 		if test "x$(WOK_DIRS)" != "x"; then \
+ 			for d in $$inst_dirs; do \
+-				$(INSTALL) -d $(prefix)/src/$$d; \
+-				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
++				$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
++				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
+ 			done; \
+ 		fi; \
+ 	fi
+-	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(prefix); pd=`pwd`; cd $$bd; \
++	bd=`pwd`; cd $(top_srcdir); sd=`pwd`; cd $(DESTDIR)$(prefix); pd=`pwd`; cd $$bd; \
+ 	if [ "$$pd" != "$$sd" ]; then \
+ 		inst_dirs="$(Wrappers_DIRS)"; \
+ 		if test "x$(Wrappers_DIRS)" != "x"; then \
+ 			for d in $$inst_dirs; do \
+-				$(INSTALL) -d $(prefix)/src/$$d; \
+-				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(prefix)/src; \
++				$(INSTALL) -d $(DESTDIR)$(prefix)/src/$$d; \
++				cp -fr$(CP_$(platform)) $(top_srcdir)/src/$$d $(DESTDIR)$(prefix)/src; \
+ 			done; \
+ 		fi; \
+ 	fi

================================================================
Index: packages/OpenCASCADE/OpenCASCADE6.3.0-WOKUnix_FDescr.patch
diff -u /dev/null packages/OpenCASCADE/OpenCASCADE6.3.0-WOKUnix_FDescr.patch:1.1
--- /dev/null	Fri May 28 12:26:32 2010
+++ packages/OpenCASCADE/OpenCASCADE6.3.0-WOKUnix_FDescr.patch	Fri May 28 12:26:25 2010
@@ -0,0 +1,12 @@
+diff -uNr OpenCASCADE6.3.0-old/ros/src/WOKUnix/WOKUnix_FDescr.cxx OpenCASCADE6.3.0/ros/src/WOKUnix/WOKUnix_FDescr.cxx
+--- OpenCASCADE6.3.0-old/ros/src/WOKUnix/WOKUnix_FDescr.cxx	2008-05-08 15:11:16.000000000 +0200
++++ OpenCASCADE6.3.0/ros/src/WOKUnix/WOKUnix_FDescr.cxx	2008-10-02 22:53:09.000000000 +0200
+@@ -202,7 +202,7 @@
+   if(mknod(apath.ToCString(), 0700 |  S_IFIFO, 0)) 
+     { perror(apath.ToCString());}
+ 
+-  myFileChannel = open(apath.ToCString(),  O_RDONLY | O_NDELAY | O_CREAT);
++  myFileChannel = open(apath.ToCString(), O_RDONLY | O_NDELAY | O_CREAT, S_IRUSR);
+   SetUnBuffered();
+ 
+   // write end of pipe is unbuffered also 

================================================================
Index: packages/OpenCASCADE/OpenCASCADE6.3.0-casroot.patch
diff -u /dev/null packages/OpenCASCADE/OpenCASCADE6.3.0-casroot.patch:1.1
--- /dev/null	Fri May 28 12:26:32 2010
+++ packages/OpenCASCADE/OpenCASCADE6.3.0-casroot.patch	Fri May 28 12:26:25 2010
@@ -0,0 +1,274 @@
+diff -uNr OpenCASCADE6.3.0-old/ros/src/Aspect/Aspect_Driver.cxx OpenCASCADE6.3.0/ros/src/Aspect/Aspect_Driver.cxx
+--- OpenCASCADE6.3.0-old/ros/src/Aspect/Aspect_Driver.cxx	2001-11-15 18:01:55.000000000 +0100
++++ OpenCASCADE6.3.0/ros/src/Aspect/Aspect_Driver.cxx	2008-10-02 23:38:50.000000000 +0200
+@@ -35,14 +35,12 @@
+   fontdir =  getenv("CSF_MDTVFontDirectory" );
+   if ( !fontdir) {
+     casroot  = getenv("CASROOT");
+-    if ( casroot ) {
+-      TCollection_AsciiString CasRootString (casroot);
+-      CasRootString += "/src/FontMFT" ; 
+-      CSF_MDTVFontDirectory = OSD_Environment(CasRootString.ToCString());
+-    } else {
+-      cout << " CASROOT or CSF_MDTVFontDirectory  are mandatory to use this fonctionnality " << endl;
+-      Standard_Failure::Raise ( "CSF_MDTVTexturesDirectory and CASROOT not setted " );
++    if ( !casroot ) {
++      casroot = "/usr/share/opencascade/6.3.0";
+     }
++    TCollection_AsciiString CasRootString (casroot);
++    CasRootString += "/src/FontMFT" ; 
++    CSF_MDTVFontDirectory = OSD_Environment(CasRootString.ToCString());
+   } else {
+     CSF_MDTVFontDirectory = OSD_Environment("CSF_MDTVFontDirectory");
+   }
+diff -uNr OpenCASCADE6.3.0-old/ros/src/DPrsStd/DPrsStd.cxx OpenCASCADE6.3.0/ros/src/DPrsStd/DPrsStd.cxx
+--- OpenCASCADE6.3.0-old/ros/src/DPrsStd/DPrsStd.cxx	2005-07-08 15:51:41.000000000 +0200
++++ OpenCASCADE6.3.0/ros/src/DPrsStd/DPrsStd.cxx	2008-10-02 23:38:50.000000000 +0200
+@@ -59,11 +59,12 @@
+   Standard_Boolean hasPlugin = Standard_False; 
+   TCollection_AsciiString PluginName ;
+   if ( !plugin ) { 
+-    if ( casroot ) {
+-      PluginName = TCollection_AsciiString (casroot);
+-      PluginName+="/src/StdResource" ;
+-      hasPlugin = Standard_True ;
++    if ( !casroot ) {
++      casroot = "/usr/share/opencascade/6.3.0";
+     }
++    PluginName = TCollection_AsciiString (casroot);
++    PluginName+="/src/StdResource" ;
++    hasPlugin = Standard_True ;
+   } else {
+     PluginName = TCollection_AsciiString (plugin);
+     hasPlugin = Standard_True ;
+diff -uNr OpenCASCADE6.3.0-old/ros/src/Draw/Draw.cxx OpenCASCADE6.3.0/ros/src/Draw/Draw.cxx
+--- OpenCASCADE6.3.0-old/ros/src/Draw/Draw.cxx	2008-07-25 16:03:00.000000000 +0200
++++ OpenCASCADE6.3.0/ros/src/Draw/Draw.cxx	2008-10-02 23:38:50.000000000 +0200
+@@ -253,8 +253,7 @@
+ #ifdef WNT
+ 	ReadInitFile("ddefault");
+ #else
+-	cout << " the CASROOT variable is mandatory to Run OpenCascade "<<endl;
+-	cout << "No default file" << endl;
++	ReadInitFile("/usr/share/opencascade/6.3.0/src/DrawResources/DrawDefault");
+ #endif
+       } else {
+      
+diff -uNr OpenCASCADE6.3.0-old/ros/src/Draw/Draw_PloadCommands.cxx OpenCASCADE6.3.0/ros/src/Draw/Draw_PloadCommands.cxx
+--- OpenCASCADE6.3.0-old/ros/src/Draw/Draw_PloadCommands.cxx	2008-08-15 15:57:21.000000000 +0200
++++ OpenCASCADE6.3.0/ros/src/Draw/Draw_PloadCommands.cxx	2008-10-02 23:38:50.000000000 +0200
+@@ -54,13 +54,11 @@
+     // now try by CASROOT
+     aPluginDir = getenv("CASROOT");
+ 
+-    if ( !aPluginDir.IsEmpty() ) {
+-      aPluginDir +="/src/DrawResources" ;
+-      aToSetCSFVariable = Standard_True; //CSF variable to be set later
+-    } else {
+-      aResult = aDirFound = Standard_False;
+-      cout << FAILSTR "Neither " << aCSFVariable.ToCString() << ", nor CASROOT variables have been set" << endl;
++    if ( aPluginDir.IsEmpty() ) {
++      aPluginDir = "/usr/share/opencascade/6.3.0";
+     }
++    aPluginDir +="/src/DrawResources" ;
++    aToSetCSFVariable = Standard_True; //CSF variable to be set later
+   }
+   
+   if (aDirFound) {
+diff -uNr OpenCASCADE6.3.0-old/ros/src/DrawResources/DrawDefault OpenCASCADE6.3.0/ros/src/DrawResources/DrawDefault
+--- OpenCASCADE6.3.0-old/ros/src/DrawResources/DrawDefault	2003-10-03 19:01:22.000000000 +0200
++++ OpenCASCADE6.3.0/ros/src/DrawResources/DrawDefault	2008-10-02 23:38:50.000000000 +0200
+@@ -8,11 +8,10 @@
+ if { [info exists env(DRAWHOME) ] } { 
+   set dir $env(DRAWHOME)  
+ } else {
+-    if { [info exists env(CASROOT) ] } {
+-  set dir [file join $env(CASROOT) src DrawResources]
+-    } else {
+-  puts " CASROOT is Mandatory to Run OpenCascade"
++    if { ![info exists env(CASROOT) ] } {
++      set env(CASROOT) "/usr/share/opencascade/6.3.0"
+     }
++  set dir [file join $env(CASROOT) src DrawResources]
+ }
+ 
+ # san - 02/08/2002 - In Tcl8.3 it is no longer necessary to load Tix explicitly on WNT
+diff -uNr OpenCASCADE6.3.0-old/ros/src/Graphic3d/Graphic3d_GraphicDevice.cxx OpenCASCADE6.3.0/ros/src/Graphic3d/Graphic3d_GraphicDevice.cxx
+--- OpenCASCADE6.3.0-old/ros/src/Graphic3d/Graphic3d_GraphicDevice.cxx	2008-07-04 17:36:54.000000000 +0200
++++ OpenCASCADE6.3.0/ros/src/Graphic3d/Graphic3d_GraphicDevice.cxx	2008-10-02 23:38:50.000000000 +0200
+@@ -204,29 +204,8 @@
+ 
+   if (! BAD(glso)) {
+     glshr = getenv("CSF_GraphicShr");
+-  } else if (! BAD(casroot)) {
+-    glshr = (char *) malloc (128);
+-    /* Pour faire plaisir a Purify */
+-    glshr[0] = '\0';
+-    strcat(glshr, casroot);
+-    struct utsname info; 
+-    uname (&info);
+-    strcat(glshr,"/");
+-    strcat(glshr,info.sysname);   
+-#if defined(__hpux) || defined(HPUX)
+-    strcat (glshr, "/lib/libTKOpenGl.sl");
+-#elif defined(WNT)
+-    strcat (glshr, "/TKOpenGl.dll");
+-#elif defined(__APPLE__)
+-    strcat (glshr, "/lib/libTKOpenGl.dylib");
+-#else
+-    strcat (glshr, "/lib/libTKOpenGl.so");
+-#endif
+-//    printf("You have not defined CSF_GraphicShr, defaulting to %s",glshr);
+   } else {
+-    aShr = NULL;
+-    printf("You have not defined CSF_GraphicShr or CASROOT, aborting...");
+-    return Standard_False;
++    glshr = "/usr/lib/libTKOpenGl-6.3.0.so";
+   }
+  
<<Diff was trimmed, longer than 597 lines>>


More information about the pld-cvs-commit mailing list