USES=localbase:ldflags can be used to set LDFLAGS. Normally LDFLAGS
appears too early on the command line causing some ports to link with
their own libraries in LOCALBASE (if installed) instead of WRKSRC.
Also make use of _USES_POST so -L${LOCALBASE}/lib is added as late as
possible after anything a port Makefile might set. Use _USES_POST
instead of .include in libedit.mk and libarchive.mk so things like
'USES=libedit localbase:ldflags' work correctly.
Fix some issues with LIBS in some ports.
Switch ports that don't support LIBS to localbase:ldflags.
PR: 212987
Exp-run by: antoine
Approved by: portmgr (antoine)
What the port was doing was never right, but the upcoming CMake 3.5.0 makes the
build failures happen more often.
Using target_link_libraries() with a name like fplib will just pass -lfplib to
the linker instead of declaring a dependency between the lastfm-fpclient and
fplib_shared targets and parallel builds may break.
PR: 208033
the 32 ports that still use it. Bump PORTREVISION on their dependent
ports except the ones that depend on these:
audio/libogg
audio/libvorbis
devel/pcre
ftp/curl
graphics/jpeg
graphics/libart_lgpl
graphics/tiff
textproc/expat2
textproc/libxslt
In these cases the same trick as in the recent gettext update is used.
The ports install a symlink with the old library version. When enough
of their dependent ports have had regular updates the remaining ones can
get a PORTREVISION bump and the links can be removed.
Also remove the devel/pcre dependency from USE_GNOME=glib20. It causes
over 2200 packages to depend on devel/pcre while less than 200 actually
link with it. The glib20 package still depends on devel/pcre so this
should not make a difference for ports with USE_GNOME=glib20. Also,
libdata/pkgconfig/glib-2.0.pc lists pcre as a private library so
USE_GNOME=glib20 should not propagate it.
PR: 195724
Exp-run by: antoine
Approved by: portmgr (antoine)
The last.fm fingerprint library
The fingerprinting process works in two steps:
1. Get PCM data and pass it to *fplib* which will return byte string to be
submitted to the last.fm HTTP fingerprint service. This will return a number
(fingerprintID).
2. Query the last.fm API with the fingerprintID and obtain the metadata in xml
format.
The lastfmfpclient directory contains an example of application that uses fplib
and queries both services.
WWW: https://github.com/lastfm/Fingerprinter
Feature safe: yes