Activewire version 4.0 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    activewire  most recent diff


    version 4.0

      View the most recent changes for the activewire port at: activewire.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for activewire.
      The raw portfile for activewire 4.0 is located here:
      http://activewire.darwinports.com/dports/devel/activewire/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/activewire


      The activewire Portfile 59615 2009-10-17 22:56:14Z jameskyle macports.org $

      PortSystem 1.0
      PortGroup xcode 1.0

      Name: activewire
      Version: 4.0
      Category: devel
      Maintainers: nomaintainer
      Description: This is an independent project focusing on the development of drivers for the ActiveWire board on osx. (REALbasic Plugin not included)
      Long Description: $description
      Homepage: http://activewire-osx.sourceforge.net/
      Platform: darwin
      Master Sites: sourceforge:activewire-osx

      distname aw_${version}
      extract.suffix .dmg

      Checksums: md5 857800a7187ebf29281438b231100c5e sha1 6ea56df40235f28d63bc8fd1bb371cf69a5d7622 rmd160 11740b6f835a2ebfbaea14f12dcec921a8a9a03b

      worksrcdir ${distname}/Source/
      use_bzip2 no
      xcode.configuration Default
      default_variants +doc +dev

      # Doesn't build with 10.5
      macosx_deployment_target 10.5
      Variant: awdriver description {Installs the ActiveWire driver} {}
      Variant: awconfig description {Installs the awconfig utility} {}
      Variant: doc description {Install documentation} {}
      Variant: dev description {Install header files for development} {}

      # variant realbasic description {Installs the realbasic plugin} {}

      extract {
      file mkdir /tmp/${distname}
      system "hdiutil attach ${distpath}/${distname}.dmg -private -nobrowse -mountpoint /tmp/${distname}"

      file mkdir ${workpath}/${distname}
      file copy /tmp/${distname}/Documentation ${workpath}/${distname}
      file copy /tmp/${distname}/Examples ${workpath}/${distname}
      file copy /tmp/${distname}/Source ${workpath}/${distname}
      file copy /tmp/${distname}/LICENSE.txt ${workpath}/${distname}

      system "hdiutil detach /tmp/${distname}"
      }

      pre-configure {
      foreach {i} {libaw awdriver awconfig} {
      reinplace "s|/usr/local|${prefix}|g" "${worksrcpath}/$i/$i.xcodeproj/project.pbxproj"

      reinplace "s|/usr/share/man/man1/|${prefix}/include|g" "${worksrcpath}/$i/$i.xcodeproj/project.pbxproj"
      reinplace "s|MacOSX10.4u.sdk|MacOSX10.5.sdk|g" "${worksrcpath}/$i/$i.xcodeproj/project.pbxproj"

      }
      }

      proc xcode::get_build_args {args} {
      global tcl_platform
      global universal_archs universal_target macosx_deployment_target
      global os.major os.arch
      global developer_dir

      set xcode_build_args "OBJROOT=build/ SYMROOT=build/"

      # MACOSX_DEPLOYMENT_TARGET
      if {[variant_isset universal] && [info exists universal_target]} {
      append xcode_build_args " MACOSX_DEPLOYMENT_TARGET=${universal_target}"
      } else {
      append xcode_build_args " MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}"
      }

      # ARCHS
      if {[variant_isset universal]} {
      append xcode_build_args " ARCHS=\"${universal_archs}\""
      } else {
      if {${os.major} >= 10 && $tcl_platform(wordSize) == 8} {
      append xcode_build_args " ARCHS=x86_64"
      } elseif {${os.arch} == "powerpc"} {
      append xcode_build_args " ARCHS=ppc"
      } else {
      append xcode_build_args " ARCHS=i386"
      }
      }

      # SDKROOT
      if {[variant_isset universal] && ${os.arch} == "powerpc" && ${os.major} == "8"} {
      if {[info exists developer_dir]} {
      append xcode_build_args " SDKROOT=\"${developer_dir}/SDKs/MacOSX10.4u.sdk\""
      } else {
      append xcode_build_args " SDKROOT=\"/Developer/SDKs/MacOSX10.4u.sdk\""
      }
      }
      return $xcode_build_args
      }

      build {
      set xcode_build_args [xcode::get_build_args]

      foreach {i} {libaw awdriver awconfig} {
      if {[variant_isset $i] || $i == "libaw"} {
      set command "cd '${worksrcpath}/$i' && ${build.cmd} ${xcode_build_args}"
      ui_debug "Assembled Command: ${command}"
      system ${command}
      }

      }

      }
      destroot {
      xinstall -m 755 -d ${destroot}${prefix}/bin
      xinstall -m 755 -d ${destroot}${prefix}/lib
      xinstall -m 0755 -d ${destroot}${prefix}/share/activewire
      xinstall -m 0755 -d ${destroot}${prefix}/share/doc/activewire

      set xcode_build_args [xcode::get_build_args]



      foreach {target dest} { libaw lib awconfig bin awdriver bin } {
      set pre_command "cd '${worksrcpath}/${target}' && ${build.cmd} ${xcode_build_args} install DSTROOT=${destroot} INSTALL_PATH=${prefix}"

      if {[variant_isset $target] || $target == "libaw"} {
      set command "${pre_command}/${dest}"
      ui_debug "Assembled Command: ${command}"
      system ${command}
      }
      }


      if {[variant_isset doc]} {
      set doc_path "${worksrcpath}/../Documentation/"
      foreach i [glob -tails -directory $doc_path *] {
      file copy $doc_path/$i "${destroot}${prefix}/share/doc/activewire"
      }

      set example_path "${worksrcpath}/../Examples"
      system "cp -r '${example_path}/C Example' ${destroot}${prefix}/share/doc/activewire"
      system "cp -r '${example_path}/Cocoa Example' ${destroot}${prefix}/share/doc/activewire"

      }
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/activewire
      % sudo port install activewire
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching activewire
      ---> Verifying checksum for activewire
      ---> Extracting activewire
      ---> Configuring activewire
      ---> Building activewire with target all
      ---> Staging activewire into destroot
      ---> Installing activewire
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using activewire with these commands:
      %  man activewire
      % apropos activewire
      % which activewire
      % locate activewire

     Where to find more information:

    Darwin Ports



    Lightbox this page.