2017-11-21 16:01:19 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2017/11/21 16:01:19 bcallah Exp $
|
2017-06-16 03:36:44 +00:00
|
|
|
|
2017-11-21 16:01:19 +00:00
|
|
|
V = 0.3.8
|
2017-06-16 03:36:44 +00:00
|
|
|
COMMENT = small, high performance language with a modern syntax
|
2017-07-09 18:33:22 +00:00
|
|
|
DISTNAME = gravity-${V}
|
2017-06-16 03:36:44 +00:00
|
|
|
CATEGORIES = lang
|
|
|
|
|
2017-07-09 18:33:22 +00:00
|
|
|
GH_ACCOUNT = marcobambini
|
|
|
|
GH_PROJECT = gravity
|
|
|
|
GH_TAGNAME = ${V}
|
|
|
|
|
2017-06-16 03:36:44 +00:00
|
|
|
HOMEPAGE = http://creolabs.com/gravity
|
|
|
|
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
|
|
|
|
|
|
|
|
# MIT
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
|
|
|
WANTLIB += c m
|
|
|
|
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
|
|
|
|
pre-configure:
|
2017-10-11 20:42:36 +00:00
|
|
|
sed -i 's,-O2,${CFLAGS},g' ${WRKSRC}/Makefile ${WRKSRC}/api/Makefile
|
2017-06-16 03:36:44 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gravity ${PREFIX}/bin
|
|
|
|
|
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC} && ./unittest test
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|