mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
f088097def
PR: 213772 Submitted by: olevole@olevole.ru (maintainer)
55 lines
1.1 KiB
Makefile
55 lines
1.1 KiB
Makefile
# Created by: olevole@olevole.ru
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tile38
|
|
PORTVERSION= 1.5.2
|
|
CATEGORIES= databases
|
|
|
|
MAINTAINER= olevole@olevole.ru
|
|
COMMENT= In-memory geolocation data store, spatial index, and realtime geofence
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= go>=1.4:lang/go \
|
|
bash:shells/bash
|
|
RUN_DEPENDS= go>=1.4:lang/go \
|
|
bash:shells/bash
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= tidwall
|
|
|
|
USES= shebangfix
|
|
SHEBANG_FILES= build.sh
|
|
|
|
USE_RC_SUBR= tile38
|
|
|
|
USERS= ${PORTNAME}
|
|
GROUPS= ${PORTNAME}
|
|
|
|
TILE38_DBDIR?= /var/db/tile38
|
|
TILE38_RUNDIR?= /var/run/tile38
|
|
|
|
SUB_LIST= PORTNAME=${PORTNAME} \
|
|
TILE38_USER=${USERS} \
|
|
TILE38_DBDIR=${TILE38_DBDIR} \
|
|
TILE38_RUNDIR=${TILE38_RUNDIR}
|
|
|
|
PLIST_SUB= TILE38_USER=${USERS} \
|
|
TILE38_GROUP=${GROUPS} \
|
|
TILE38_DBDIR=${TILE38_DBDIR} \
|
|
TILE38_RUNDIR=${TILE38_RUNDIR}
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && ./build.sh
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${TILE38_DBDIR} ${STAGEDIR}${TILE38_RUNDIR}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tile38-cli ${STAGEDIR}${PREFIX}/bin/
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tile38-server ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ./build.sh test
|
|
|
|
.include <bsd.port.mk>
|