summaryrefslogtreecommitdiffstats
path: root/devel/meta-cvs/Makefile
blob: d32bfbb8dfad8bde33f27d1011d67aff47434ca6 (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# New ports collection makefile for:	meta-cvs
# Date created:		13 February 2003
# Whom:			johs
#
# $FreeBSD$
#

PORTNAME=	meta-cvs
PORTVERSION=	1.1.98
CATEGORIES=	devel
MASTER_SITES=	http://common-lisp.net/project/meta-cvs/downloads/

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	A more capable version control system than CVS, built around CVS

OPTIONS=	PDFDOC	"Build PDF documentation" off

BUILD_DEPENDS=	clisp:${PORTSDIR}/lang/clisp \
    		lndir:${PORTSDIR}/devel/lndir
RUN_DEPENDS=	clisp:${PORTSDIR}/lang/clisp

USE_GMAKE=	yes
GNU_CONFIGURE=	yes

PLIST_FILES=	bin/mcvs \
		bin/mcvs-debug \
		${DATADIR:C/${PREFIX}\///}/mcvs.mem \
		${DATADIR:C/${PREFIX}\///}/mcvs-debug.mem
PLIST_DIRS=	${DATADIR:C/${PREFIX}\///}

PORTDOCS=	Meta-CVS-PAPER \
		PORTING \
		QUICK-GUIDE \
		SCRIPTING

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_PDFDOC) && !defined(NOPORTDOCS)
BUILD_DEPENDS+=	pdflatex:${PORTSDIR}/print/teTeX-base
PORTDOCS+=	meta-cvs.pdf
.endif

post-patch:
	${REINPLACE_CMD} -e '232s|make|${GMAKE}|g' ${WRKSRC}/configure
	${REINPLACE_CMD} -e 's|type -P|which|g;s|$$(prefix)/lib|${DATADIR}|g' ${WRKSRC}/Makefile
	${REINPLACE_CMD} -e 's|libc.so.6|libc.so|' ${WRKSRC}/code/clisp-ffi.lisp
	${REINPLACE_CMD} -e '12s|latex|pdflatex|' ${WRKSRC}/docs/tex-manual/Makefile

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.    if !defined(WITHOUT_PDFDOC)
	(cd ${WRKSRC}/docs/tex-manual && ${GMAKE} && \
	    ${CP} ${WRKSRC}/docs/tex-manual/meta-cvs.pdf ${WRKSRC}/docs/misc-text-files)
.    endif
.for doc in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/docs/misc-text-files/${doc} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud