Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions cross/libgdal/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
PKG_NAME = gdal
PKG_VERS = 3.8.3
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/OSGeo/gdal/releases/download/v$(PKG_VERS)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/libproj

HOMEPAGE = https://gdal.org/

COMMENT = GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats
LICENSE = LGPL

GNU_CONFIGURE = 1

include ../../mk/spksrc.cross-cmake.mk
3 changes: 3 additions & 0 deletions cross/libgdal/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gdal-3.8.3.tar.gz SHA1 61a086dc180985c35c19a853f82c47c476f65149
gdal-3.8.3.tar.gz SHA256 f7a30387a8239e9da26200f787a02136df2ee6473e86b36d05ad682761a049ea
gdal-3.8.3.tar.gz MD5 011c1052acffb5f1ac59a9c1f819bbd5
18 changes: 18 additions & 0 deletions cross/libgeos/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
PKG_NAME = geos
PKG_VERS = 3.12.1
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/libgeos/geos/archive/refs/tags
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS =

HOMEPAGE = https://libgeos.org/

COMMENT = GEOS is a C/C++ library for computational geometry with a focus on algorithms used in geographic information systems (GIS) software. It implements the OGC Simple Features geometry model and provides all the spatial functions in that standard as well as many others. GEOS is a core dependency of PostGIS, QGIS, GDAL, Shapely and many others.
LICENSE = LGPL

GNU_CONFIGURE = 1

include ../../mk/spksrc.cross-cmake.mk

3 changes: 3 additions & 0 deletions cross/libgeos/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
3.12.1.tar.gz SHA1 0dcd01c7cc5e85c65e48e3dba98dad10e22e9dff
3.12.1.tar.gz SHA256 f6e2f3aaa417410d3fa4c78a9c5ef60d46097ef7ad0aee3bbbb77327350e1e01
3.12.1.tar.gz MD5 33227c4955fe05b42abc7e893f430775
17 changes: 17 additions & 0 deletions cross/libproj/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
PKG_NAME = proj
PKG_VERS = 9.3.1
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/OSGeo/PROJ/releases/download/$(PKG_VERS)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/sqlite cross/libtiff cross/curl

HOMEPAGE = https://proj.org/

COMMENT = PROJ - Cartographic Projections and Coordinate Transformations Library
LICENSE = LGPL

GNU_CONFIGURE = 1

include ../../mk/spksrc.cross-cmake.mk
3 changes: 3 additions & 0 deletions cross/libproj/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
proj-9.3.1.tar.gz SHA1 56451b2e2b326d390a8398350260bdd0678c7463
proj-9.3.1.tar.gz SHA256 b0f919cb9e1f42f803a3e616c2b63a78e4d81ecfaed80978d570d3a5e29d10bc
proj-9.3.1.tar.gz MD5 b5c3f36fdca3bc425aca09d77c4ec25a
29 changes: 29 additions & 0 deletions cross/postgis/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
PKG_NAME = postgis
PKG_VERS = 3.4.2
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://download.osgeo.org/postgis/source
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)


DEPENDS = cross/libproj cross/libgdal cross/libgeos cross/json-c cross/postgresql

HOMEPAGE = https://postgis.net/

COMMENT = PROJ - PostGIS extends the capabilities of the PostgreSQL relational database by adding support for storing, indexing, and querying geospatial data
LICENSE = LGPL


# Use our own configure to define with-pgconfig
CONFIGURE_TARGET = postgis_configure

CONFIGURE_ARGS = --with-pgconfig=$(INSTALL_DIR)/$(INSTALL_PREFIX)/bin/pg_config

#GNU_CONFIGURE = 1

include ../../mk/spksrc.cross-cmake.mk

.PHONY: postgis_configure
postgis_configure:
cd $(WORK_DIR)/$(PKG_DIR) && bash ./configure $(CONFIGURE_ARGS)

