diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libdc1394 | |
Diffstat (limited to 'vcpkg/ports/libdc1394')
| -rw-r--r-- | vcpkg/ports/libdc1394/fix-macosx.patch | 11 | ||||
| -rw-r--r-- | vcpkg/ports/libdc1394/portfile.cmake | 29 | ||||
| -rw-r--r-- | vcpkg/ports/libdc1394/vcpkg.json | 10 |
3 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/libdc1394/fix-macosx.patch b/vcpkg/ports/libdc1394/fix-macosx.patch new file mode 100644 index 0000000..9e626e1 --- /dev/null +++ b/vcpkg/ports/libdc1394/fix-macosx.patch @@ -0,0 +1,11 @@ +--- a/dc1394/macosx/Makefile.in ++++ b/dc1394/macosx/Makefile.in +@@ -119,7 +119,7 @@ AM_V_at = $(am__v_at_@AM_V@) + am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) + am__v_at_0 = @ + am__v_at_1 = +-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) ++DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I.@am__isrc@/.. -I.@am__isrc@/../.. + depcomp = $(SHELL) $(top_srcdir)/depcomp + am__depfiles_maybe = depfiles + am__mv = mv -f diff --git a/vcpkg/ports/libdc1394/portfile.cmake b/vcpkg/ports/libdc1394/portfile.cmake new file mode 100644 index 0000000..e22c3bb --- /dev/null +++ b/vcpkg/ports/libdc1394/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_from_sourceforge( + OUT_SOURCE_PATH SOURCE_PATH + REPO libdc1394/libdc1394-2 + REF "${VERSION}" + FILENAME "libdc1394-${VERSION}.tar.gz" + SHA512 0d0b1861612f7c69753af7109ef226ea4e550353222e02663dfaac3fa8f456b94c2dd2579cac840047a42bac97692da436f10be3def1fa29109de05c1e871257 + PATCHES + fix-macosx.patch +) + +vcpkg_configure_make( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + "--disable-examples" + ac_cv_lib_raw1394_raw1394_channel_modify=no + ac_cv_path_SDL_CONFIG=no +) +vcpkg_install_make() + +file(APPEND "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libdc1394-2.pc" "\nRequires.private: libusb-1.0\n") +if(NOT VCPKG_BUILD_TYPE) + file(APPEND "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libdc1394-2.pc" "\nRequires.private: libusb-1.0\n") +endif() +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/libdc1394/vcpkg.json b/vcpkg/ports/libdc1394/vcpkg.json new file mode 100644 index 0000000..575b58f --- /dev/null +++ b/vcpkg/ports/libdc1394/vcpkg.json @@ -0,0 +1,10 @@ +{ + "name": "libdc1394", + "version": "2.2.7", + "description": "libdc1394 is a library that provides a complete high level application programming interface (API) for developers who wish to control IEEE 1394 based cameras that conform to the 1394-based Digital Camera Specifications (also known as the IIDC or DCAM Specifications).", + "homepage": "https://damien.douxchamps.net/ieee1394/libdc1394", + "supports": "!windows", + "dependencies": [ + "libusb" + ] +} |