Skip to content

Commit

Permalink
libomron-0.9.0+git20121030 (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Feb 9, 2025
1 parent ae84314 commit 35f8d1e
Show file tree
Hide file tree
Showing 3 changed files with 158 additions and 0 deletions.
70 changes: 70 additions & 0 deletions libomron/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
libomron
------------------------------------------
Libraries for accessing data from Omron medical devices

Runtime requirements:
cygwin-3.5.7-1
libomron-devel-0.9.0+git20121030-1bl1
libomron0.9.0-0.9.0+git20121030-1bl1
libusb1.0-1.0.21-1
pkg-config-2.3.0-1

Build requirements:
(besides corresponding -devel packages)
binutils-2.44-1
cmake-3.28.3-1
cygport-0.36.9-1
gcc-core-12.4.0-3
gcc-g++-12.4.0-3
libusb1.0-devel-1.0.21-1
ninja-1.12.1-1

Canonical website:
https://github.com/openyou/libomron

Canonical download:
https://github.com/openyou/libomron.git

-------------------------------------------

Build instructions:
1. unpack libomron-0.9.0+git20121030-X-src.tar.xz
2. if you use setup to install this src package,
it will be unpacked under /usr/src automatically
% cd /usr/src
% cygport ./libomron-0.9.0+git20121030-X.cygport all

This will create:
/usr/src/libomron-0.9.0+git20121030-X-src.tar.xz
/usr/src/libomron-0.9.0+git20121030-X.tar.xz
/usr/src/libomron0.9.0-0.9.0+git20121030-X.tar.xz
/usr/src/libomron-devel-0.9.0+git20121030-X.tar.xz

-------------------------------------------

Files included in the binary package:

(libomron)
/usr/bin/omron_720IT_csv_dump.exe
/usr/bin/omron_720IT_test.exe
/usr/bin/omron_790IT_test.exe
/usr/share/doc/Cygwin/libomron.README
/usr/share/doc/libomron/AUTHORS.txt
/usr/share/doc/libomron/ChangeLog.txt
/usr/share/doc/libomron/LICENSE.txt
/usr/share/doc/libomron/README.asciidoc

(libomron0.9.0)
/usr/bin/cygomron-0.9.0.dll

(libomron-devel)
/usr/include/libomron/libomron/omron.h
/usr/lib/libomron.dll.a
/usr/lib/pkgconfig/libomron.pc

------------------

Port Notes:

----- version 0.9.0+git20121030-1bl1 -----
Initial release by fd0 <https://github.com/fd00/>
45 changes: 45 additions & 0 deletions libomron/libomron-0.9.0+git20121030-1bl1.cygport
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
HOMEPAGE="https://github.com/openyou/${PN}"
GIT_URI="https://github.com/openyou/${PN}.git"
GIT_REV="7febf1792621f381050881ee827b186bbd6ed610"

CATEGORY="Libs"
SUMMARY="Libraries for accessing data from Omron medical devices"
DESCRIPTION="${SUMMARY}"

LICENSE="BSD-3-Clause"
LICENSE_SPDX="SPDX-License-Identifier: BSD-3-Clause"
LICENSE_URI="LICENSE.txt"

BUILD_REQUIRES="libusb1.0-devel"

inherit cmake
inherit git

CYGCMAKE_ARGS="
-DBUILD_STATIC:BOOL=OFF
"

DOCS="
ChangeLog.txt
README.asciidoc
"

PKG_NAMES="
libomron
libomron0.9.0
libomron-devel
"
libomron_CONTENTS="
usr/bin/*.exe
usr/share
"
libomron0_9_0_CONTENTS="
usr/bin/cyg*-0.9.0.dll
"
libomron_devel_CONTENTS="
usr/include
usr/lib
"
libomron_SUMMARY="${SUMMARY} (utilities)"
libomron0_9_0_SUMMARY="${SUMMARY} (runtime)"
libomron_devel_SUMMARY="${SUMMARY} (development)"
43 changes: 43 additions & 0 deletions libomron/libomron-0.9.0+git20121030-1bl1.src.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
--- origsrc/libomron/BuildSysCMakeLib.cmake 2025-02-09 09:46:56.000000000 +0900
+++ src/libomron/BuildSysCMakeLib.cmake 2025-02-09 09:53:01.347348000 +0900
@@ -327,7 +327,7 @@ FUNCTION(BUILDSYS_BUILD_LIB)

# Installation commands
IF(BUILDSYS_LIB_SHOULD_INSTALL AND NOT BUILDSYS_LIB_EXCLUDE_FROM_ALL)
- INSTALL(TARGETS ${CURRENT_LIB} LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR} ARCHIVE DESTINATION ${LIBRARY_INSTALL_DIR} FRAMEWORK DESTINATION ${FRAMEWORK_INSTALL_DIR})
+ INSTALL(TARGETS ${CURRENT_LIB} RUNTIME DESTINATION bin LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR} ARCHIVE DESTINATION ${LIBRARY_INSTALL_DIR} FRAMEWORK DESTINATION ${FRAMEWORK_INSTALL_DIR})
ELSEIF(BUILDSYS_LIB_SHOULD_INSTALL AND BUILDSYS_LIB_EXCLUDE_FROM_ALL)
# Only install the output file if it exists. This doesn't work for targets under exclude from all, but we may build them anyways
MESSAGE(STATUS "NOTE: Target ${BUILDSYS_LIB_NAME} will only be installed after target is specifically built (not build using all target)")
--- origsrc/libomron/CMakeLists.txt 2025-02-09 09:46:56.000000000 +0900
+++ src/libomron/CMakeLists.txt 2025-02-09 09:57:43.669659500 +0900
@@ -99,5 +99,16 @@ ENDIF()

ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(examples)
+if (BUILD_SWIG)
ADD_SUBDIRECTORY(swig)
+endif()
+if (BUILD_PYTHON)
ADD_SUBDIRECTORY(python)
+endif()
+
+set(prefix ${CMAKE_INSTALL_PREFIX})
+set(exec_prefix ${CMAKE_INSTALL_PREFIX})
+set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
+set(includedir ${CMAKE_INSTALL_PREFIX}/include)
+configure_file(${CMAKE_SOURCE_DIR}/libomron.pc.in ${CMAKE_BINARY_DIR}/libomron.pc @ONLY)
+install(FILES ${CMAKE_BINARY_DIR}/libomron.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
--- origsrc/libomron/libomron.pc.in 1970-01-01 09:00:00.000000000 +0900
+++ src/libomron/libomron.pc.in 2025-02-09 09:57:54.482905600 +0900
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libomron
+Description: Libraries for accessing data from Omron medical devices
+Version: @LIBOMRON_VERSION@
+Libs: -L${libdir} -lomron
+Cflags: -I${includedir}

0 comments on commit 35f8d1e

Please sign in to comment.