Skip to content

Commit

Permalink
*/*: sync with upstream
Browse files Browse the repository at this point in the history
Taken from: FreeBSD
  • Loading branch information
fichtner committed Jun 6, 2016
1 parent 29e0ea6 commit dabf37d
Show file tree
Hide file tree
Showing 134 changed files with 8,836 additions and 2,791 deletions.
4 changes: 4 additions & 0 deletions archivers/gtar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,8 @@ STATIC_CONFIGURE_ENV= SHLIBEXT=""
STATIC_VARS= STATIC_ARGS=build
STATIC_VARS_OFF= STATIC_ARGS=lib

# do not rebuild tar.info
post-patch:
touch -r ${WRKSRC}/doc/stamp-vti ${WRKSRC}/configure

.include <bsd.port.mk>
5 changes: 3 additions & 2 deletions chinese/eric6/distinfo
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
SHA256 (eric6-i18n-zh_CN-6.1.5.tar.gz) = 276908f951aadef081e03c7744f937492232d45e31c41d35467db9e1128df0ae
SIZE (eric6-i18n-zh_CN-6.1.5.tar.gz) = 557918
TIMESTAMP = 1465137757
SHA256 (eric6-i18n-zh_CN-6.1.6.tar.gz) = 4c1ada93053e3395d98fdb59dd8fa5a5cb65048f5a7fa331998f096ad693fc1b
SIZE (eric6-i18n-zh_CN-6.1.6.tar.gz) = 557933
1 change: 1 addition & 0 deletions converters/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
SUBDIR += rcctools
SUBDIR += recode
SUBDIR += ruby-dump.rb
SUBDIR += rubygem-base32
SUBDIR += rubygem-bsdconv
SUBDIR += shftool
SUBDIR += showkey
Expand Down
2 changes: 1 addition & 1 deletion converters/R-cran-jsonlite/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# $FreeBSD$

PORTNAME= jsonlite
PORTVERSION= 0.9.20
PORTVERSION= 0.9.21
CATEGORIES= converters
DISTNAME= ${PORTNAME}_${PORTVERSION}

Expand Down
5 changes: 3 additions & 2 deletions converters/R-cran-jsonlite/distinfo
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
SHA256 (jsonlite_0.9.20.tar.gz) = 568043e8c62f9bc44cd4da763d9ee6b464c198b8f89e492090df07d45c7c6221
SIZE (jsonlite_0.9.20.tar.gz) = 1057057
TIMESTAMP = 1465155284
SHA256 (jsonlite_0.9.21.tar.gz) = 079349342ea6eb92bd5fa8f6a7c08d9e3652c3d41010b64afbc3297671eb3791
SIZE (jsonlite_0.9.21.tar.gz) = 1057400
16 changes: 16 additions & 0 deletions converters/rubygem-base32/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Created by: Torsten Zuehlsdorff <[email protected]>
# $FreeBSD$

PORTNAME= base32
PORTVERSION= 0.3.2
CATEGORIES= converters rubygems
MASTER_SITES= RG

MAINTAINER= [email protected]
COMMENT= Ruby extension for base32 encoding and decoding

NO_ARCH= yes
USE_RUBY= yes
USES= gem

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions converters/rubygem-base32/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1464340544
SHA256 (rubygem/base32-0.3.2.gem) = 532e9b19c5dd1fce281df67fc93a803ebd5d26426a93f6dda6612769bc46fe2c
SIZE (rubygem/base32-0.3.2.gem) = 8192
3 changes: 3 additions & 0 deletions converters/rubygem-base32/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Ruby extension for base32 encoding and decoding

WWW: https://rubygems.org/gems/base32/
2 changes: 2 additions & 0 deletions databases/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@
SUBDIR += postgis-jdbc
SUBDIR += postgis20
SUBDIR += postgis21
SUBDIR += postgis22
SUBDIR += postgresql-jdbc
SUBDIR += postgresql-libpgeasy
SUBDIR += postgresql-libpqxx
Expand Down Expand Up @@ -951,6 +952,7 @@
SUBDIR += sqliteman
SUBDIR += sqlitemanager
SUBDIR += sqliteodbc
SUBDIR += sqliteodbc-sqlite2
SUBDIR += sqlitestudio
SUBDIR += sqlrelay
SUBDIR += sqsh
Expand Down
2 changes: 1 addition & 1 deletion databases/postgis20/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ LIB_DEPENDS= libgeos.so:graphics/geos \
libjson-c.so:devel/json-c \
libproj.so:graphics/proj

CONFLICTS_INSTALL= postgis-1.* postgis-2.1.*
CONFLICTS_INSTALL= postgis-2.1.* postgis22-*

OPTIONS_DEFINE= LOADERGUI NLS RASTER TOPOLOGY
OPTIONS_DEFAULT=TOPOLOGY
Expand Down
2 changes: 1 addition & 1 deletion databases/postgis21/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ LIB_DEPENDS= libproj.so:graphics/proj \
libjson-c.so:devel/json-c
RUN_DEPENDS= postmaster:databases/postgresql${PGSQL_VER_NODOT}-server

CONFLICTS= postgis-1.* postgis-2.0.*
CONFLICTS= postgis20-2.0.* postgis22-*

GNU_CONFIGURE= yes
CONFIGURE_ARGS= ${ICONV_CONFIGURE_BASE}
Expand Down
104 changes: 104 additions & 0 deletions databases/postgis22/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# $FreeBSD$

PORTNAME= postgis
PORTVERSION= 2.2.2
CATEGORIES= databases geography
MASTER_SITES= http://download.osgeo.org/postgis/source/
PKGNAMESUFFIX= 22

MAINTAINER= [email protected]
COMMENT= Geographic objects support for PostgreSQL databases

LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

LIB_DEPENDS= libproj.so:graphics/proj \
libgeos.so:graphics/geos \
libjson-c.so:devel/json-c
RUN_DEPENDS= postmaster:databases/postgresql${PGSQL_VER_NODOT}-server

CONFLICTS= postgis20-2.0.* postgis-2.1.*

USES= gettext gmake iconv:wchar_t libtool:keepla perl5 pgsql pkgconfig shebangfix
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ${ICONV_CONFIGURE_BASE}
SHEBANG_FILES= extensions/address_standardizer/*.pl raster/test/regress/*.pl \
raster/test/regress/loader/*.pl regress/run_test.pl \
utils/postgis_restore.pl.in utils/*.pl
USE_GNOME= libxml2
USE_LDCONFIG= yes
USE_PERL5= build

OPTIONS_DEFINE= LOADERGUI RASTER TOPOLOGY SFCGAL ADDRSTD
OPTIONS_DEFAULT= TOPOLOGY ADDRSTD
NO_OPTIONS_SORT= yes
OPTIONS_SUB= yes

PLIST_SUB+= PORTVERSION=${PORTVERSION}

LOADERGUI_DESC= Enable shp2pgsql-gui
RASTER_DESC= Raster support
TOPOLOGY_DESC= Topology support
SFCGAL_DESC= Enable sfcgal
ADDRSTD_DESC= Enable address standardizer

LOADERGUI_CONFIGURE_WITH= gui
LOADERGUI_USE= GNOME=gtk20
RASTER_USES= alias
RASTER_CONFIGURE_WITH= raster
RASTER_LIB_DEPENDS= libgdal.so:graphics/gdal
RASTER_CONFIGURE_ON= --with-gdalconfig=${LOCALBASE}/bin/gdal-config
TOPOLOGY_CONFIGURE_WITH= topology
SFCGAL_LIB_DEPENDS= libSFCGAL.so:databases/sfcgal
SFCGAL_CONFIGURE_ON= --with-sfcgal=${LOCALBASE}/bin/sfcgal-config
SFCGAL_CONFIGURE_OFF= --without-sfcgal
SFCGAL_IMPLIES= RASTER
ADDRSTD_CONFIGURE_WITH= address-standardizer
ADDRSTD_IMPLIES= RASTER
ADDRSTD_LIB_DEPENDS= libpcre.so:devel/pcre

CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib

.include <bsd.port.pre.mk>

post-patch:
@${GREP} -lR 'bin/bash' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e "s|/bin/bash|/bin/sh|"
@${GREP} -lR '/usr/bin/psql' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
-e "s|/usr/bin/psql|${LOCALBASE}/bin/pgsql|"
@${GREP} -lR '/usr/lib/postgresql/9.4/bin/psql' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
-e "s|/usr/lib/postgresql/9.4/bin/psql|${LOCALBASE}/bin/pgsql|"
@${GREP} -lR '/usr/share/postgresql/contrib' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
-e "s|/usr/share/postgresql/contrib|${LOCALBASE}/share/postgresql/contrib|"
@${GREP} -lR '/usr/share/postgresql/9.4/contrib' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
-e "s|/usr/share/postgresql/9.4/contrib|${LOCALBASE}/share/postgresql/contrib/postgis-2.2|"

pre-configure:
@${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL

post-install:
${MKDIR} ${STAGEDIR}${DATADIR}/tiger_geocoder
(cd ${WRKSRC}/extras/tiger_geocoder && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/tiger_geocoder/ "! ( -name *\.orig -o -name *\.bak )" )
${MKDIR} ${STAGEDIR}${DATADIR}/utils
(cd ${WRKSRC}/utils/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/utils/ "! ( -name *\.orig -o -name *\.bak -o -name Makefile -o -name *\.in -o -name uninstall_script )" )
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/shp2pgsql
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pgsql2shp
.if ${PORT_OPTIONS:MLOADERGUI}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/shp2pgsql-gui
.else
${RM} ${STAGEDIR}${PREFIX}/bin/shp2pgsql-gui
.endif
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblwgeom-2.2.so.5.0.1
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/postgis-2.2.so
.if ${PORT_OPTIONS:MTOPOLOGY}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/postgis_topology-2.2.so
.endif
.if ${PORT_OPTIONS:MRASTER}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/raster2pgsql
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/rtpostgis-2.2.so
.endif
.if ${PORT_OPTIONS:MADDRSTD}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/address_standardizer-2.2.so
.endif

.include <bsd.port.post.mk>
2 changes: 2 additions & 0 deletions databases/postgis22/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SHA256 (postgis-2.2.2.tar.gz) = 40232391f8f66a6dc740ebb26088e568c8ccb663666998616c71c3bdaeed4163
SIZE (postgis-2.2.2.tar.gz) = 10071528
15 changes: 15 additions & 0 deletions databases/postgis22/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
PostGIS adds support for geographic objects to the PostgreSQL
object-relational database. In effect, PostGIS "spatially enables"
the PostgreSQL server, allowing it to be used as a backend spatial
database for geographic information systems (GIS), much like ESRI's
SDE or Oracle's Spatial extension. PostGIS follows the OpenGIS
"Simple Features Specification for SQL" and has been certified as
compliant with the "Types and Functions" profile.

PostGIS development was started by Refractions Research as a project
in open source spatial database technology. PostGIS is released
under the GNU General Public License. PostGIS continues to be
developed by a group of contributors led by a Project Steering
Committee and new features continue to be added.

WWW: http://postgis.net/
37 changes: 37 additions & 0 deletions databases/postgis22/pkg-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh

msg(){
echo "
======================= GEOS Support Notice ========================
In order to use the GEOS support, you may need to specially compile
your version of PostgreSQL to link the C++ runtime library.
To do this, invoke the PostgreSQL Makefile script this way:
on csh shell:
setenv LDFLAGS -lstdc++
make
on sh or bash shell:
export LDFLAGS=-lstdc++
make
The initial LDFLAGS variable is passed through to the Makefile and
adds the C++ library to the linking stage.
====================================================================
"
if [ -n "${PACKAGE_BUILDING}" ]; then
sleep 10
fi


}

case "$2" in
PRE-INSTALL)
msg ;;
MESSAGE)
msg ;;
esac
Loading

0 comments on commit dabf37d

Please sign in to comment.