[21181] trunk/dports/devel

source_changes at macosforge.org source_changes at macosforge.org
Thu Jan 11 11:31:06 PST 2007


Revision: 21181
          http://trac.macosforge.org/projects/macports/changeset/21181
Author:   dluke at macports.org
Date:     2007-01-11 11:31:06 -0800 (Thu, 11 Jan 2007)

Log Message:
-----------
New port, mico (from roederja at student.ethz.ch and drs at nrao.edu - ticket #11215)

Added Paths:
-----------
    trunk/dports/devel/mico/
    trunk/dports/devel/mico/Portfile
    trunk/dports/devel/mico/files/
    trunk/dports/devel/mico/files/patch-Makefile.diff
    trunk/dports/devel/mico/files/patch-mico-shld.def.in.diff
    trunk/dports/devel/mico/files/patch-os-math.h.diff

Added: trunk/dports/devel/mico/Portfile
===================================================================
--- trunk/dports/devel/mico/Portfile	                        (rev 0)
+++ trunk/dports/devel/mico/Portfile	2007-01-11 19:31:06 UTC (rev 21181)
@@ -0,0 +1,49 @@
+# $Id: Portfile,v 1.14 2003/07/30 14:35:39 fkr Exp $
+
+PortSystem          1.0
+
+name                mico
+version             2.3.12
+homepage            http://www.mico.org/
+description         Fully compliant CORBA implementation
+long_description    MICO is a mature, secure, robust, fully \
+                    standards-compliant implementation of the CORBA standard.
+categories          devel
+platforms           darwin
+maintainers         roederja at student.ethz.ch darrell at schiebel.us
+master_sites        http://www.mico.org/
+patch_sites         http://mico.org/errata/
+
+depends_lib         port:openssl lib:libncurses:ncurses
+
+checksums           ${distname}${extract.suffix} md5 b94252f78da414cc0c7122cdd2a4b2be \
+                    ${distname}${extract.suffix} sha1 e1885362d559ea97c62a2437a1d3a94114ef5b05 \
+                    ${distname}${extract.suffix} rmd160 2f45ace5044233f171ac8e4fd389d523befaca51 \
+                    mico-2.3.12-secfix1.diff md5 6248a4fbbdd542f062a515be03de0db9 \
+                    mico-2.3.12-secfix1.diff sha1 131a177c947d1970a21ad95855b6e84e76d0b73b \
+                    mico-2.3.12-secfix1.diff rmd160 404783926c1a164be7dbbd494d038cadab834124
+patchfiles          mico-2.3.12-secfix1.diff patch-mico-shld.def.in.diff  \
+                    patch-os-math.h.diff patch-Makefile.diff
+                    
+worksrcdir          mico    
+patch.pre_args      -p1
+post-patch          {
+                       reinplace "s, at prefix@,${prefix},g" admin/mico-shld.def.in
+                       reinplace "s,(SHARED_INSTDIR)/man,(SHARED_INSTDIR)/share/man,g" man/Makefile
+                       reinplace "s,(SHARED_INSTDIR)/doc,(SHARED_INSTDIR)/share/doc,g" Makefile
+                       reinplace "s,(INSTDIR)/doc,(INSTDIR)/share/doc,g" demo/MakeVars
+                       system "find demo -name Makefile | xargs sed -i .bak s,\\(INSTDIR\\)/doc,\\(INSTDIR\\)/share/doc,g"
+                    }               
+configure.args      --with-ssl=${prefix}
+configure.env       DYLD_LIBRARY_PATH=${worksrcpath} CPPFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib
+
+variant powerpc     {
+                        post-configure {
+                            # Hack to get it to build on PPC
+                            set the_file [open ${worksrcpath}/include/mico/config.h a]
+                            puts $the_file "#define HAVE_DYNAMIC_CAST 1"
+                            close $the_file
+                        }
+                    }
+build.env           DYLD_LIBRARY_PATH=${worksrcpath}/orb:${worksrcpath}/ir:${worksrcpath}/auxdir
+destroot.destdir    INSTDIR=${destroot}${prefix} SHARED_INSTDIR=${destroot}${prefix}
\ No newline at end of file

Added: trunk/dports/devel/mico/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/mico/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/devel/mico/files/patch-Makefile.diff	2007-01-11 19:31:06 UTC (rev 21181)
@@ -0,0 +1,10 @@
+--- mico/Makefile	2005-11-25 12:15:45.000000000 +0100
++++ mico-mod/Makefile	2006-12-19 17:36:01.000000000 +0100
+@@ -73,7 +73,6 @@
+ 		$(IDIRCMD) $(SHARED_INSTDIR)/doc/mico; \
+ 		$(IMANCMD) doc/doc.ps $(SHARED_INSTDIR)/doc/mico/manual.ps; \
+ 	fi
+-	-ldconfig
+ 
+ install-cd:
+ 	for i in $(INSTALLDIRS); do $(MAKE) -C $$i install-cd || exit 1; done

Added: trunk/dports/devel/mico/files/patch-mico-shld.def.in.diff
===================================================================
--- trunk/dports/devel/mico/files/patch-mico-shld.def.in.diff	                        (rev 0)
+++ trunk/dports/devel/mico/files/patch-mico-shld.def.in.diff	2007-01-11 19:31:06 UTC (rev 21181)
@@ -0,0 +1,12 @@
+--- mico/admin/mico-shld.def.in	2005-11-25 12:15:45.000000000 +0100
++++ mico-mod/admin/mico-shld.def.in	2007-01-09 00:54:43.000000000 +0100
+@@ -49,8 +49,7 @@
+ 
+ outfile=` echo "$outfile" | sed -e 's/\.\(so\|o\)$//' `'. at SOEXT@'
+ 
+-ldcmd="@SHARED_CC@ @PICFLAGS@ @LDSOFLAGS@ @DLFLAGS@ $libdirs @LDFLAGS@ -o $outfile \
+- $args" # @LIBS@
++ldcmd="@SHARED_CC@ @PICFLAGS@ @LDSOFLAGS@ @DLFLAGS@ $libdirs @LDFLAGS@ -o $outfile $args @LIBS@ -install_name @prefix@/lib/$outfile"
+ 
+ echo "$ldcmd"
+ eval "$ldcmd" || exit

Added: trunk/dports/devel/mico/files/patch-os-math.h.diff
===================================================================
--- trunk/dports/devel/mico/files/patch-os-math.h.diff	                        (rev 0)
+++ trunk/dports/devel/mico/files/patch-os-math.h.diff	2007-01-11 19:31:06 UTC (rev 21181)
@@ -0,0 +1,24 @@
+--- mico/include/mico/os-math.h	2005-11-25 12:15:52.000000000 +0100
++++ mico-mod/include/mico/os-math.h	2006-12-18 19:16:39.000000000 +0100
+@@ -333,16 +333,21 @@
+ #endif
+ 
+ #if defined(__APPLE__) && defined(__MACH__)
++// it _IS_ defined on 10.4
++#ifndef isinf
+ #define isinf( x ) ( ( sizeof ( x ) == sizeof(double) ) ?           \
+                    __isinfd ( x ) :                                 \
+                    ( sizeof ( x ) == sizeof( float) ) ?             \
+                    __isinff ( x ) :                                 \
+                    __isinf  ( x ) )
++#endif
++#ifndef isnan
+ #define isnan( x ) ( ( sizeof ( x ) == sizeof(double) ) ?           \
+                    __isnand ( x ) :                                 \
+                    ( sizeof ( x ) == sizeof( float) ) ?             \
+                    __isnanf ( x ) :                                 \
+                    __isnan  ( x ) )
++#endif
+ #endif // __APPLE__ && __MACH__
+ 
+ #include <mico/lmath.h>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070111/6bc78e89/attachment.html


More information about the macports-changes mailing list