sthen f52be2a50e bump all go ports that don't already have a RUN_DEPENDS on lang/go (which
has pkgspec set on the go version number already), so that pkg_add -u updates
them to versions which work with MAP_STACK. spotted by pvk@
2018-04-14 22:53:54 +00:00

50 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.10 2018/04/14 22:53:55 sthen Exp $
COMMENT = compact self-hosted Git service
VERSION = 1.4.0
GH_ACCOUNT = go-gitea
GH_PROJECT = gitea
GH_TAGNAME = v${VERSION}
REVISION = 0
CATEGORIES = www devel
HOMEPAGE = https://gitea.io/
MAINTAINER = Robert Nagy <robert@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c pthread
MODULES = lang/go
MODGO_ENV = PATH="${PORTPATH}" CFLAGS="${CFLAGS}"
MODGO_FLAGS += -tags "sqlite cert"
RUN_DEPENDS = devel/git \
shells/bash
ALL_TARGET = code.gitea.io/${GH_PROJECT}
WRKSRC = ${MODGO_WORKSPACE}/src/${ALL_TARGET}
SUBST_VARS += VERSION
pre-configure:
${SUBST_CMD} ${WRKDIST}/{custom/conf/app.ini.sample,main.go}
do-install:
${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/gitea ${PREFIX}/sbin
${INSTALL_DATA_DIR} ${PREFIX}/share/gitea
.for _d in custom/conf options public templates
cp -Rp ${WRKSRC}/${_d} ${PREFIX}/share/gitea
.endfor
post-install:
@find ${WRKINST} -type f -name '*.beforesubst' -exec rm {} \;
@find ${WRKINST} -type f -name '*.orig' -exec rm {} \;
.include <bsd.port.mk>