gcc-6: use $(GNU_ARCH) in manifest
[unleashed-userland.git] / components / libpqxx / Makefile
blob0efca2b46966df958c5c9471de186d58d5baa6b0
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2013 Alexander Pyhalov. All rights reserved.
16 include ../../make-rules/shared-macros.mk
18 COMPONENT_NAME= libpqxx
20 COMPONENT_VERSION= 4.0.1
21 COMPONENT_REVISION= 1
22 COMPONENT_SUMMARY= C++ binding library for PostgreSQL
23 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
24 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
25 COMPONENT_ARCHIVE_HASH= \
26 sha256:097ceda2797761ce517faa5bee186c883df1c407cb2aada613a16773afeedc38
27 COMPONENT_ARCHIVE_URL= \
28 http://pqxx.org/download/software/libpqxx/$(COMPONENT_ARCHIVE)
29 COMPONENT_PROJECT_URL = http://pqxx.org/development/libpqxx/
31 # Don't depend on host default pg_config
32 PATH=$(PG_BINDIR.$(BITS)):/usr/sbin:/usr/bin
34 include ../../make-rules/prep.mk
35 include ../../make-rules/configure.mk
36 include ../../make-rules/ips.mk
38 COMPONENT_PREP_ACTION = \
39 (cd $(@D) ; \
40 automake;\
41 autoconf )
43 CONFIGURE_OPTIONS+= --disable-static
44 CONFIGURE_OPTIONS+= --enable-shared
46 COMPONENT_POST_INSTALL_ACTION= ( mkdir -p $(PROTO_DIR)/usr/share/doc/libpqxx-4.0 && \
47 cp -a $(SOURCE_DIR)/doc/html/* $(PROTO_DIR)/usr/share/doc/libpqxx-4.0 )
49 build: $(BUILD_32_and_64)
51 install: $(INSTALL_32_and_64)