1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/databases/tile38/Makefile
Tobias Kortkamp 3726f94254 Convert all Go ports to USES=go
This allows for port testing with lang/go-devel via GO_PORT, setting
up the Go build environment in a single place, and is step one in
simplifying Go ports that often define too complicated do-build
targets themselves.

USES=go gains new arguments 'run' to add lang/go to RUN_DEPENDS and
'no_targets' for ports with composite builds that call 'go' themselves
and do not need the do-build/do-install targets of USES=go.

PR:		238849
Submitted by:	dg@syrec.org (also D20745)
Reviewed by:	mat, tobik
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D20746
2019-06-29 03:51:13 +00:00

51 lines
1.1 KiB
Makefile

# Created by: olevole@olevole.ru
# $FreeBSD$
PORTNAME= tile38
DISTVERSION= 1.12.0
CATEGORIES= databases
MAINTAINER= a.andersson.thn@gmail.com
COMMENT= In-memory geolocation data store, spatial index, and realtime geofence
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= bash:shells/bash
USES= go shebangfix
SHEBANG_FILES= build.sh
USE_GITHUB= yes
GH_ACCOUNT= tidwall
USE_RC_SUBR= tile38
SSP_UNSAFE= yes
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} && ${SETENV} ${MAKE_ENV} ./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>