Skip to content

Commit

Permalink
Merge pull request #860 from willnewton/pkgconfig
Browse files Browse the repository at this point in the history
Add support for pkg-config
  • Loading branch information
JohnLangford committed Nov 30, 2015
2 parents f6db4b0 + 512bf8d commit 87b6555
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Makefile.am
Expand Up @@ -78,5 +78,8 @@ noinst_HEADERS = vowpalwabbit/accumulate.h \

ACLOCAL_AMFLAGS = -I acinclude.d

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libvw.pc libvw_c_wrapper.pc

test: all
cd test && ./RunTests -f -E 0.001 ../vowpalwabbit/vw ../vowpalwabbit/vw
5 changes: 3 additions & 2 deletions configure.ac
@@ -1,5 +1,4 @@
AC_INIT([vowpal_wabbit], [8.1.1], [jl@hunch.net])
AC_DEFINE([PACKAGE_URL],["https://github.com/JohnLangford/vowpal_wabbit"],[project url])
AC_INIT([vowpal_wabbit], [8.1.1], [jl@hunch.net], [vowpal_wabbit], [https://github.com/JohnLangford/vowpal_wabbit])
AC_CONFIG_HEADERS(vowpalwabbit/config.h)
AM_INIT_AUTOMAKE([subdir-objects])

Expand Down Expand Up @@ -79,5 +78,7 @@ AC_CONFIG_FILES([
vowpalwabbit/Makefile
cluster/Makefile
library/Makefile
libvw.pc
libvw_c_wrapper.pc
])
AC_OUTPUT
12 changes: 12 additions & 0 deletions libvw.pc.in
@@ -0,0 +1,12 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: Vowpal Wabbit
Description: Vowpal Wabbit Machine Learning System
URL: @PACKAGE_URL@
Version: @VERSION@
Requires: zlib
Libs: -L${libdir} -lvw -lallreduce @PTHREAD_LIBS@ @BOOST_PROGRAM_OPTIONS_LIB@
Cflags: -I${includedir} @PTHREAD_CFLAGS@
12 changes: 12 additions & 0 deletions libvw_c_wrapper.pc.in
@@ -0,0 +1,12 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: Vowpal Wabbit (C wrapper)
Description: Vowpal Wabbit Machine Learning System (C wrapper)
URL: @PACKAGE_URL@
Version: @VERSION@
Requires: libvw
Libs: -L${libdir} -lvw_c_wrapper
Cflags: -I${includedir}

0 comments on commit 87b6555

Please sign in to comment.