[84099] trunk/dports/devel
jmr at macports.org
jmr at macports.org
Fri Sep 16 20:11:07 PDT 2011
Revision: 84099
http://trac.macports.org/changeset/84099
Author: jmr at macports.org
Date: 2011-09-16 20:11:04 -0700 (Fri, 16 Sep 2011)
Log Message:
-----------
New port: libnifalcon, hardware/development support for the Novint Falcon (#26907)
Added Paths:
-----------
trunk/dports/devel/libnifalcon/
trunk/dports/devel/libnifalcon/Portfile
trunk/dports/devel/libnifalcon/files/
trunk/dports/devel/libnifalcon/files/patch-CMakeLists.txt.diff
Added: trunk/dports/devel/libnifalcon/Portfile
===================================================================
--- trunk/dports/devel/libnifalcon/Portfile (rev 0)
+++ trunk/dports/devel/libnifalcon/Portfile 2011-09-17 03:11:04 UTC (rev 84099)
@@ -0,0 +1,34 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup cmake 1.0
+
+name libnifalcon
+version 1.0.2
+categories devel
+platforms darwin
+
+maintainers gmail.com:richardsjohnt
+
+homepage http://qdot.github.com/libnifalcon/
+description Novint Falcon hardware support
+long_description Driver and development library for the Novint Falcon haptic device
+license BSD
+
+master_sites sourceforge:project/libnifalcon/libnifalcon/${version}
+checksums md5 d2d226dad44ad2c98343cca5523e9f16 \
+ sha1 7ab7e2781a9224201da0e461e3fa34d21a8430e0 \
+ rmd160 eef75bf1834df6c1a812d0ef19399109e78cdd13
+
+depends_lib port:boost \
+ port:libusb
+
+post-extract {
+ file mkdir ${worksrcpath}/build
+}
+
+configure.args-append -G \"Unix Makefiles\" ..
+
+configure.dir ${worksrcpath}/build
+build.dir ${worksrcpath}/build
Property changes on: trunk/dports/devel/libnifalcon/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/libnifalcon/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/devel/libnifalcon/files/patch-CMakeLists.txt.diff (rev 0)
+++ trunk/dports/devel/libnifalcon/files/patch-CMakeLists.txt.diff 2011-09-17 03:11:04 UTC (rev 84099)
@@ -0,0 +1,77 @@
+--- CMakeLists.txt.orig 2009-09-20 15:20:30.000000000 -0400
++++ CMakeLists.txt 2010-10-19 22:36:45.000000000 -0400
+@@ -138,6 +138,12 @@
+ ${LIBNIFALCON_REQ_LIBS}
+ )
+
++SET(CMAKE_SKIP_BUILD_RPATH TRUE)
++SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
++SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
++SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
++
++
+ ADD_SUBDIRECTORY(include)
+ ADD_SUBDIRECTORY(src)
+ IF(BUILD_EXAMPLES)
+@@ -147,32 +153,32 @@
+ ADD_SUBDIRECTORY(lang/swig)
+ ENDIF(BUILD_SWIG_BINDINGS)
+
+-# pkg-config (use the CPack information)
+-# FIND_PACKAGE(PkgConfig)
+-# if(PKG_CONFIG_EXECUTABLE)
+-# set(PC_SHORT_NAME "${BUILDSYS_CPACK_NAME}")
+-# set(PC_LONG_NAME "${BUILDSYS_CPACK_NAME}")
+-# set(PC_LIBRARY_NAME "${LIBNIFALCON_CPP}")
+-# set(PC_DESCRIPTION "${CPACK_PACKAGE_DESCRIPTION_SUMMARY}")
+-# set(PC_VERSION "${LIBNIFALCON_MAJOR_VERSION}.${LIBNIFALCON_MINOR_VERSION}.${LIBNIFALCON_BUILD_VERSION}")
+-
+-# if(LIBUSB_1_FOUND)
+-# set(PC_REQUIRES "${PC_REQUIRES}libusb-1.0 ")
+-# set(PC_LINK_FLAGS "${PC_LINK_FLAGS}-lnifalcon_comm_libusb ")
+-# endif(LIBUSB_1_FOUND)
+-
+-# set(PC_LINK_FLAGS "${lib${PC_LIBRARY_NAME}_LINK_FLAGS} ${PC_LINK_FLAGS}")
+-# set(PC_LINK_FLAGS "-l${PC_LIBRARY_NAME} ${PC_LINK_FLAGS}")
+-# set(PC_COMPILE_FLAGS "${lib${PC_LIBRARY_NAME}_COMPILE_FLAGS}")
+-# set(PC_CONFIGURED_FILE
+-# ${CMAKE_BINARY_DIR}/libnifalcon.pc
+-# )
+-# MESSAGE("-- Generating ${PC_CONFIGURED_FILE}")
+-# configure_file(
+-# ${CMAKE_SOURCE_DIR}/libnifalcon.pc.cmake
+-# ${PC_CONFIGURED_FILE}
+-# @ONLY
+-# )
+-# set(PKG_CONFIG_DIR "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
+-# install(FILES ${PC_CONFIGURED_FILE} DESTINATION ${PKG_CONFIG_DIR})
+-# endif(PKG_CONFIG_EXECUTABLE)
++#pkg-config (use the CPack information)
++FIND_PACKAGE(PkgConfig)
++if(PKG_CONFIG_EXECUTABLE)
++ set(PC_SHORT_NAME "${BUILDSYS_CPACK_NAME}")
++ set(PC_LONG_NAME "${BUILDSYS_CPACK_NAME}")
++ set(PC_LIBRARY_NAME "${LIBNIFALCON_CPP}")
++ set(PC_DESCRIPTION "${CPACK_PACKAGE_DESCRIPTION_SUMMARY}")
++ set(PC_VERSION "${LIBNIFALCON_MAJOR_VERSION}.${LIBNIFALCON_MINOR_VERSION}.${LIBNIFALCON_BUILD_VERSION}")
++
++ if(LIBUSB_1_FOUND)
++ set(PC_REQUIRES "${PC_REQUIRES}libusb-1.0 ")
++ set(PC_LINK_FLAGS "${PC_LINK_FLAGS}-lnifalcon_comm_libusb ")
++ endif(LIBUSB_1_FOUND)
++
++ set(PC_LINK_FLAGS "${lib${PC_LIBRARY_NAME}_LINK_FLAGS} ${PC_LINK_FLAGS}")
++ set(PC_LINK_FLAGS "-l${PC_LIBRARY_NAME} ${PC_LINK_FLAGS}")
++ set(PC_COMPILE_FLAGS "${lib${PC_LIBRARY_NAME}_COMPILE_FLAGS}")
++ set(PC_CONFIGURED_FILE
++ ${CMAKE_BINARY_DIR}/libnifalcon.pc
++ )
++ MESSAGE("-- Generating ${PC_CONFIGURED_FILE}")
++ configure_file(
++ ${CMAKE_SOURCE_DIR}/libnifalcon.pc.cmake
++ ${PC_CONFIGURED_FILE}
++ @ONLY
++ )
++ set(PKG_CONFIG_DIR "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
++ install(FILES ${PC_CONFIGURED_FILE} DESTINATION ${PKG_CONFIG_DIR})
++endif(PKG_CONFIG_EXECUTABLE)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110916/42a890d4/attachment.html>
More information about the macports-changes
mailing list