-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
4,192 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# - Try to find Meade Cam Camera Library | ||
# Once done this will define | ||
# | ||
# MEADECAM_FOUND - system has Meade Cam | ||
# MEADECAM_INCLUDE_DIR - the Meade Cam include directory | ||
# MEADECAM_LIBRARIES - Link these to use Meade Cam | ||
|
||
# Redistribution and use is allowed according to the terms of the BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
|
||
if (MEADECAM_INCLUDE_DIR AND MEADECAM_LIBRARIES) | ||
|
||
# in cache already | ||
set(MEADECAM_FOUND TRUE) | ||
message(STATUS "Found libmeadecam: ${MEADECAM_LIBRARIES}") | ||
|
||
else (MEADECAM_INCLUDE_DIR AND MEADECAM_LIBRARIES) | ||
|
||
find_path(MEADECAM_INCLUDE_DIR meadecam.h | ||
PATH_SUFFIXES libmeadecam | ||
${_obIncDir} | ||
${GNUWIN32_DIR}/include | ||
) | ||
|
||
find_library(MEADECAM_LIBRARIES NAMES meadecam | ||
PATHS | ||
${_obLinkDir} | ||
${GNUWIN32_DIR}/lib | ||
) | ||
|
||
if(MEADECAM_INCLUDE_DIR AND MEADECAM_LIBRARIES) | ||
set(MEADECAM_FOUND TRUE) | ||
else (MEADECAM_INCLUDE_DIR AND MEADECAM_LIBRARIES) | ||
set(MEADECAM_FOUND FALSE) | ||
endif(MEADECAM_INCLUDE_DIR AND MEADECAM_LIBRARIES) | ||
|
||
|
||
if (MEADECAM_FOUND) | ||
if (NOT MEADECAM_FIND_QUIETLY) | ||
message(STATUS "Found MeadeCam: ${MEADECAM_LIBRARIES}") | ||
endif (NOT MEADECAM_FIND_QUIETLY) | ||
else (MEADECAM_FOUND) | ||
if (MEADECAM_FIND_REQUIRED) | ||
message(FATAL_ERROR "MeadeCam not found. Please install MeadeCam Library http://www.indilib.org") | ||
endif (MEADECAM_FIND_REQUIRED) | ||
endif (MEADECAM_FOUND) | ||
|
||
mark_as_advanced(MEADECAM_INCLUDE_DIR MEADECAM_LIBRARIES) | ||
|
||
endif (MEADECAM_INCLUDE_DIR AND MEADECAM_LIBRARIES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
libmeadecam (1.54.2) jammy; urgency=medium | ||
|
||
* Upstream release | ||
|
||
-- Ben Gilsrud <[email protected]> Mon, 09 Oct 2023 15:00:00 +0300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Source: libmeadecam | ||
Section: libs | ||
Priority: extra | ||
Maintainer: Ben Gilsrud <[email protected]> | ||
Build-Depends: debhelper (>= 6), cdbs, cmake | ||
Standards-Version: 3.9.1 | ||
|
||
Package: libmeadecam | ||
Architecture: amd64 armhf arm64 | ||
Depends: ${shlibs:Depends}, ${misc:Depends}, libtoupcam | ||
Description: Library for Meade Touptek Cameras. | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/make -f | ||
|
||
include /usr/share/cdbs/1/rules/debhelper.mk | ||
include /usr/share/cdbs/1/class/cmake.mk | ||
|
||
DEB_SRCDIR=libmeadecam | ||
DEB_DH_SHLIBDEPS_ARGS=-u--ignore-missing-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (quilt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copy this file to /etc/udev/rules.d | ||
|
||
# Once done, unplug and re-plug your device. This is all that is | ||
# necessary to see the new permissions. Udev does not have to be restarted. | ||
|
||
# If you think permissions of 0666 are too loose, then see: | ||
# http://reactivated.net/writing_udev_rules.html for more information on finer | ||
# grained permission setting. | ||
|
||
SUBSYSTEM=="usb", ATTRS{idVendor}=="0547", MODE="0666" | ||
SUBSYSTEM=="usb", ATTRS{idVendor}=="0549", MODE="0666" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
cmake_minimum_required (VERSION 3.0) | ||
project (libmeadecam) | ||
|
||
set (LIBMEADECAM_VERSION "1.0") | ||
set (LIBMEADECAM_SOVERSION "1") | ||
|
||
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/") | ||
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules/") | ||
find_package(USB1 REQUIRED) | ||
|
||
include (GNUInstallDirs) | ||
include (InstallImported) | ||
include(CMakeCommon) | ||
|
||
|
||
set(meadecam_LIB_SRCS meadecam.c) | ||
add_library(meadecam SHARED ${meadecam_LIB_SRCS}) | ||
set_target_properties(meadecam PROPERTIES VERSION ${LIBMEADECAM_VERSION} SOVERSION ${LIBMEADECAM_SOVERSION}) | ||
target_link_libraries(meadecam ${USB1_LIBRARIES}) | ||
install(TARGETS meadecam LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
|
||
if (UNIX AND NOT APPLE) | ||
|
||
# Install udev rules | ||
set (UDEVRULES_INSTALL_DIR "/lib/udev/rules.d" CACHE STRING "Base directory for udev rules") | ||
install (FILES 99-meadecam.rules DESTINATION ${UDEVRULES_INSTALL_DIR}) | ||
|
||
endif () | ||
|
||
# Install header files | ||
install (FILES meadecam.h DESTINATION include/libmeadecam) |
Oops, something went wrong.