blob: f7f03a81d6c5a4a65cb77ad95f3a720ad9c786f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# $OpenBSD: Makefile,v 1.27 2020/04/04 19:28:31 kn Exp $
COMMENT = web frontend for git repositories
PKGNAME = cgit-causal-agency-20210930
DISTNAME = src-db96234ccb8c33dfdf127eb7e254a84481f98aa1
CATEGORIES = www devel
REVISION = 2
DISTFILES = ${DISTNAME}.tar.gz:0 \
git-2.32.0.tar.gz:1
WRKDIST = ${WRKDIR}/${DISTNAME}/www/git.causal.agency/cgit
MASTER_SITES0 = https://git.causal.agency/src/snapshot/
MASTER_SITES1 = https://www.kernel.org/pub/software/scm/git/
HOMEPAGE = https://git.causal.agency/src/log/www/git.causal.agency/cgit
# 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 EXTRA_GIT_TARGETS='git git-http-backend' LDFLAGS+='${STATIC} -L${LOCALBASE}/lib'
ALL_TARGET = all doc-man
:
mv ${WRKDIR}/git-* ${WRKSRC}/git
post-install:
mv ${PREFIX}/htdocs ${PREFIX}/cgit
${INSTALL_MAN} ${WRKBUILD}/cgitrc.5 ${WRKINST}${LOCALBASE}/man/man5
${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKBUILD}/git/git ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKBUILD}/git/git-http-backend ${PREFIX}/cgi-bin
.include <bsd.port.mk>
|