@@ -30,25 +30,22 @@ DATA_built = $(RELEASE_SQL) \
3030
3131DOCS = README.pg_sphere COPYRIGHT.pg_sphere
3232REGRESS = init tables points euler circle line ellipse poly path box index \
33- contains_ops contains_ops_compat bounding_box_gist gnomo
33+ contains_ops contains_ops_compat bounding_box_gist gnomo epochprop
3434
3535ifneq ($(USE_HEALPIX ) ,0)
3636REGRESS += healpix moc mocautocast
3737endif
3838
39- REGRESS += epochprop
40-
4139REGRESS_9_5 = index_9.5 # experimental for spoint3
4240
4341TESTS = init_test tables points euler circle line ellipse poly path box \
44- index contains_ops contains_ops_compat bounding_box_gist gnomo
42+ index contains_ops contains_ops_compat bounding_box_gist gnomo \
43+ epochprop
4544
4645ifneq ($(USE_HEALPIX ) ,0)
4746TESTS += healpix moc mocautocast
4847endif
4948
50- TESTS += epochprop
51-
5249PG_CFLAGS += -DPGSPHERE_VERSION=$(PGSPHERE_VERSION )
5350PG_CPPFLAGS += -DPGSPHERE_VERSION=$(PGSPHERE_VERSION )
5451
@@ -85,7 +82,7 @@ PGS_SQL_9_5 = pgs_9.5.sql # experimental for spoint3
8582
8683ifdef USE_PGXS
8784 ifndef PG_CONFIG
88- PG_CONFIG : = pg_config
85+ PG_CONFIG = pg_config
8986 endif
9087 PGXS := $(shell $(PG_CONFIG ) --pgxs)
9188 include $(PGXS )
9895endif
9996
10097ifneq ($(USE_HEALPIX ) ,0)
101- # compiler settings
102- PKG_CONFIG = pkg-config
98+ # compiler settings for linking with libhealpix_cxx
99+ PKG_CONFIG ? = pkg-config
103100override CPPFLAGS += $(shell $(PKG_CONFIG ) --cflags healpix_cxx)
104101SHLIB_LINK += $(shell $(PKG_CONFIG ) --libs healpix_cxx)
105102LINK.shared = g++ -shared
@@ -113,7 +110,6 @@ healpix_bare/healpix_bare.o : healpix_bare/healpix_bare.c
113110pg_version := $(word 2,$(shell $(PG_CONFIG ) --version) )
114111pg_version_9_5_plus = $(if $(filter-out 9.1% 9.2% 9.3% 9.4% ,$(pg_version ) ) ,y,n)
115112has_explain_summary = $(if $(filter-out 9.% ,$(pg_version ) ) ,y,n)
116- #
117113
118114# # the use of spoint 3 is too experimental and preliminary:
119115# ifeq ($(pg_version_9_5_plus),y)
@@ -149,14 +145,14 @@ $(RELEASE_SQL): $(addsuffix .in, $(RELEASE_SQL) $(PGS_SQL))
149145
150146# for "create extension from unpacked*":
151147
152- UPGRADE_UNP_COMMON = pgs_types.sql pgs_point.sql pgs_euler.sql pgs_circle.sql \
148+ UPGRADE_UNP_COMMON = pgs_types.sql pgs_point.sql pgs_euler.sql pgs_circle.sql \
153149 pgs_line.sql pgs_ellipse.sql pgs_polygon.sql pgs_path.sql \
154150 pgs_box.sql pgs_contains_ops_compat.sql pgs_gist.sql \
155151 pgs_gist_contains_ops.sql contains-ops-fixes-1.sql
156152
157153AUGMENT_UNP_COMMON = upgrade_scripts/pgs_pre111.sql pgs_contains_ops.sql \
158154 gnomo.sql
159- # for vanilla 1.1.1 users
155+ # for vanilla 1.1.1 users:
160156AUGMENT_UNP_111 = $(AUGMENT_UNP_COMMON ) pgs_gist_pointkey.sql
161157
162158# for 1.1.2+ users: 'from unpacked_1.1.2plus'
0 commit comments