gnu: libftdi: Build ftdi_eeprom.

* gnu/packages/libftdi.scm (libftdi)[arguments]<#:configure-flags>: Add
"-DCMAKE_INSTALL_DOCDIR".
[native-inputs]: Add with pkg-config.
[inputs]: Add with libconfuse.
[license]: Add GPL version 2.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Simon South 2023-09-07 12:37:54 -04:00 committed by Ludovic Courtès
parent ea67b8571d
commit d92c71f1d6
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -24,7 +24,9 @@ (define-module (gnu packages libftdi)
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (gnu packages libusb)) #:use-module (gnu packages libusb)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages textutils))
(define-public libftdi (define-public libftdi
(package (package
@ -42,8 +44,14 @@ (define-public libftdi
(arguments (arguments
(list (list
#:configure-flags #:configure-flags
#~(list "-DEXAMPLES=OFF" #~(list (string-append "-DCMAKE_INSTALL_DOCDIR="
#$output "/share/doc/" #$name "-" #$version)
"-DEXAMPLES=OFF"
"-DLIB_SUFFIX=''"))) ; place libraries in /lib, not /lib64 "-DLIB_SUFFIX=''"))) ; place libraries in /lib, not /lib64
(native-inputs
(list pkg-config))
(inputs
(list libconfuse))
(propagated-inputs (propagated-inputs
(list libusb)) ; required by libftdi1.pc (list libusb)) ; required by libftdi1.pc
(home-page "https://www.intra2net.com/en/developer/libftdi/") (home-page "https://www.intra2net.com/en/developer/libftdi/")
@ -51,4 +59,5 @@ (define-public libftdi
(description (description
"libFTDI is a library to talk to FTDI chips: FT232BM, FT245BM, FT2232C, "libFTDI is a library to talk to FTDI chips: FT232BM, FT245BM, FT2232C,
FT2232D, FT245R and FT232H including the popular bitbangmode.") FT2232D, FT245R and FT232H including the popular bitbangmode.")
(license license:lgpl2.1))) (license (list license:gpl2 ; ftdi_eeprom
license:lgpl2.1)))) ; main library