1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/net/nsq/Makefile
John Hixson 829a2fa779 Change jhixson port maintainer email to jhixson@FreeBSD.org
Approved by:	miwi (mentor), kmoore (mentor), araujo (mentor)
Differential Revision:	https://reviews.freebsd.org/D16592
2018-08-07 12:13:47 +00:00

65 lines
1.9 KiB
Makefile

# $FreeBSD$
PORTNAME= nsq
PORTVERSION= 1.0.0
DISTVERSIONPREFIX= v
DISTVERSIONSUFFIX= -compat
CATEGORIES= net
MAINTAINER= jhixson@FreeBSD.org
COMMENT= Realtime distributed messaging platform
LICENSE= MIT
BUILD_DEPENDS= go>=1.7:lang/go
ONLY_FOR_ARCHS= amd64
USE_RC_SUBR= nsqd nsqlookupd nsqadmin
USES= compiler go
USE_GITHUB= yes
GH_ACCOUNT= nsqio
GH_SUBDIR= src/github.com/nsqio/nsq
GH_TUPLE= BurntSushi:toml:v0.2.0:toml/src/github.com/BurntSushi/toml \
judwhite:go-svc:v1.0.0:go_svc/src/github.com/judwhite/go-svc \
mreiferson:go-options:77551d2:go_options/src/github.com/mreiferson/go-options \
mreiferson:go-snappystream:v0.2.3:go_snappystream/src/github.com/mreiferson/go-snappystream\
bitly:go-hostpool:d0e59c2:go_hostpool/src/github.com/bitly/go-hostpool \
bitly:go-simplejson:v0.5.0:go_simplejson/src/github.com/bitly/go-simplejson\
bitly:timer_metrics:afad179:timer_metrics/src/github.com/bitly/timer_metrics \
blang:semver:v3.3.0:semver/src/github.com/blang/semver \
bmizerany:perks:d9a9656:perks/src/github.com/bmizerany/perks \
julienschmidt:httprouter:8a45e95:httprouter/src/github.com/julienschmidt/httprouter \
golang:snappy:553a641:snappy/src/github.com/golang/snappy \
nsqio:go-diskqueue:d7805f8:go_diskqueue/src/github.com/nsqio/go-diskqueue \
nsqio:go-nsq:v1.0.6:go_nsq/src/github.com/nsqio/go-nsq
TARGETS= nsqd nsqlookupd nsqadmin nsq_pubsub nsq_to_nsq nsq_to_file \
nsq_to_http nsq_tail nsq_stat to_nsq
.for _t in ${TARGETS}
build-${_t}:
cd ${GO_WRKSRC}/apps/${_t}; \
${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build \
-ldflags "-X main.GitDescribe=${DISTVERSIONFULL}" -o bin/${_t}
install-${_t}:
${INSTALL_PROGRAM} ${GO_WRKSRC}/apps/${_t}/bin/${_t} \
${STAGEDIR}${PREFIX}/bin/${_t}
build_targets+= build-${_t}
install_targets+= install-${_t}
.endfor
do-build: ${build_targets}
do-install: ${install_targets}
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == clang
BUILD_ENV= CC=clang
.endif
.include <bsd.port.post.mk>