summaryrefslogtreecommitdiff
path: root/mbone/sdr/Makefile
blob: 8f3be7597f14104c064fab19908dfe36e187a41f (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
# $NetBSD: Makefile,v 1.52 2010/08/21 10:17:58 seb Exp $

DISTNAME=	sdr-3.0
PKGREVISION=	2
CATEGORIES=	mbone tk
MASTER_SITES=	http://www-mice.cs.ucl.ac.uk/multimedia/software/sdr/3.0/

MAINTAINER=	is@NetBSD.org
HOMEPAGE=	http://www-mice.cs.ucl.ac.uk/multimedia/software/sdr/
COMMENT=	MBone Session Directory

PKG_DESTDIR_SUPPORT=	user-destdir

BROKEN=		Depends on TCL/TK 8.3

WRKSRC=		${WRKDIR}/sdr/${SYSDIR}
CRYPTO=		yes
USE_TOOLS+=	gmake
HAS_CONFIGURE=	yes

PKG_OPTIONS_VAR=	PKG_OPTIONS.sdr
PKG_SUPPORTED_OPTIONS=	inet6

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=	--enable-ipv6
.endif

.if exists(/usr/include/sys/inttypes.h)
EXTRA_FLAGS+=	-DHAVE_SYS_INTTYPES_H
MAKE_FLAGS+=	EXTRA_FLAGS=${EXTRA_FLAGS:Q}
.endif

.if ${OPSYS} == "SunOS"
SYSDIR= solaris
.else
SYSDIR= freebsd
.endif

INSTALLATION_DIRS=	bin

post-patch:
	${MV} ${WRKSRC}/../src/sdr.tcl ${WRKSRC}/../src/sdr.tcl.in &&	\
	${SED} -e 's|@PREFIX@|${PREFIX}|' ${WRKSRC}/../src/sdr.tcl.in >	\
		${WRKSRC}/../src/sdr.tcl

.if ${OPSYS} == "SunOS"
post-configure:
	# Untested for sdr 3.0 !!!
	${CAT}	${WRKSRC}/sdr/solaris/Makefile.solaris			\
		${WRKSRC}/sdr/src/Makefile.template			\
		> ${WRKSRC}/sdr/solaris/Makefile
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/sdr ${DESTDIR}${PREFIX}/bin/sdr

.include "../../mbone/common-mml/buildlink3.mk"
#.include "../../x11/tk83/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"