3 changes: 3 additions & 0 deletions cross/postgis/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
postgis-3.4.2.tar.gz SHA1 a408c6172bcbbb5eda75f333727a1b7d71fe408c
postgis-3.4.2.tar.gz SHA256 c8c874c00ba4a984a87030af6bf9544821502060ad473d5c96f1d4d0835c5892
postgis-3.4.2.tar.gz MD5 632abda8b4267af437db6cde1bc9d9dc
27 changes: 27 additions & 0 deletions cross/postgresql/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
PKG_NAME = postgresql
PKG_VERS = 13.2
PKG_EXT = tar.bz2
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://ftp.postgresql.org/pub/source/v$(PKG_VERS)/
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/zlib cross/openssl cross/libxml2 cross/libxslt cross/readline

HOMEPAGE = https://www.postgresql.org
COMMENT = PostgreSQL is a powerful, open source object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance

LICENSE = PostgreSQL Licence

GNU_CONFIGURE = 1

CONFIGURE_ARGS = --with-template=linux --with-openssl
CONFIGURE_ARGS += --with-system-tzdata=/usr/share/zoneinfo

# If you want to invoke the build from another makefile rather than manually,
# you must unset MAKELEVEL or set it to zero.
# see: INSTALL file
ENV += MAKELEVEL=

include ../../mk/spksrc.cross-cc.mk


