Mercurial > mxe-octave
comparison src/postgresql.mk @ 3012:100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
BUILD_TOOLS_PREFIX variables in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 10:31:04 -0400 |
parents | dabfd7db980c |
children | bcc26ffe9a0f |
comparison
equal
deleted
inserted
replaced
3011:75e142c0004b | 3012:100e618349f7 |
---|---|
30 cd '$(1)' && autoconf | 30 cd '$(1)' && autoconf |
31 cp -Rp '$(1)' '$(1).native' | 31 cp -Rp '$(1)' '$(1).native' |
32 # Since we build only client libary, use bogus tzdata to satisfy configure. | 32 # Since we build only client libary, use bogus tzdata to satisfy configure. |
33 cd '$(1)' && ./configure \ | 33 cd '$(1)' && ./configure \ |
34 $($(PKG)_CONFIGURE_FLAGS_OPTION) \ | 34 $($(PKG)_CONFIGURE_FLAGS_OPTION) \ |
35 --prefix='$(PREFIX)/$(TARGET)' \ | 35 --prefix='$(HOST_PREFIX)' \ |
36 --host='$(TARGET)' \ | 36 --host='$(TARGET)' \ |
37 --build="`config.guess`" \ | 37 --build="`config.guess`" \ |
38 --enable-shared \ | 38 --enable-shared \ |
39 --disable-rpath \ | 39 --disable-rpath \ |
40 --without-tcl \ | 40 --without-tcl \ |
54 --with-system-tzdata=/dev/null \ | 54 --with-system-tzdata=/dev/null \ |
55 LIBS="$($(PKG)_LIBS) `'$(TARGET)-pkg-config' openssl --libs`" | 55 LIBS="$($(PKG)_LIBS) `'$(TARGET)-pkg-config' openssl --libs`" |
56 $(MAKE) -C '$(1)'/src/interfaces/libpq -j '$(JOBS)' install haslibarule= | 56 $(MAKE) -C '$(1)'/src/interfaces/libpq -j '$(JOBS)' install haslibarule= |
57 $(MAKE) -C '$(1)'/src/port -j '$(JOBS)' haslibarule= | 57 $(MAKE) -C '$(1)'/src/port -j '$(JOBS)' haslibarule= |
58 $(MAKE) -C '$(1)'/src/bin/psql -j '$(JOBS)' install haslibarule= | 58 $(MAKE) -C '$(1)'/src/bin/psql -j '$(JOBS)' install haslibarule= |
59 $(INSTALL) -m644 '$(1)/src/include/pg_config.h' '$(PREFIX)/$(TARGET)/include/' | 59 $(INSTALL) -m644 '$(1)/src/include/pg_config.h' '$(HOST_PREFIX)/include/' |
60 $(INSTALL) -m644 '$(1)/src/include/postgres_ext.h' '$(PREFIX)/$(TARGET)/include/' | 60 $(INSTALL) -m644 '$(1)/src/include/postgres_ext.h' '$(HOST_PREFIX)/include/' |
61 # Build a native pg_config. | 61 # Build a native pg_config. |
62 $(SED) -i 's,-DVAL_,-D_DISABLED_VAL_,g' '$(1).native'/src/bin/pg_config/Makefile | 62 $(SED) -i 's,-DVAL_,-D_DISABLED_VAL_,g' '$(1).native'/src/bin/pg_config/Makefile |
63 cd '$(1).native' && ./configure \ | 63 cd '$(1).native' && ./configure \ |
64 --prefix='$(PREFIX)/$(TARGET)' \ | 64 --prefix='$(HOST_PREFIX)' \ |
65 $(ENABLE_SHARED_OR_STATIC) \ | 65 $(ENABLE_SHARED_OR_STATIC) \ |
66 --disable-rpath \ | 66 --disable-rpath \ |
67 --without-tcl \ | 67 --without-tcl \ |
68 --without-perl \ | 68 --without-perl \ |
69 --without-python \ | 69 --without-python \ |
79 --without-libxslt \ | 79 --without-libxslt \ |
80 --without-zlib \ | 80 --without-zlib \ |
81 --with-system-tzdata=/dev/null | 81 --with-system-tzdata=/dev/null |
82 $(MAKE) -C '$(1).native'/src/port -j '$(JOBS)' | 82 $(MAKE) -C '$(1).native'/src/port -j '$(JOBS)' |
83 $(MAKE) -C '$(1).native'/src/bin/pg_config -j '$(JOBS)' install | 83 $(MAKE) -C '$(1).native'/src/bin/pg_config -j '$(JOBS)' install |
84 $(LN_SF) '$(PREFIX)/$(TARGET)/bin/pg_config' '$(PREFIX)/bin/$(TARGET)-pg_config' | 84 $(LN_SF) '$(HOST_PREFIX)/bin/pg_config' '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-pg_config' |
85 endef | 85 endef |