2020-04-04 19:28:31 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.27 2020/04/04 19:28:31 kn Exp $
|
2011-04-03 10:27:24 +00:00
|
|
|
|
|
|
|
COMMENT = web frontend for git repositories
|
|
|
|
|
2020-04-04 19:28:31 +00:00
|
|
|
DISTNAME = cgit-1.2.3
|
2011-04-03 10:27:24 +00:00
|
|
|
CATEGORIES = www devel
|
|
|
|
|
2020-04-04 19:28:31 +00:00
|
|
|
# upstream has git 2.25.1 called out as the specific version to build against
|
|
|
|
# https://git.zx2c4.com/cgit/commit/?id=fde897b8171ed2e925b44ec6f69590ec07241017
|
2018-08-04 09:19:35 +00:00
|
|
|
DISTFILES = ${DISTNAME}.tar.xz:0 \
|
2020-04-04 19:28:31 +00:00
|
|
|
git-2.25.1.tar.gz:1
|
2011-05-03 13:57:26 +00:00
|
|
|
|
2017-03-22 20:23:52 +00:00
|
|
|
MASTER_SITES0 = https://git.zx2c4.com/cgit/snapshot/
|
2015-04-05 22:07:59 +00:00
|
|
|
MASTER_SITES1 = https://www.kernel.org/pub/software/scm/git/
|
2017-03-22 20:23:52 +00:00
|
|
|
HOMEPAGE = https://git.zx2c4.com/cgit/about/
|
2011-04-03 10:27:24 +00:00
|
|
|
|
|
|
|
# GPLv2
|
2019-07-12 20:49:33 +00:00
|
|
|
PERMIT_PACKAGE = Yes
|
2011-04-03 10:27:24 +00:00
|
|
|
|
|
|
|
USE_GMAKE = yes
|
|
|
|
|
2018-01-05 08:31:26 +00:00
|
|
|
BUILD_DEPENDS = textproc/asciidoc
|
2016-04-09 20:14:48 +00:00
|
|
|
LIB_DEPENDS = converters/libiconv
|
2011-04-03 10:27:24 +00:00
|
|
|
|
2013-07-05 09:34:35 +00:00
|
|
|
PREFIX = ${VARBASE}/www
|
2017-03-22 20:23:52 +00:00
|
|
|
MAKE_FLAGS += V=1 NO_GETTEXT=1 NO_LUA=1 LDFLAGS+='${STATIC} -L${LOCALBASE}/lib'
|
2011-04-03 10:27:24 +00:00
|
|
|
|
2018-01-05 08:31:26 +00:00
|
|
|
ALL_TARGET = all doc-man
|
|
|
|
|
2011-04-03 10:27:24 +00:00
|
|
|
post-extract:
|
|
|
|
rmdir ${WRKSRC}/git
|
2013-07-15 07:00:49 +00:00
|
|
|
mv ${WRKDIR}/git-* ${WRKSRC}/git
|
2011-04-03 10:27:24 +00:00
|
|
|
|
|
|
|
post-install:
|
2015-04-05 22:07:59 +00:00
|
|
|
mv ${PREFIX}/htdocs ${PREFIX}/cgit
|
2018-01-05 08:31:26 +00:00
|
|
|
${INSTALL_MAN} ${WRKBUILD}/cgitrc.5 ${WRKINST}${LOCALBASE}/man/man5
|
2011-04-03 10:27:24 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|