127 changes: 127 additions & 0 deletions cross/postgresql/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
bin:bin/clusterdb
bin:bin/createdb
bin:bin/createuser
bin:bin/dropdb
bin:bin/dropuser
bin:bin/ecpg
bin:bin/initdb
bin:bin/pg_archivecleanup
bin:bin/pg_basebackup
bin:bin/pgbench
bin:bin/pg_checksums
bin:bin/pg_config
bin:bin/pg_controldata
bin:bin/pg_ctl
bin:bin/pg_dump
bin:bin/pg_dumpall
bin:bin/pg_isready
bin:bin/pg_receivewal
bin:bin/pg_recvlogical
bin:bin/pg_resetwal
bin:bin/pg_restore
bin:bin/pg_rewind
bin:bin/pg_test_fsync
bin:bin/pg_test_timing
bin:bin/pg_upgrade
bin:bin/pg_verifybackup
bin:bin/pg_waldump
bin:bin/postgres
bin:bin/postmaster
bin:bin/psql
bin:bin/reindexdb
bin:bin/vacuumdb
lib:lib/cyrillic_and_mic.so
lib:lib/dict_snowball.so
lib:lib/euc2004_sjis2004.so
lib:lib/euc_cn_and_mic.so
lib:lib/euc_jp_and_sjis.so
lib:lib/euc_kr_and_mic.so
lib:lib/euc_tw_and_big5.so
lib:lib/latin2_and_win1250.so
lib:lib/latin_and_mic.so
lib:lib/libecpg_compat.so
lib:lib/libecpg_compat.so.3
lib:lib/libecpg_compat.so.3.13
lib:lib/libecpg.so
lib:lib/libecpg.so.6
lib:lib/libecpg.so.6.13
lib:lib/libpgcommon.a
lib:lib/libpgcommon_shlib.a
lib:lib/libpgfeutils.a
lib:lib/libpgport.a
lib:lib/libpgport_shlib.a
lib:lib/libpgtypes.so
lib:lib/libpgtypes.so.3
lib:lib/libpgtypes.so.3.13
lib:lib/libpq.so
lib:lib/libpq.so.5
lib:lib/libpq.so.5.13
lib:lib/libpqwalreceiver.so
lib:lib/pgoutput.so
lib:lib/plpgsql.so
lib:lib/utf8_and_big5.so
lib:lib/utf8_and_cyrillic.so
lib:lib/utf8_and_euc2004.so
lib:lib/utf8_and_euc_cn.so
lib:lib/utf8_and_euc_jp.so
lib:lib/utf8_and_euc_kr.so
lib:lib/utf8_and_euc_tw.so
lib:lib/utf8_and_gb18030.so
lib:lib/utf8_and_gbk.so
lib:lib/utf8_and_iso8859_1.so
lib:lib/utf8_and_iso8859.so
lib:lib/utf8_and_johab.so
lib:lib/utf8_and_sjis2004.so
lib:lib/utf8_and_sjis.so
lib:lib/utf8_and_uhc.so
lib:lib/utf8_and_win.so
rsc:share/errcodes.txt
rsc:share/extension/plpgsql--1.0.sql
rsc:share/extension/plpgsql.control
rsc:share/information_schema.sql
rsc:share/pg_hba.conf.sample
rsc:share/pg_ident.conf.sample
rsc:share/pg_service.conf.sample
rsc:share/postgres.bki
rsc:share/postgresql.conf.sample
rsc:share/psqlrc.sample
rsc:share/snowball_create.sql
rsc:share/sql_features.txt
rsc:share/system_views.sql
rsc:share/timezonesets/Africa.txt
rsc:share/timezonesets/America.txt
rsc:share/timezonesets/Antarctica.txt
rsc:share/timezonesets/Asia.txt
rsc:share/timezonesets/Atlantic.txt
rsc:share/timezonesets/Australia
rsc:share/timezonesets/Australia.txt
rsc:share/timezonesets/Default
rsc:share/timezonesets/Etc.txt
rsc:share/timezonesets/Europe.txt
rsc:share/timezonesets/India
rsc:share/timezonesets/Indian.txt
rsc:share/timezonesets/Pacific.txt
rsc:share/tsearch_data/danish.stop
rsc:share/tsearch_data/dutch.stop
rsc:share/tsearch_data/english.stop
rsc:share/tsearch_data/finnish.stop
rsc:share/tsearch_data/french.stop
rsc:share/tsearch_data/german.stop
rsc:share/tsearch_data/hungarian.stop
rsc:share/tsearch_data/hunspell_sample.affix
rsc:share/tsearch_data/hunspell_sample_long.affix
rsc:share/tsearch_data/hunspell_sample_long.dict
rsc:share/tsearch_data/hunspell_sample_num.affix
rsc:share/tsearch_data/hunspell_sample_num.dict
rsc:share/tsearch_data/ispell_sample.affix
rsc:share/tsearch_data/ispell_sample.dict
rsc:share/tsearch_data/italian.stop
rsc:share/tsearch_data/nepali.stop
rsc:share/tsearch_data/norwegian.stop
rsc:share/tsearch_data/portuguese.stop
rsc:share/tsearch_data/russian.stop
rsc:share/tsearch_data/spanish.stop
rsc:share/tsearch_data/swedish.stop
rsc:share/tsearch_data/synonym_sample.syn
rsc:share/tsearch_data/thesaurus_sample.ths
rsc:share/tsearch_data/turkish.stop
3 changes: 3 additions & 0 deletions cross/postgresql/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
postgresql-13.2.tar.bz2 SHA1 fc40c06ee7f2fd5f4ee5af88c8502f06a44c8698
postgresql-13.2.tar.bz2 SHA256 5fd7fcd08db86f5b2aed28fcfaf9ae0aca8e9428561ac547764c2a2b0f41adfc
postgresql-13.2.tar.bz2 MD5 c7b352c2774d6c3e03bd2558c03da876
13 changes: 13 additions & 0 deletions cross/postgresql/patches/001-readline-with-ncursesw.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# look for lib ncursesw too
# as readline is built with ncursesw and not ncurses
--- configure.org 2020-08-10 21:17:40.000000000 +0000
+++ configure 2020-11-16 18:58:33.389739604 +0000
@@ -11464,7 +11464,7 @@
else READLINE_ORDER="-ledit -lreadline"
fi
for pgac_rllib in $READLINE_ORDER ; do
- for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
+ for pgac_lib in "" " -ltermcap" " -lncurses" " -lncursesw" " -lcurses" ; do
LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */