openbsd-ports/devel/fossil/Makefile

55 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.80 2021/04/08 17:26:05 jturner Exp $
COMMENT = simple distributed software configuration management
DISTNAME = fossil-src-2.15.1
PKGNAME = fossil-2.15.1
EPOCH = 0
CATEGORIES = devel www
MAINTAINER = James Turner <james@calminferno.net>
HOMEPAGE = http://fossil-scm.org/
MASTER_SITES = http://fossil-scm.org/home/uv/
# BSD
PERMIT_PACKAGE = Yes
FLAVORS= static
FLAVOR?=
# uses pledge()
WANTLIB = c crypto fuse m ssl z
MODULES = lang/tcl
MODTCL_VERSION = 8.6
WRKDIST = ${WRKDIR}/${PKGNAME}
BUILD_DEPENDS = ${MODTCL_BUILD_DEPENDS}
CONFIGURE_STYLE = simple
CONFLICT_MARKER = fossil-*-!static
.if ${FLAVOR} == "static"
CONFIGURE_ARGS += --static
PREFIX = ${VARBASE}/www
CONFLICT_MARKER = fossil-*-static
.endif
SUBST_VARS += CONFLICT_MARKER STATIC
TEST_DEPENDS = ${MODTCL_RUN_DEPENDS}
pre-configure:
${SUBST_CMD} ${WRKSRC}/auto.def
do-test:
@cd ${WRKSRC} && ${MODTCL_BIN} test/tester.tcl fossil
do-install:
${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/fossil ${PREFIX}/bin
.include <bsd.port.mk>