2017-12-09 19:46:42 +00:00
|
|
|
# Created by: Li-Wen Hsu <lwhsu@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PKGNAMESUFFIX= -go
|
|
|
|
|
|
|
|
COMMENT= Go module for NGINX Unit
|
|
|
|
|
|
|
|
USES= go
|
|
|
|
|
|
|
|
PLIST_FILES= # reset to empty
|
|
|
|
PLIST_DIRS= # reset to empty
|
2018-09-27 21:40:07 +00:00
|
|
|
PLIST= ${.CURDIR}/pkg-plist
|
2017-12-09 19:46:42 +00:00
|
|
|
|
|
|
|
USE_RC_SUBR?= # reset to empty
|
|
|
|
|
|
|
|
MASTERDIR= ${.CURDIR}/../unit
|
|
|
|
|
|
|
|
CGO_CFLAGS+= -I${WRKSRC}/src -I${WRKSRC}/build
|
2018-09-27 21:40:07 +00:00
|
|
|
GO_PKGNAME= nginx/unit
|
2017-12-09 19:46:42 +00:00
|
|
|
|
|
|
|
post-extract:
|
2018-09-27 21:40:07 +00:00
|
|
|
@true # override master's
|
2017-12-09 19:46:42 +00:00
|
|
|
|
|
|
|
post-configure:
|
2018-09-27 21:40:07 +00:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${GO_ENV} ./configure go --go-path=${WRKDIR}
|
2017-12-09 19:46:42 +00:00
|
|
|
|
|
|
|
pre-build:
|
2018-09-27 21:40:07 +00:00
|
|
|
cd ${WRKSRC} && ${MAKE} go-install
|
2017-12-09 19:46:42 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@true # override master's
|
|
|
|
|
|
|
|
.include "${MASTERDIR}/Makefile"
|