Browse Source

Add pkg-config file for jack2 and fix ticket #5

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1990 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.71
nedko 17 years ago
parent
commit
c93ab6bf41
2 changed files with 34 additions and 0 deletions
  1. +23
    -0
      SConstruct
  2. +11
    -0
      jack.pc.in

+ 23
- 0
SConstruct View File

@@ -22,6 +22,12 @@
import os import os
from string import Template from string import Template


JACK_MAJOR_VERSION=2
JACK_MINOR_VERSION=0
JACK_MICRO_VERSION=0

JACK_VERSION="%u.%u.%u" % (JACK_MAJOR_VERSION, JACK_MINOR_VERSION, JACK_MICRO_VERSION)

platform = ARGUMENTS.get('OS', str(Platform())) platform = ARGUMENTS.get('OS', str(Platform()))


build_dir = ARGUMENTS.get('BUILDDIR', '') build_dir = ARGUMENTS.get('BUILDDIR', '')
@@ -88,6 +94,12 @@ env = Environment(tools=['default', 'scanreplace', 'pkgconfig', 'doxygen'], tool
Help('To build jackdmp you can set different options as listed below. You have to specify them only once, scons will save the latest values you set and re-use then. To really undo your settings and return to the factory defaults, remove the .sconsign.dblite and options.cache files from your BUILDDIR directory.') Help('To build jackdmp you can set different options as listed below. You have to specify them only once, scons will save the latest values you set and re-use then. To really undo your settings and return to the factory defaults, remove the .sconsign.dblite and options.cache files from your BUILDDIR directory.')
Help(opts.GenerateHelpText(env)) Help(opts.GenerateHelpText(env))


# Set version
env['JACK_MAJOR_VERSION'] = JACK_MAJOR_VERSION
env['JACK_MINOR_VERSION'] = JACK_MINOR_VERSION
env['JACK_MICRO_VERSION'] = JACK_MICRO_VERSION
env['JACK_VERSION'] = JACK_VERSION

# Set the lib names # Set the lib names
env['CLIENTLIB'] = 'jackmp' env['CLIENTLIB'] = 'jackmp'
env['SERVERLIB'] = 'jackservermp' env['SERVERLIB'] = 'jackservermp'
@@ -189,6 +201,17 @@ else:
env['WRAPPERLIB'] = 'jackwrapper' env['WRAPPERLIB'] = 'jackwrapper'
env['ADDON_DIR'] = env.subst(env['LIBDIR']) + "/jackmp" env['ADDON_DIR'] = env.subst(env['LIBDIR']) + "/jackmp"


env['PREFIX'] = env.subst(env['PREFIX'])
env['BINDIR'] = env.subst(env['BINDIR'])
env['LIBDIR'] = env.subst(env['LIBDIR'])
env['INCLUDEDIR'] = env.subst(env['INCLUDEDIR'])

env.ScanReplace('jack.pc.in')
AlwaysBuild('jack.pc')
pkg_config_dir = env['PREFIX']+"/lib/pkgconfig/"
env.Install(pkg_config_dir, 'jack.pc')
env.Alias('install', pkg_config_dir)

# for config.h.in # for config.h.in
# TODO: Is that necessary ? # TODO: Is that necessary ?
env['LIB_DIR']='lib' env['LIB_DIR']='lib'


+ 11
- 0
jack.pc.in View File

@@ -0,0 +1,11 @@
prefix=${PREFIX}
exec_prefix=${PREFIX}
libdir=${LIBDIR}
includedir=${INCLUDEDIR}
server_libs=-L${LIBDIR} -l${SERVERLIB}

Name: jack
Description: the Jack Audio Connection Kit: a low-latency synchronous callback-based media server
Version: ${JACK_VERSION}
Libs: -L${LIBDIR} -ljack
Cflags: -I${INCLUDEDIR}

Loading…
Cancel
Save