summaryrefslogtreecommitdiff
path: root/devel/c-unit/Makefile
blob: 440f8542aabd2070ba1b0231b9ae166efc0fbeec (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
# Created by: Takanori Sawada <tak.swd@gmail.com>
# $FreeBSD$

PORTNAME=	c-unit
DISTVERSION=	1.1.1
PORTREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	GOOGLE_CODE

MAINTAINER=	tak.swd@gmail.com
COMMENT=	Unit testing framework for C

LICENSE=	LGPL20

BROKEN=		Unfetchable (google code has gone away)
DEPRECATED=	Unfetchable for more than six months (google code has gone away)
EXPIRATION_DATE=	2017-04-30

CONFLICTS=	cunit-[0-9]*

GNU_CONFIGURE=	yes
USES=		autoreconf gmake libtool pathfix
USE_LDCONFIG=	yes
INSTALL_TARGET=	install-strip

DATADIR=	${PREFIX}/share/CUnit
EXAMPLESDIR=	${PREFIX}/share/examples/CUnit

OPTIONS_DEFINE=		AUT BAS CON CUR DEB EXA ITE MEM
OPTIONS_DEFAULT=	AUT BAS CON
OPTIONS_SUB=		yes

AUT_DESC=	Automated (XML) interface
BAS_DESC=	Basic interface
CON_DESC=	Console interface
CUR_DESC=	Curses interface
DEB_DESC=	Debug interface
EXA_DESC=	Example programs
ITE_DESC=	Internal test program
MEM_DESC=	Internal memory tracking

AUT_CONFIGURE_ENABLE=	automated
BAS_CONFIGURE_ENABLE=	basic
CON_CONFIGURE_ENABLE=	console
CUR_CONFIGURE_ENABLE=	curses
CUR_LDFLAGS=		-lcurses
CUR_USES=		ncurses
DEB_CONFIGURE_ENABLE=	debug
EXA_CONFIGURE_ENABLE=	examples
ITE_CONFIGURE_ENABLE=	test
MEM_CONFIGURE_ENABLE=	memtrace

post-patch:
	@${REINPLACE_CMD} -e 's|/doc/@PACKAGE@|/share/doc/@PACKAGE@|g' ${WRKSRC}/doc/Makefile.am ${WRKSRC}/doc/headers/Makefile.am
	@${REINPLACE_CMD} -e 's|/@PACKAGE@/Examples/|/examples/@PACKAGE@/|g' ${WRKSRC}/Examples/*/Makefile.am

.include <bsd.port.mk>