lib: add pkgconfig support for libedi

edi-0.8
Andy Williams 7 years ago
parent 97e2192a2b
commit eacc00488a
  1. 7
      Makefile.am
  2. 3
      configure.ac
  3. 21
      pc/edi.pc
  4. 21
      pc/edi.pc.in

@ -31,6 +31,13 @@ MAINTAINERCLEANFILES = \
po/Rules-quot \
$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \
$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2
if HAVE_FREEBSD
pkgconfigdir = $(libdir)data/pkgconfig
else
pkgconfigdir = $(libdir)/pkgconfig
endif
pkgconfig_DATA = pc/edi.pc
SUBDIRS = data doc packaging po src

@ -75,6 +75,8 @@ EFL_WITH_BIN([eolian], [eolian-gen], [eolian_gen])
# Force the helper to try external eolian generators
AM_CONDITIONAL([HAVE_EOLIAN_GEN], [true])
AM_CONDITIONAL([HAVE_FREEBSD], [test "x${have_freebsd}" = "xyes"])
# Needs to be moved into a macro, and also, needs a way to automatically fetch
# from all the dependencies using the Requires.
DEPS_EOLIAN_FLAGS=`${PKG_CONFIG} --variable=eolian_flags eo evas edje efl elementary`
@ -157,6 +159,7 @@ src/bin/Makefile
src/lib/Makefile
src/tests/Makefile
doc/edi.1
pc/edi.pc
])
AC_OUTPUT

@ -0,0 +1,21 @@
prefix=/opt/efler
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
datarootdir=${prefix}/share
datadir=${datarootdir}/edi
pkgdatadir=${datarootdir}/edi
vmaj=0
vmin=4
vmic=0
themes=${pkgdatadir}/themes
eoincludedir=${datarootdir}/eolian/include
eolian_flags=-I${pc_sysrootdir}${eoincludedir}/edi-0
Name: edi
Description: Edi ide library
Requires.private: @requirements_pc_edi@
Version: 0.4.0
Libs: -L${libdir} -ledi @requirements_public_libs_edi@
Cflags: -I${includedir}/edi-0

@ -0,0 +1,21 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
datarootdir=@datarootdir@
datadir=@datadir@/edi
pkgdatadir=@datadir@/edi
vmaj=@VMAJ@
vmin=@VMIN@
vmic=@VMIC@
themes=${pkgdatadir}/themes
eoincludedir=@datadir@/eolian/include
eolian_flags=-I${pc_sysrootdir}${eoincludedir}/edi-@VMAJ@
Name: edi
Description: Edi ide library
Requires.private: @requirements_pc_edi@
Version: @VERSION@
Libs: -L${libdir} -ledi @requirements_public_libs_edi@
Cflags: -I${includedir}/edi-@VMAJ@
Loading…
Cancel
Save