diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-05-15 21:40:58 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-05-15 21:40:58 +0200 |
commit | 88dc317d5510827a551697805c5d167d3ecb0975 (patch) | |
tree | 844617488fd1dc07aaccac5f680cb73a66622939 /package/postgresql | |
parent | dff2d49e4342587e3d4c2f578eacfdc0e4089cca (diff) | |
parent | 0a1c8865d1e019c19639108b2ae1cf53eb863f31 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/postgresql')
-rw-r--r-- | package/postgresql/Makefile | 5 | ||||
-rw-r--r-- | package/postgresql/files/pg_config | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/package/postgresql/Makefile b/package/postgresql/Makefile index b28d4e85e..f60f7d8a7 100644 --- a/package/postgresql/Makefile +++ b/package/postgresql/Makefile @@ -36,4 +36,9 @@ libpq-install: $(INSTALL_DIR) $(IDIR_LIBPQ)/usr/lib $(CP) $(WRKINST)/usr/lib/libpq.so* $(IDIR_LIBPQ)/usr/lib +post-install: + PATH='$(HOST_PATH)' sed -e "s#@@STAGING_TARGET_DIR@@#$(STAGING_TARGET_DIR)#" \ + ./files/pg_config > $(STAGING_HOST_DIR)/usr/bin/pg_config + -rm $(STAGING_TARGET_DIR)/usr/bin/pg_config + include $(ADK_TOPDIR)/mk/pkg-bottom.mk diff --git a/package/postgresql/files/pg_config b/package/postgresql/files/pg_config new file mode 100644 index 000000000..0d82c24a1 --- /dev/null +++ b/package/postgresql/files/pg_config @@ -0,0 +1,19 @@ +#!/bin/sh + +# +# Minimal pg_config implementation as replacement for the native pg_config application +# Only implements --includedir and --libdir +# + +prefix=@@STAGING_TARGET_DIR@@/usr + +case "$1" in + --includedir) + echo "$prefix/include" + ;; + --libdir) + echo "$prefix/lib" + ;; + *) + echo "Usage: $0 {--includedir|--libdir}" +esac |