blob: e6e97b17876dc6ff073ed96183e41eca35f9c94b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
PORTNAME= octave-forge-rtree
DISTVERSIONPREFIX= v
DISTVERSION= 0.8.1
CATEGORIES= math
MAINTAINER= stephen@FreeBSD.org
COMMENT= Octave-forge package ${OCTAVE_PKGNAME}
WWW= https://packages.octave.org/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= octave autoreconf:build
BUILD_DEPENDS+= gtar:archivers/gtar
LIB_DEPENDS+= libjansson.so:devel/jansson
USE_GITLAB= yes
GL_ACCOUNT= jjg
GL_PROJECT= librtree-octave
CFLAGS+= -I${PREFIX}/include -L${PREFIX}/lib
OCTAVE_SRC= ${GL_PROJECT}-${GL_COMMIT}${DISTVERSIONPREFIX}${DISTVERSION}
WRKSRC= ${WRKDIR}/${OCTAVE_SRC}
BINARY_ALIAS= tar=gtar
do-build:
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} CFLAGS="${CFLAGS}" ./configure
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} package
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} spotless
${TAR} xvf ${WRKSRC}/src/pkg/versions/${OCTAVE_DISTNAME}.tar.gz -C ${WRKSRC}
cd ${WRKSRC}/${OCTAVE_DISTNAME}/src && \
${SETENV} ${CONFIGURE_ENV} CFLAGS="${CFLAGS}" ./configure && \
${SETENV} ${MAKE_ENV} CLAGS="${CFLAGS}" ${GMAKE}
pre-install:
${RM} ${WRKSRC}/${OCTAVE_DISTNAME}/src/Makefile ${WRKSRC}/${OCTAVE_DISTNAME}/src/configure
cd ${WRKSRC} && ${TAR} cfz ${WRKDIR}/${OCTAVE_DISTNAME}.tar.gz ${OCTAVE_DISTNAME}
.include <bsd.port.mk>
|