diff --git a/Makefile.am b/Makefile.am index 218af50..ced212e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/configure.ac b/configure.ac index b729cbf..2acf864 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/pc/edi.pc b/pc/edi.pc new file mode 100644 index 0000000..4b4b812 --- /dev/null +++ b/pc/edi.pc @@ -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 + diff --git a/pc/edi.pc.in b/pc/edi.pc.in new file mode 100644 index 0000000..7cc990a --- /dev/null +++ b/pc/edi.pc.in @@ -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@ +