ports/devel/sqlc/Makefile

29 lines
628 B
Makefile
Raw Normal View History

2023-08-16 22:26:55 +00:00
# github.com/kyleconroy/sqlc/internal/engine/sqlite/parser fails on LP32
ONLY_FOR_ARCHS = aarch64 amd64
COMMENT = create type safe go from SQL
2023-09-17 04:05:06 +00:00
# 1.21.0 hits https://github.com/sqlc-dev/sqlc/issues/2726
MODGO_MODNAME = github.com/sqlc-dev/sqlc
MODGO_VERSION = v1.20.0
HOMEPAGE = https://sqlc.dev/
PORTROACH = site:https://github.com/sqlc-dev/sqlc/releases/
2023-08-16 22:26:55 +00:00
DISTNAME = sqlc-${MODGO_VERSION}
CATEGORIES = devel
# MIT
PERMIT_PACKAGE = Yes
WANTLIB += c pthread
MODULES = lang/go
2023-09-17 04:05:06 +00:00
MODGO_LDFLAGS = -X "github.com/sqlc-dev/sqlc/internal/cmd.version=${MODGO_VERSION}"
2023-08-16 22:26:55 +00:00
NO_TEST = Yes
.include "modules.inc"
.include <bsd.port.mk>