Changeset - b8ce1b31f22b
[Not reviewed]
default
0 2 1
Nathan Brink (binki) - 15 years ago 2010-08-07 20:42:36
ohnobinki@ohnopublishing.net
pkg-config support for libdistren.
3 files changed with 25 insertions and 1 deletions:
0 comments (0 inline, 0 general)
Makefile.am
Show inline comments
 
ACLOCAL_AMFLAGS = -I m4
 

	
 
pkgconfigdir = $(libdir)/pkgconfig
 

	
 
# both srcdir and builddir are needed because config.h ends up in builddir
 
AM_CPPFLAGS = -DSYSCONFDIR='"$(sysconfdir)"' \
 
	-DLOCALSTATEDIR='"$(localstatedir)"' \
 
@@ -18,6 +20,8 @@ include_HEADERS = src/client/distren.h
 
lib_LTLIBRARIES = libdistren.la
 
pkglib_LTLIBRARIES = libdistrencommon.la
 

	
 
nodist_pkgconfig_DATA = libdistren.pc
 

	
 
# libdistrencommon.la:
 
libdistrencommon_la_SOURCES = src/common/asprintf.c src/common/asprintf.h \
 
	src/common/execio.c src/common/execio.h \
configure.ac
Show inline comments
 
@@ -48,7 +48,9 @@ AM_CONDITIONAL([ENABLE_SERVER],
 

	
 
dnl package dependencies:
 

	
 
PKG_CHECK_MODULES([DISTLIBS], [libconfuse >= 2.5 libcurl libxml-2.0 liblist >= 2.3.1 libarchive >= 2.8.0 libcrypto])
 
DISTLIBS_MODULES="libconfuse >= 2.5 libcurl libxml-2.0 liblist >= 2.3.1 libarchive >= 2.8.0 libcrypto"
 
AC_SUBST([DISTLIBS_MODULES])
 
PKG_CHECK_MODULES([DISTLIBS], [$DISTLIBS_MODULES])
 
AX_LIB_MYSQL
 
AS_IF( [test "x${MYSQL_VERSION}" = "x"],
 
	[ AC_MSG_ERROR([I need mysql]) ] )
 
@@ -73,6 +75,7 @@ AC_DEFINE_DIR([LOCALSTATEDIR], [localsta
 
AC_DEFINE_DIR([RUNSTATEDIR], [localstatedir/run], [Default directory for registering runtime information like pid-files])
 

	
 
AC_CONFIG_FILES([Makefile
 
	libdistren.pc
 
	etc/distrendaemon.conf
 
	etc/distrenslave.conf
 
])
libdistren.pc.in
Show inline comments
 
new file 100644
 
prefix = @prefix@
 
exec_prefix = @exec_prefix@
 
datarootdir = @datarootdir@
 
datadir = @datadir@
 
includedir = @includedir@
 
libdir = @libdir@
 
pkglibdir = ${libdir}/@PACKAGE@
 
bindir = @bindir@
 

	
 
Name: libdistren
 
Description: A distren client for submitting, monitoring progress of, and retrieving distributed rendering jobs
 
Version: @PACKAGE_VERSION@
 
URL: @PACKAGE_URL@
 
Requires.private: @DISTLIBS_MODULES@
 
Libs: -L${libdir} -ldistren
 
Libs.private: -L${pkglibdir} -ldistrencommon
 
Cflags: -I${includedir}
0 comments (0 inline, 0 general)