cunit/CUnit-2.1-pkgconfig.patch

44 lines
1.2 KiB
Diff

diff -uNr old-CUnit-2.1-0//configure.in CUnit-2.1-0/configure.in
--- old-CUnit-2.1-0//configure.in 2010-03-13 13:49:43.606490462 +0100
+++ CUnit-2.1-0/configure.in 2010-03-13 13:55:58.586740381 +0100
@@ -239,6 +239,7 @@
dnl Configure Makefile set.
AC_CONFIG_FILES( Makefile \
+ cunit.pc \
CUnit.spec \
CUnit/Makefile \
CUnit/Headers/Makefile \
diff -uNr old-CUnit-2.1-0//cunit.pc.in CUnit-2.1-0/cunit.pc.in
--- old-CUnit-2.1-0//cunit.pc.in 1970-01-01 01:00:00.000000000 +0100
+++ CUnit-2.1-0/cunit.pc.in 2010-03-13 13:51:26.421496087 +0100
@@ -0,0 +1,9 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: CUnit
+Description: CUnit is a unit testing framework for C
+Version: @VERSION@
+Libs: -L${libdir} -lcunit -lncurses
diff -uNr old-CUnit-2.1-0//Makefile.am CUnit-2.1-0/Makefile.am
--- old-CUnit-2.1-0//Makefile.am 2010-03-13 13:49:43.594495287 +0100
+++ CUnit-2.1-0/Makefile.am 2010-03-13 14:04:14.626744275 +0100
@@ -10,6 +10,15 @@
SUBDIRS = ${COMPILE_DIRS}
+EXTRA_DIST = \
+ cunit.pc.in \
+ $(NULL)
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = \
+ cunit.pc \
+ $(NULL)
+
distdir=${PACKAGE}-${VERSION}-${RELEASE}
WD=`pwd`