Obsolete raptor 1.4 API
[oi-userland.git] / components / tcl / pgtcl / Makefile
blobfba4c8fbef4503f70205ee4672b57a7a674d7179
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 2017 Alexander Pyhalov
16 include ../../../make-rules/shared-macros.mk
18 COMPONENT_NAME= pgtcl
19 COMPONENT_VERSION= 3.1.0
20 COMPONENT_SUMMARY= A Tcl client library for PostgreSQL
21 COMPONENT_SRC= Pgtcl-$(COMPONENT_VERSION)
22 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
23 COMPONENT_ARCHIVE_HASH= sha256:fded4aba99b84f4bc41abbaef8d7d0ba1ba6812e56a80689f98d22bd3ab98a23
24 COMPONENT_ARCHIVE_URL= https://github.com/flightaware/Pgtcl/archive/v$(COMPONENT_VERSION).tar.gz
25 COMPONENT_PROJECT_URL= https://flightaware.github.io/Pgtcl/
26 COMPONENT_FMRI= database/postgres/pgtcl
27 COMPONENT_CLASSIFICATION= Development/Databases
28 COMPONENT_LICENSE= BSD
29 COMPONENT_LICENSE_FILE= LICENSE
31 # Don't depend on host default pg_config
32 PATH=$(PG_BINDIR.$(BITS)):$(PATH.illumos)
34 TEST_TARGET= $(NO_TESTS)
35 include $(WS_MAKE_RULES)/common.mk
37 COMPONENT_PREP_ACTION += ( cd $(@D) && autoreconf -fi )
39 CONFIGURE_OPTIONS += --enable-threads
40 CONFIGURE_OPTIONS += --enable-64bit
41 CONFIGURE_OPTIONS += --libdir=/usr/lib/tcl8.6/pgtcl/$(MACH64)
42 CONFIGURE_OPTIONS += --with-tcl="/usr/lib/$(MACH64)"
43 ifeq ($(strip $(MACH)),sparc)
44 CONFIGURE_OPTIONS += --enable-64bit-vis
45 endif
47 COMPONENT_POST_INSTALL_ACTION= ( mkdir -p $(PROTOUSRSHAREDOCDIR)/pgtcl-$(COMPONENT_VERSION) && \
48 cp -a $(SOURCE_DIR)/doc/html/* $(PROTOUSRSHAREDOCDIR)/pgtcl-$(COMPONENT_VERSION) )
50 # Build dependencies
51 REQUIRED_PACKAGES += $(PG_DEVELOPER_PKG)
53 # Auto-generated dependencies
54 REQUIRED_PACKAGES += $(PG_LIBRARY_PKG)
55 REQUIRED_PACKAGES += database/sqlite-3
56 REQUIRED_PACKAGES += system/library