diff options
| author | Stephen Sinclair <radarsat1@gmail.com> | 2013-10-11 18:04:25 +0200 |
|---|---|---|
| committer | Stephen Sinclair <radarsat1@gmail.com> | 2013-10-11 18:04:25 +0200 |
| commit | d0e7d5f0c473024df735c98e2a4428cf3209a1f3 (patch) | |
| tree | 0e43d3df62ff5c1fe7010de7b6574614a2914f2e | |
| parent | 8910f7fe48daff0625402655dcd165fe39538d17 (diff) | |
Add a pkg-config module for RtMidi.
| -rw-r--r-- | configure.ac | 5 | ||||
| -rw-r--r-- | librtmidi.pc.in | 12 |
2 files changed, 16 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a62e00f..e3532e4 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ AC_INIT(RtMidi, 2.0, gary@music.mcgill.ca, rtmidi) AC_CONFIG_AUX_DIR(config) AC_CONFIG_SRCDIR(RtMidi.cpp) -AC_CONFIG_FILES(rtmidi-config Makefile tests/Makefile) +AC_CONFIG_FILES([rtmidi-config librtmidi.pc Makefile tests/Makefile]) # Fill GXX with something before test. AC_SUBST( GXX, ["no"] ) @@ -54,6 +54,7 @@ case $host in esac AC_SUBST( api, [""] ) +AC_SUBST( req, [""] ) AC_MSG_CHECKING(for MIDI API) case $host in *-*-linux*) @@ -65,12 +66,14 @@ case $host in # Look for ALSA flag AC_ARG_WITH(alsa, [ --with-alsa = choose native ALSA sequencer API support (linux only)], [ api="$api -D__LINUX_ALSA__" + req="$req alsa" AC_MSG_RESULT(using ALSA) AC_CHECK_LIB(asound, snd_seq_open, , AC_MSG_ERROR(ALSA support requires the asound library!))], ) if [test "$api" == "";] then AC_MSG_RESULT(using ALSA) AC_SUBST( api, [-D__LINUX_ALSA__] ) + req="$req alsa" AC_CHECK_LIB(asound, snd_seq_open, , AC_MSG_ERROR(ALSA sequencer support requires the asound library!)) fi diff --git a/librtmidi.pc.in b/librtmidi.pc.in new file mode 100644 index 0000000..4a36c7a --- /dev/null +++ b/librtmidi.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: librtmidi +Description: RtMidi - a set of C++ classes that provide a common API for realtime MIDI input/output +Version: 2.0.1 +Requires: @req@ +Libs: -L${libdir} -lrtmidi +Libs.private: -lpthread +Cflags: -pthread -I${includedir} @CPPFLAGS@
\ No newline at end of file |
