Alexander Pyhalov
2019-11-22 88061cd54f968c45771959ca087d25b937b3f8cd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright 2017 Alexander Pyhalov
#
 
BUILD_BITS=32_and_64
 
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME= pgtcl
COMPONENT_VERSION=     2.6.3
COMPONENT_SUMMARY=     A Tcl client library for PostgreSQL
COMPONENT_SRC=         Pgtcl-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=     $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH= \
  sha256:7950d2640dd206dd07ad36ea96363f3d436d3d2be3fec8993c11f363c55f0d22
COMPONENT_ARCHIVE_URL= \
  https://github.com/flightaware/Pgtcl/archive/v$(COMPONENT_VERSION).tar.gz
COMPONENT_PROJECT_URL = http://flightaware.github.io/Pgtcl/
COMPONENT_FMRI=    database/postgres/pgtcl
COMPONENT_CLASSIFICATION= Development/Databases
COMPONENT_LICENSE= BSD
COMPONENT_LICENSE_FILE= LICENSE
 
# Don't depend on host default pg_config
PATH=$(PG_BINDIR.$(BITS)):$(PATH.illumos)
 
TEST_TARGET=$(NO_TESTS)
include $(WS_MAKE_RULES)/common.mk
 
COMPONENT_PREP_ACTION += (cd $(@D) && autoreconf -fi)
 
CONFIGURE_OPTIONS +=    --enable-threads
CONFIGURE_OPTIONS.64 +=    --enable-64bit
 
CONFIGURE_OPTIONS.32 += --libdir=/usr/lib/tcl8.6/pgtcl
CONFIGURE_OPTIONS.64 += --libdir=/usr/lib/tcl8.6/pgtcl/$(MACH64)
 
CONFIGURE_OPTIONS.32    += --with-tcl="/usr/lib"
CONFIGURE_OPTIONS.64    += --with-tcl="/usr/lib/$(MACH64)"
 
COMPONENT_POST_INSTALL_ACTION= ( mkdir -p $(PROTOUSRSHAREDOCDIR)/pgtcl-$(COMPONENT_VERSION) && \
     cp -a $(SOURCE_DIR)/doc/html/* $(PROTOUSRSHAREDOCDIR)/pgtcl-$(COMPONENT_VERSION) )  
 
# Build dependencies
REQUIRED_PACKAGES += $(PG_DEVELOPER_PKG)
 
# Auto-generated dependencies
REQUIRED_PACKAGES += $(PG_LIBRARY_PKG)
REQUIRED_PACKAGES += database/sqlite-3
REQUIRED_PACKAGES += system/library