diff options
| author | la-ninpre <leobrekalini@gmail.com> | 2021-11-02 19:00:35 +0300 |
|---|---|---|
| committer | la-ninpre <leobrekalini@gmail.com> | 2021-11-02 19:00:35 +0300 |
| commit | c5ab0e8ee4ef3574b91096b0b5ae39d281c671e1 (patch) | |
| tree | 3dd55391730f596fc211725e10033be70b63a67e /www/cgit/Makefile | |
| download | ports-c5ab0e8ee4ef3574b91096b0b5ae39d281c671e1.tar.gz ports-c5ab0e8ee4ef3574b91096b0b5ae39d281c671e1.zip | |
inital commit
Diffstat (limited to 'www/cgit/Makefile')
| -rw-r--r-- | www/cgit/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/www/cgit/Makefile b/www/cgit/Makefile new file mode 100644 index 0000000..5dc923c --- /dev/null +++ b/www/cgit/Makefile @@ -0,0 +1,38 @@ +# $OpenBSD: Makefile,v 1.27 2020/04/04 19:28:31 kn Exp $ + +COMMENT = web frontend for git repositories + +DISTNAME = cgit-1.2.3-la-ninpre +CATEGORIES = www devel + +# upstream has git 2.25.1 called out as the specific version to build against +# https://git.zx2c4.com/cgit/commit/?id=fde897b8171ed2e925b44ec6f69590ec07241017 +DISTFILES = ${DISTNAME}.tar.gz:0 \ + git-2.32.0.tar.gz:1 + +MASTER_SITES0 = https://git.aaoth.xyz/cgit.git/snapshot/ +MASTER_SITES1 = https://www.kernel.org/pub/software/scm/git/ +HOMEPAGE = https://git.zx2c4.com/cgit/about/ + +# GPLv2 +PERMIT_PACKAGE = Yes + +USE_GMAKE = yes + +BUILD_DEPENDS = textproc/asciidoc +LIB_DEPENDS = converters/libiconv + +PREFIX = ${VARBASE}/www +MAKE_FLAGS += V=1 NO_GETTEXT=1 NO_LUA=1 LDFLAGS+='${STATIC} -L${LOCALBASE}/lib' + +ALL_TARGET = all doc-man + +post-extract: + rmdir ${WRKSRC}/git + mv ${WRKDIR}/git-* ${WRKSRC}/git + +post-install: + mv ${PREFIX}/htdocs ${PREFIX}/cgit + ${INSTALL_MAN} ${WRKBUILD}/cgitrc.5 ${WRKINST}${LOCALBASE}/man/man5 + +.include <bsd.port.mk> |
