summaryrefslogtreecommitdiff
path: root/devel/cvsup/Makefile.common
blob: ce6893f18156267bc77ccc441759a8f83b4bb27f (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
# $NetBSD: Makefile.common,v 1.4 2004/06/04 18:19:50 jschauma Exp $

DISTNAME=	cvsup-snap-16.1h
CATEGORIES=	devel net
MASTER_SITES=	ftp://ftp.freebsd.org/pub/FreeBSD/development/CVSup/snapshots/

MAINTAINER=	motoyuki@bsdclub.org
HOMEPAGE=	http://www.polstra.com/projects/freeware/CVSup/
COMMENT=	cvsup daemon and client

ONLY_FOR_PLATFORM=	FreeBSD-*-i386 NetBSD-*-i386 Linux-*-i386

.include "../../mk/bsd.prefs.mk"

BUILD_DEPENDS=	ezm3>=1.1:../../lang/ezm3

MAKE_FLAGS+=	PREFIX=${PREFIX} M3FLAGS="${M3FLAGS}"

M3BIN=		${PREFIX}/ezm3/bin/m3build

DESCR_SRC=	${.CURDIR}/../../devel/cvsup/DESCR
DISTINFO_FILE=	${.CURDIR}/../../devel/cvsup/distinfo
PLIST_SRC=	${.CURDIR}/../../devel/cvsup/PLIST
PATCHDIR=	${.CURDIR}/../../devel/cvsup/patches
FILESDIR=	${.CURDIR}/../../devel/cvsup-bin/files

post-extract:
	@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.in

pre-configure:
	@${SED} -e "s,@M3BIN@,${M3BIN},g" ${WRKSRC}/Makefile.in > \
		${WRKSRC}/Makefile

.include "../../mk/bsd.prefs.mk"

BUILD_DEFS+=	CVSUP_STATIC
CVSUP_STATIC?=	NO

.if defined(CVSUP_STATIC) && !empty(CVSUP_STATIC:M[Yy][Ee][Ss])
M3FLAGS+=	-DSTATIC
STATIC=		-static
.endif

EGDIR=		${PREFIX}/share/examples/cvsup

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cvsup ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/License ${PREFIX}/share/doc/cvsup
	${INSTALL_DATA} ${FILESDIR}/*cvsup* \
		${EGDIR}