summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/ptexenc/Makefile.am4
-rw-r--r--Build/source/texk/ptexenc/Makefile.in49
-rwxr-xr-xBuild/source/texk/ptexenc/configure3
-rw-r--r--Build/source/texk/ptexenc/configure.ac2
-rw-r--r--Build/source/texk/ptexenc/ptexenc.pc.in12
5 files changed, 58 insertions, 12 deletions
diff --git a/Build/source/texk/ptexenc/Makefile.am b/Build/source/texk/ptexenc/Makefile.am
index e8bb7d7b8df..d7be34975cb 100644
--- a/Build/source/texk/ptexenc/Makefile.am
+++ b/Build/source/texk/ptexenc/Makefile.am
@@ -34,6 +34,10 @@ nobase_include_HEADERS = \
ptexenc/ptexenc.h \
ptexenc/unicode.h
+pkgconfigdir = ${libdir}/pkgconfig
+
+pkgconfig_DATA = ptexenc.pc
+
EXTRA_DIST = COPYRIGHT ChangeLog.jp
# Rebuild
diff --git a/Build/source/texk/ptexenc/Makefile.in b/Build/source/texk/ptexenc/Makefile.in
index 6af55ce0eee..97f63f9c2f2 100644
--- a/Build/source/texk/ptexenc/Makefile.in
+++ b/Build/source/texk/ptexenc/Makefile.in
@@ -15,6 +15,7 @@
@SET_MAKE@
+
VPATH = @srcdir@
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
am__make_running_with_option = \
@@ -82,7 +83,7 @@ host_triplet = @host@
DIST_COMMON = $(srcdir)/../../am/rebuild.am $(srcdir)/Makefile.in \
$(srcdir)/Makefile.am $(top_srcdir)/configure \
$(am__configure_deps) $(srcdir)/c-auto.in \
- $(top_srcdir)/../../build-aux/depcomp \
+ $(srcdir)/ptexenc.pc.in $(top_srcdir)/../../build-aux/depcomp \
$(nobase_include_HEADERS) ChangeLog README \
../../build-aux/compile ../../build-aux/config.guess \
../../build-aux/config.sub ../../build-aux/depcomp \
@@ -113,7 +114,7 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/ptexenc/c-auto.h
-CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_FILES = ptexenc.pc
CONFIG_CLEAN_VPATH_FILES =
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
@@ -142,7 +143,8 @@ am__uninstall_files_from_dir = { \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
-am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
+am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" \
+ "$(DESTDIR)$(includedir)"
LTLIBRARIES = $(lib_LTLIBRARIES)
am__DEPENDENCIES_1 =
libptexenc_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
@@ -198,6 +200,7 @@ am__can_run_installinfo = \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
+DATA = $(pkgconfig_DATA)
HEADERS = $(nobase_include_HEADERS)
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
$(LISP)c-auto.in
@@ -382,6 +385,8 @@ nobase_include_HEADERS = \
ptexenc/ptexenc.h \
ptexenc/unicode.h
+pkgconfigdir = ${libdir}/pkgconfig
+pkgconfig_DATA = ptexenc.pc
EXTRA_DIST = COPYRIGHT ChangeLog.jp
# Rebuild
@@ -442,6 +447,8 @@ $(srcdir)/c-auto.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
distclean-hdr:
-rm -f ptexenc/c-auto.h ptexenc/stamp-h1
+ptexenc.pc: $(top_builddir)/config.status $(srcdir)/ptexenc.pc.in
+ cd $(top_builddir) && $(SHELL) ./config.status $@
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
@$(NORMAL_INSTALL)
@@ -552,6 +559,27 @@ clean-libtool:
distclean-libtool:
-rm -f libtool config.lt
+install-pkgconfigDATA: $(pkgconfig_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
+ done
+
+uninstall-pkgconfigDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
install-nobase_includeHEADERS: $(nobase_include_HEADERS)
@$(NORMAL_INSTALL)
@list='$(nobase_include_HEADERS)'; test -n "$(includedir)" || list=; \
@@ -801,9 +829,9 @@ distcleancheck: distclean
exit 1; } >&2
check-am: all-am
check: check-am
-all-am: Makefile $(LTLIBRARIES) $(HEADERS)
+all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS)
installdirs:
- for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
+ for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(includedir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
@@ -861,7 +889,7 @@ info: info-am
info-am:
-install-data-am: install-nobase_includeHEADERS
+install-data-am: install-nobase_includeHEADERS install-pkgconfigDATA
install-dvi: install-dvi-am
@@ -909,7 +937,8 @@ ps: ps-am
ps-am:
-uninstall-am: uninstall-libLTLIBRARIES uninstall-nobase_includeHEADERS
+uninstall-am: uninstall-libLTLIBRARIES uninstall-nobase_includeHEADERS \
+ uninstall-pkgconfigDATA
.MAKE: install-am install-strip
@@ -925,12 +954,12 @@ uninstall-am: uninstall-libLTLIBRARIES uninstall-nobase_includeHEADERS
install-html install-html-am install-info install-info-am \
install-libLTLIBRARIES install-man \
install-nobase_includeHEADERS install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
+ install-pkgconfigDATA install-ps install-ps-am install-strip \
+ installcheck installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES \
- uninstall-nobase_includeHEADERS
+ uninstall-nobase_includeHEADERS uninstall-pkgconfigDATA
$(libptexenc_la_OBJECTS): $(KPATHSEA_DEPEND)
diff --git a/Build/source/texk/ptexenc/configure b/Build/source/texk/ptexenc/configure
index 26eb3ae5cfc..e0e41f7f60f 100755
--- a/Build/source/texk/ptexenc/configure
+++ b/Build/source/texk/ptexenc/configure
@@ -14526,7 +14526,7 @@ ac_config_headers="$ac_config_headers ptexenc/c-auto.h:c-auto.in"
-ac_config_files="$ac_config_files Makefile"
+ac_config_files="$ac_config_files Makefile ptexenc.pc"
cat >confcache <<\_ACEOF
@@ -15542,6 +15542,7 @@ do
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
"ptexenc/c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS ptexenc/c-auto.h:c-auto.in" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "ptexenc.pc") CONFIG_FILES="$CONFIG_FILES ptexenc.pc" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
esac
diff --git a/Build/source/texk/ptexenc/configure.ac b/Build/source/texk/ptexenc/configure.ac
index cea7b00825b..fd9524bb5d3 100644
--- a/Build/source/texk/ptexenc/configure.ac
+++ b/Build/source/texk/ptexenc/configure.ac
@@ -50,6 +50,6 @@ AH_TOP([/* ptexenc/c-auto.h: defines for ptexenc, as determined by configure. */
#define PTEXENCVERSION "ptexenc version] ptexenc_version["])
AH_BOTTOM([#endif /* !PTEXENC_C_AUTO_H */])
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile ptexenc.pc])
AC_OUTPUT
diff --git a/Build/source/texk/ptexenc/ptexenc.pc.in b/Build/source/texk/ptexenc/ptexenc.pc.in
new file mode 100644
index 00000000000..3303ef65ef4
--- /dev/null
+++ b/Build/source/texk/ptexenc/ptexenc.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: ptexenc
+Description: Ptexenc library
+Version: @PTEXENCVERSION@
+Requires.private: kpathsea
+Libs: -L${libdir} -lptexenc
+Cflags: -I${includedir}
+