Skip to content

Commit

Permalink
math/octave-forge-rtree: New port.
Browse files Browse the repository at this point in the history
An Octave native extension implementing the R-tree spatial index of
Guttman-Green. The code is an embedded version of librtree.
  • Loading branch information
Stephen Montgomery-Smith authored and Stephen Montgomery-Smith committed Jan 29, 2024
1 parent 5bdb5dc commit 6c096e6
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions math/Makefile
Expand Up @@ -631,6 +631,7 @@
SUBDIR += octave-forge-pythonic
SUBDIR += octave-forge-quaternion
SUBDIR += octave-forge-queueing
SUBDIR += octave-forge-rtree
SUBDIR += octave-forge-secs1d
SUBDIR += octave-forge-secs2d
SUBDIR += octave-forge-secs3d
Expand Down
36 changes: 36 additions & 0 deletions math/octave-forge-rtree/Makefile
@@ -0,0 +1,36 @@
PORTNAME= octave-forge-rtree
DISTVERSION= 0.8.0
CATEGORIES= math

MAINTAINER= stephen@FreeBSD.org
COMMENT= Octave-forge package ${OCTAVE_PKGNAME}
WWW= https://packages.octave.org/

LICENSE= GPLv3
LICENSE_FILE= ${EXTRACT_DIR}/COPYING

USES= octave

BUILD_DEPENDS+= gtar:archivers/gtar
LIB_DEPENDS+= libjansson.so:devel/jansson

USE_GITLAB= yes
GL_ACCOUNT= jjg
GL_PROJECT= librtree-octave
GL_COMMIT= 6456b2ebb38528ea6861019b4b85699796ba91fa

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

OCTAVE_SRC= ${OCTAVE_PKGNAME}-${DISTVERSION}
EXTRACT_DIR= ${WRKDIR}/${GL_PROJECT}-${GL_COMMIT}

post-patch:
${REINPLACE_CMD} s/^tar/gtar/ ${EXTRACT_DIR}/src/pkg/bin/pkg-build
cd ${EXTRACT_DIR} && ${SETENV} ${CONFIGURE_ENV} CFLAGS="${CFLAGS}" ./configure
cd ${EXTRACT_DIR} && ${SETENV} ${MAKE_ENV} ${GMAKE} package
cd ${EXTRACT_DIR} && ${SETENV} ${MAKE_ENV} ${GMAKE} spotless
${TAR} xvf ${EXTRACT_DIR}/src/pkg/versions/${OCTAVE_SRC}.tar.gz -C ${WRKDIR}

GNU_CONFIGURE= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions math/octave-forge-rtree/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1706482585
SHA256 (octave-forge/jjg-librtree-octave-6456b2ebb38528ea6861019b4b85699796ba91fa_GL0.tar.gz) = c43e7ff4908cc733f7a225332db6565b5def5662f828df068bade46caac9c597
SIZE (octave-forge/jjg-librtree-octave-6456b2ebb38528ea6861019b4b85699796ba91fa_GL0.tar.gz) = 157719
9 changes: 9 additions & 0 deletions math/octave-forge-rtree/pkg-descr
@@ -0,0 +1,9 @@
The octave-forge package is the result of The GNU Octave Repositry project,
which is intended to be a central location for custom scripts, functions and
extensions for GNU Octave. contains the source for all the functions plus
build and install scripts.

This is rtree.

An Octave native extension implementing the R-tree spatial index of
Guttman-Green. The code is an embedded version of librtree.

0 comments on commit 6c096e6

Please sign in to comment.