add pkgconfig xrdp.pc file

This commit is contained in:
Jay Sorg 2016-11-17 11:57:10 -08:00
parent 8dac31ca52
commit 50db3bb983
4 changed files with 29 additions and 1 deletions

View File

@ -31,4 +31,5 @@ SUBDIRS = \
instfiles \
genkeymap \
xrdpapi \
pkgconfig \
$(XRDPVRDIR)

View File

@ -254,6 +254,10 @@ if test "x${prefix}" = "xNONE" ; then
sysconfdir="/etc";
localstatedir="/var";
fi
pkgconfigdir=${libdir}/pkgconfig
AC_SUBST(pkgconfigdir)
AC_CONFIG_FILES([Makefile
common/Makefile
vnc/Makefile
@ -280,11 +284,13 @@ AC_CONFIG_FILES([Makefile
genkeymap/Makefile
xrdpapi/Makefile
xrdpvr/Makefile
pkgconfig/Makefile
])
# fontdump/Makefile
# xrdp/cursors/Makefile
# Xserver/hw/rdp/Makefile
AC_OUTPUT
AC_OUTPUT([pkgconfig/libpainter.pc
])
# example of how to check for a struct in a header
#AC_CHECK_MEMBER([struct in6_addr.s6_addr],

12
pkgconfig/Makefile.am Normal file
View File

@ -0,0 +1,12 @@
pkg_config_files = \
xrdp.pc \
$(NULL)
pkgconfigdir = @pkgconfigdir@
pkgconfig_DATA = $(pkg_config_files)
DISTCLEANFILES = \
$(pkg_config_files) \
Makefile.in \
$(NULL)

9
pkgconfig/xrdp.pc.in Normal file
View File

@ -0,0 +1,9 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: xrdp
Description: xrdp - an open source RDP server
Version: 0.9.2
Cflags: -I${includedir}