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
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 2024 Andreas Wacknitz
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= mysql_fdw
20 COMPONENT_VERSION
= 2.9.2
21 ARCHIVE_VERSION
= REL-2_9_2
22 COMPONENT_SUMMARY
= MySQL Foreign Data Wrapper for PostgreSQL
$(PG_VERSION
)
23 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(ARCHIVE_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-$(HUMAN_VERSION
).
tar.gz
25 COMPONENT_PROJECT_URL
= https
://github.com
/EnterpriseDB
/$(COMPONENT_NAME
)
26 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/archive
/refs
/tags/$(ARCHIVE_VERSION
).
tar.gz
27 COMPONENT_ARCHIVE_HASH
= sha256
:dae56fc82801d68d97e7cecf48dfade9c6ba7cadc3439227c2cf28bcb142e820
28 COMPONENT_FMRI
= database
/postgres-
$(PG_VERNUM
)/mysql_fdw
29 COMPONENT_CLASSIFICATION
= System
/Databases
30 COMPONENT_LICENSE
= MIT
31 COMPONENT_LICENSE_FILE
= LICENSE
35 # Don't depend on host default pg_config
36 PATH
= $(PG_HOME
)/bin
:$(MYSQL_BINDIR.
$(BITS
)):/usr
/sbin
:/usr
/bin
38 TEST_TARGET
= $(NO_TESTS
)
39 include $(WS_MAKE_RULES
)/common.mk
41 CFLAGS
+= -I
/usr
/mysql
/include
43 COMPONENT_BUILD_ENV
+= USE_PGXS
=1
44 COMPONENT_BUILD_ARGS
+= CFLAGS
="$(CFLAGS)"
45 COMPONENT_BUILD_ARGS
+= MYSQL_LIBNAME
=$(MYSQL_LIBDIR
)/libmysqlclient.so
46 COMPONENT_INSTALL_ENV
+= USE_PGXS
=1
48 # Manually added build dependencies
49 REQUIRED_PACKAGES
+= $(PG_DEVELOPER_PKG
)
50 REQUIRED_PACKAGES
+= $(MYSQL_LIBRARY_PKG
)
52 # Auto-generated dependencies
53 REQUIRED_PACKAGES
+= system
/library