3726f94254
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
24 lines
449 B
Makefile
24 lines
449 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= fixc
|
|
PORTVERSION= 1.2
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= finance
|
|
|
|
MAINTAINER= blttll@gmail.com
|
|
COMMENT= Simple Financial Information eXchange (FIX) protocol console client
|
|
|
|
USES= go
|
|
|
|
PLIST_FILES= bin/fixc
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= blttll
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && \
|
|
${SETENV} ${MAKE_ENV} go build -o fixc main.go
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/fixc ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|