Bug 192665

Summary: [PATCH] devel/libftdi configuration broken
Product: Ports & Packages Reporter: Johan Ström <johan>
Component: Individual Port(s)Assignee: Tijl Coosemans <tijl>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
CMakeLists include-dir patch none

Description Johan Ström 2014-08-14 19:38:31 UTC
Since a while ago (most likely the CMake changes a few days back, but not sure when this became a problem), the libftdi-config util reports invalid path:

$ /usr/local/bin/libftdi-config --cflags
-I/usr/local/include/libftdi
$ ls -al /usr/local/include/libftdi
ls: /usr/local/include/libftdi: No such file or directory
$ ls -al /usr/local/include/ftdi.h
-rw-r--r--  1 root  wheel  16428 Mar 15  2012 /usr/local/include/ftdi.h
$

CMakeLists.txt from libftdi-0.20 seems to have:

set(includedir  ${CMAKE_INSTALL_PREFIX}/include/${PROJECT_NAME})

However, it does not seem to actually install it in /usr/local/include/libftdi..
However, the attached patch fixes the problem (wronlgy reported include-dir) and I'm now able to compile my program again.

Env: FreeBSD 10.0-RELEASE on amd64.
Comment 1 Johan Ström 2014-08-14 19:39:01 UTC
Created attachment 145790 [details]
CMakeLists include-dir patch
Comment 2 John Marino freebsd_committer freebsd_triage 2014-08-14 20:29:11 UTC
Assigning this unmaintained port PR to tijl@ who touched it last.
Comment 3 Tijl Coosemans freebsd_committer freebsd_triage 2014-08-15 08:22:42 UTC
Fixed in r364947.
Comment 4 Johan Ström 2014-08-15 08:40:32 UTC
Thanks!