summaryrefslogtreecommitdiff
path: root/devel/uclmmbase/Makefile
blob: 51391b0c1f21228e9e1c75b611dd10801cdad0a1 (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
# Created by: Garrett Wollman <wollman@lcs.mit.edu>
# $FreeBSD$

PORTNAME=	uclmmbase
PORTVERSION=	1.2.18
CATEGORIES=	devel ipv6
MASTER_SITES=	http://aldan.algebra.com/~mi/port-stuff/
DISTNAME=	common-${PORTVERSION}

MAINTAINER=	mi@aldan.algebra.com
COMMENT=	Common subroutines for UCL mbone applications

WRKSRC=		${WRKDIR}/common
GNU_CONFIGURE=	yes
USE_OPENSSL=	yes
.ifndef (NO_INET6)
CONFIGURE_ARGS=	--enable-ipv6
.endif
USE_XZ=		yes
MAKE_JOBS_SAFE=	yes
MAKE_ENV=	WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null

post-configure:
	@for f in ${FILESDIR}/*.bsd ; do \
		${LN} -sf $$f ${WRKSRC}/src/`${BASENAME} $$f .bsd` ; \
	done

# Run the test, and fail if we hit an error. Don't fail in case of
# the networking-error, which may be due IPv6 (or IPv4) being unavailable
# or some network (mis)configuration:
post-build test:
	cd ${WRKSRC} && tests/test-libcommon 2>&1 | ${AWK} '	\
		/fail$$/ && $$2 != "networking" { code=1 }	\
		{ print } END { exit code }'

do-install:
	cd ${WRKSRC}/src && ${MAKE_ENV} ${MAKE} install

.include <bsd.port.mk>