Bug 192665 - [PATCH] devel/libftdi configuration broken
Summary: [PATCH] devel/libftdi configuration broken
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tijl Coosemans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-14 19:38 UTC by Johan Ström
Modified: 2014-08-15 08:40 UTC (History)
0 users

See Also:


Attachments
CMakeLists include-dir patch (433 bytes, patch)
2014-08-14 19:39 UTC, Johan Ström
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!