Browse Source

build-sys: add fdisk.pc

Signed-off-by: Karel Zak <kzak@redhat.com>
pull/135/head
Karel Zak 8 years ago
parent
commit
ed79557e1d
  1. 2
      Makefile.am
  2. 4
      configure.ac
  3. 2
      libfdisk/Makemodule.am
  4. 11
      libfdisk/fdisk.pc.in

2
Makefile.am

@ -125,6 +125,8 @@ edit_cmd = sed \
-e 's|@LIBMOUNT_MINOR_VERSION[@]|$(LIBMOUNT_MINOR_VERSION)|g' \
-e 's|@LIBMOUNT_PATCH_VERSION[@]|$(LIBMOUNT_PATCH_VERSION)|g' \
-e 's|@LIBSMARTCOLS_VERSION[@]|$(LIBSMARTCOLS_VERSION)|g' \
-e 's|@LIBFDISK_PC_REQUIRES[@]|$(LIBFDISK_PC_REQUIRES)|g' \
-e 's|@LIBFDISK_VERSION[@]|$(LIBFDISK_VERSION)|g' \
-e 's|@LIBBLKID_VERSION[@]|$(LIBBLKID_VERSION)|g'
CLEANFILES += $(PATHFILES)

4
configure.ac

@ -861,6 +861,10 @@ UL_REQUIRES_BUILD([libfdisk], [libuuid])
AM_CONDITIONAL([BUILD_LIBFDISK], [test "x$build_libfdisk" = xyes])
AM_CONDITIONAL([BUILD_LIBFDISK_TESTS], [test "x$build_libfdisk" = xyes -a "x$enable_static" = xyes])
AS_IF([test "x$build_libblkid" = xyes],
[LIBFDISK_PC_REQUIRES="uuid blkid"],[LIBFDISK_PC_REQUIRES="uuid"])
AC_SUBST([LIBFDISK_PC_REQUIRES])
AC_SUBST([LIBFDISK_VERSION])
AC_SUBST([LIBFDISK_VERSION_INFO])
AC_DEFINE_UNQUOTED([LIBFDISK_VERSION], ["$LIBFDISK_VERSION"], [libfdisk version string])

2
libfdisk/Makemodule.am

@ -2,6 +2,8 @@ if BUILD_LIBFDISK
include libfdisk/src/Makemodule.am
pkgconfig_DATA += libfdisk/fdisk.pc
PATHFILES += libfdisk/fdisk.pc
EXTRA_DIST += libfdisk/COPYING
endif # BUILD_LIBFDISK

11
libfdisk/fdisk.pc.in

@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@usrlib_execdir@
includedir=@includedir@
Name: fdisk
Description: fdisk library
Version: @LIBFDISK_VERSION@
Requires.private: @LIBFDISK_PC_REQUIRES@
Cflags: -I${includedir}/libfdisk
Libs: -L${libdir} -lfdisk
Loading…
Cancel
Save