Personal tools
The Open Lighting Project has moved!

We've launched our new site at www.openlighting.org. This wiki will remain and be updated with more technical information.

Difference between revisions of "Portfile for OLA"

From wiki.openlighting.org

Jump to: navigation, search
(Fixed flags for -arch i386 and added compiler error message)
(Added note about Porfile being committed to MacPorts collection)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Written by Tobi Schäfer, June 2011.
 
Written by Tobi Schäfer, June 2011.
 +
 +
''Update: [https://trac.macports.org/browser/trunk/dports/net/ola/Portfile Portfile was committed to MacPorts collection] on 21 June 2011. The following information is outdated and should only remain for historical reason.''
  
 
<pre># $Id$
 
<pre># $Id$
Line 11: Line 13:
 
platforms        darwin
 
platforms        darwin
 
license          LGPL
 
license          LGPL
maintainers      gmail.com:nomis52 \
+
maintainers      gmail.com:nomis52
                  p3k.org:interface
 
  
 
description      An open framework for DMX lighting control
 
description      An open framework for DMX lighting control
Line 29: Line 30:
 
                   port:protobuf-cpp
 
                   port:protobuf-cpp
  
## This currently does not work because the -arch flag is set twice and the compiler runs into a problem with  
+
## This currently does not work because the -arch flag is set twice and  
## multiple architectures (tried also with preceding -delete).
+
## the compiler runs into a problem with multiple architectures.
 
## Error message: g++-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
 
## Error message: g++-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
 
#variant i386 description {Build for 32 bit Intel architecture} {
 
#variant i386 description {Build for 32 bit Intel architecture} {
#  configure.cppflags-append  -arch i386
+
#  configure.cppflags-delete  "-arch x86_64"
#  configure.ldflags-append  -arch i386
+
#  configure.ldflags-delete  "-arch x86_64"
 +
#  configure.cppflags-append  "-arch i386"
 +
#  configure.ldflags-append  "-arch i386"
 
#}
 
#}
  
## Still missing: variants for the microhttpd dependency, with and without support for SSL
+
variant http description {Build with embedded web server} {
#variant http description {Build with embedded web server} {
+
  depends_lib-append port:libmicrohttpd
#  ...?
+
}
#}
 
  
#variant ssl description {Build with embedded web server and SSL support} {
+
default_variants  +http
#  depends_lib-append port:libgcrypt
 
#  ...?
 
#}
 
  
 
pre-configure {
 
pre-configure {
   ## Are these correct (/usr/local?) and necessary?
+
   use_autoreconf          yes
   #configure.pkg_config_path    /usr/local/lib/pkgconfig
+
   autoreconf.args        -i
  #configure.cppflags          "-I/opt/local/include/"
+
   configure.args-append   --disable-http
   #configure.ldflags            "-L/opt/local/lib/"
+
   if {[variant_isset http]} {
  use_autoreconf    yes
+
      configure.args-delete  --disable-http
  autoreconf.args   -i
 
}
 
 
 
build {
 
   if {[variant_isset i386]} {
 
  configure.cppflags-append  -arch i386
 
  configure.ldflags-append  -arch i386
 
 
   }
 
   }
 
}
 
}
Line 66: Line 58:
 
   test.run      yes
 
   test.run      yes
 
   test.target    check
 
   test.target    check
  if {[variant_isset i386]} {
 
  configure.cppflags-append  -arch i386
 
  configure.ldflags-append  -arch i386
 
  }
 
 
}
 
}
 
</pre>
 
</pre>

Latest revision as of 03:26, 23 June 2011

Written by Tobi Schäfer, June 2011.

Update: Portfile was committed to MacPorts collection on 21 June 2011. The following information is outdated and should only remain for historical reason.

# $Id$

PortSystem        1.0

name              ola
                  ## Latest version (0.8.9-1) currently not usable because of inconsistency in package/folder naming
version           0.8.9
categories        net comms
platforms         darwin
license           LGPL
maintainers       gmail.com:nomis52

description       An open framework for DMX lighting control
long_description  The Open Lighting Architecture (OLA) provides a plugin framework for distributing DMX512 control signals on Mac and Linux. It provides C++ and Python libraries which abstract away the underlying DMX over IP protocol or DMX interface.
homepage          http://opendmx.net/index.php/OLA

master_sites      http://linux-lighting.googlecode.com/files/

checksums         md5      b67beea9e39bee4a33bf6f0eafabf17d \
                  sha1     abe2e876261f272223ee1eab902319615acac744 \
                  rmd160   95e926cbd376b0dfd625289f6af37455dd103f99

depends_lib       port:pkgconfig \
                  port:cppunit \
                  port:unittest-cpp \
                  port:protobuf-cpp

## This currently does not work because the -arch flag is set twice and 
## the compiler runs into a problem with multiple architectures.
## Error message: g++-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
#variant i386 description {Build for 32 bit Intel architecture} {
#   configure.cppflags-delete  "-arch x86_64"
#   configure.ldflags-delete   "-arch x86_64"
#   configure.cppflags-append  "-arch i386"
#   configure.ldflags-append   "-arch i386"
#}

variant http description {Build with embedded web server} {
   depends_lib-append port:libmicrohttpd
}

default_variants  +http

pre-configure {
   use_autoreconf          yes
   autoreconf.args         -i
   configure.args-append   --disable-http
   if {[variant_isset http]} {
      configure.args-delete   --disable-http
   }
}

test {
   test.run       yes
   test.target    check
}