all repos — ports @ c5ab0e8ee4ef3574b91096b0b5ae39d281c671e1

collection of ports for openbsd

www/cgit/Makefile (view raw)

 1# $OpenBSD: Makefile,v 1.27 2020/04/04 19:28:31 kn Exp $
 2
 3COMMENT =	web frontend for git repositories
 4
 5DISTNAME =	cgit-1.2.3-la-ninpre
 6CATEGORIES =	www devel
 7
 8# upstream has git 2.25.1 called out as the specific version to build against
 9# https://git.zx2c4.com/cgit/commit/?id=fde897b8171ed2e925b44ec6f69590ec07241017
10DISTFILES =	${DISTNAME}.tar.gz:0 \
11		git-2.32.0.tar.gz:1
12
13MASTER_SITES0 =		https://git.aaoth.xyz/cgit.git/snapshot/
14MASTER_SITES1 =		https://www.kernel.org/pub/software/scm/git/
15HOMEPAGE =		https://git.zx2c4.com/cgit/about/
16
17# GPLv2
18PERMIT_PACKAGE =	Yes
19
20USE_GMAKE =	yes
21
22BUILD_DEPENDS =	textproc/asciidoc
23LIB_DEPENDS =	converters/libiconv
24
25PREFIX =	${VARBASE}/www
26MAKE_FLAGS +=	V=1 NO_GETTEXT=1 NO_LUA=1 LDFLAGS+='${STATIC} -L${LOCALBASE}/lib'
27
28ALL_TARGET =	all doc-man
29
30post-extract:
31	rmdir ${WRKSRC}/git
32	mv ${WRKDIR}/git-* ${WRKSRC}/git
33
34post-install:
35	mv ${PREFIX}/htdocs ${PREFIX}/cgit
36	${INSTALL_MAN} ${WRKBUILD}/cgitrc.5 ${WRKINST}${LOCALBASE}/man/man5
37
38.include <bsd.port.mk>