OSDN Git Service

* tslib.pc.in: Add pkg-config file for tslib.
authorChris Larson <clarson@kergoth.com>
Tue, 1 Mar 2005 01:56:09 +0000 (18:56 -0700)
committerChris Larson <clarson@kergoth.com>
Tue, 1 Mar 2005 01:56:09 +0000 (18:56 -0700)
* configure.ac, Makefile.am: Create tslib-$LT_RELEASE.pc, and install
it into the correct place.  Also change the AC_INIT 'PACKAGE' from
libts to tslib.  Bump the LT_RELEASE, since libts has changed a fair
bit now, in preparation for the 1.0.0 release.
* .cvsignore: Add *.pc to CVS ignore.

.cvsignore
ChangeLog
Makefile.am
configure.ac
tslib.pc.in [new file with mode: 0644]

index 1be1dcc..4d9b880 100644 (file)
@@ -18,4 +18,4 @@ mkinstalldirs
 stamp-h
 stamp-h.in
 stamp-h1
-
+*.pc
index 3077580..ebe22ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-02-28 Chris Larson <kergoth@handhelds.org>
+
+       * tslib.pc.in: Add pkg-config file for tslib.
+       * configure.ac, Makefile.am: Create tslib-$LT_RELEASE.pc, and install
+         it into the correct place.  Also change the AC_INIT 'PACKAGE' from
+         libts to tslib.  Bump the LT_RELEASE, since libts has changed a fair
+         bit now, in preparation for the 1.0.0 release.
+       * .cvsignore: Add *.pc to CVS ignore.
+
 2005-02-25 Chris Larson <kergoth@handhelds.org>
 
        * AUTHORS: Add self to AUTHORS file.
index 5864fb7..a21276b 100644 (file)
@@ -6,7 +6,7 @@
 # This file is placed under the LGPL.  Please see the file
 # COPYING for more details.
 #
-# $Id: Makefile.am,v 1.2 2005/02/26 01:47:22 kergoth Exp $
+# $Id: Makefile.am,v 1.3 2005/02/28 18:56:09 kergoth Exp $
 #
 
 SUBDIRS                = etc src plugins tests
@@ -14,3 +14,6 @@ EXTRA_DIST    = autogen.sh
 
 ACLOCAL_AMFLAGS = -I m4/internal -I m4/external
 AUTOMAKE_OPTIONS = 1.6
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = $(PACKAGE)-$(LT_RELEASE).pc
index 3794071..b60835d 100644 (file)
@@ -2,12 +2,15 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.57)
-AC_INIT(libts, 0.0.2, kergoth@handhelds.org)
+AC_INIT(tslib, 0.0.2, kergoth@handhelds.org)
 # AC_CONFIG_AUX_DIR(config)
 AM_INIT_AUTOMAKE(dist-bzip2)
 AC_CONFIG_SRCDIR([src/ts_close.c])
 AM_CONFIG_HEADER(config.h)
 
+PACKAGE_DESCRIPTION="Touchscreen Access Library"
+AC_SUBST(PACKAGE_DESCRIPTION)
+
 # Set our default flags variables
 TS_DEFAULT_FLAGS
 
@@ -192,7 +195,7 @@ AC_SUBST(TS_CONF)
 # Library versioning
 LT_RELEASE=0.0
 LT_CURRENT=1
-LT_REVISION=0
+LT_REVISION=1
 LT_AGE=1
 AC_SUBST(LT_RELEASE)
 AC_SUBST(LT_CURRENT)
@@ -204,5 +207,6 @@ AC_CONFIG_FILES([Makefile
                  etc/Makefile
                  plugins/Makefile
                  src/Makefile
-                 tests/Makefile])
+                 tests/Makefile
+                 tslib-$LT_RELEASE.pc:tslib.pc.in])
 AC_OUTPUT
diff --git a/tslib.pc.in b/tslib.pc.in
new file mode 100644 (file)
index 0000000..eb8c98e
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: @PACKAGE@
+Description: @PACKAGE_DESCRIPTION@
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lts
+Cflags: -I${includedir}