View | Details | Raw Unified | Return to bug 146720
Collapse All | Expand All

(-)Makefile (-1 / +19 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	rdesktop
8
PORTNAME=	rdesktop
9
PORTVERSION=	1.6.0
9
PORTVERSION=	1.6.0
10
PORTREVISION?=	0
10
PORTREVISION?=	1
11
CATEGORIES=	net comms ipv6
11
CATEGORIES=	net comms ipv6
12
MASTER_SITES=	SF
12
MASTER_SITES=	SF
13
13
Lines 30-35 Link Here
30
CONFIGURE_ARGS+=	--with-libiconv-prefix=${LOCALBASE}
30
CONFIGURE_ARGS+=	--with-libiconv-prefix=${LOCALBASE}
31
.endif
31
.endif
32
32
33
.if defined(WITH_LIBAO)
34
LIB_DEPENDS+=	ao.3:${PORTSDIR}/audio/libao
35
.endif
36
37
.if defined(WITH_LIBSAMPLERATE)
38
LIB_DEPENDS+=	samplerate.1:${PORTSDIR}/audio/libsamplerate
39
.endif
40
33
.if defined(WITH_RDESKTOP_DEBUG)
41
.if defined(WITH_RDESKTOP_DEBUG)
34
CONFIGURE_ARGS+=	--with-debug\
42
CONFIGURE_ARGS+=	--with-debug\
35
			--with-debug-kbd\
43
			--with-debug-kbd\
Lines 38-47 Link Here
38
			--with-debug-sound\
46
			--with-debug-sound\
39
			--with-debug-channel\
47
			--with-debug-channel\
40
			--with-debug-seamless
48
			--with-debug-seamless
49
.endif
41
50
42
post-configure:
51
post-configure:
52
.if defined(WITH_RDESKTOP_DEBUG)
43
	${ECHO} "#define WITH_DEBUG_SERIAL 1" >> ${WRKSRC}/rdesktop.h
53
	${ECHO} "#define WITH_DEBUG_SERIAL 1" >> ${WRKSRC}/rdesktop.h
44
.endif
54
.endif
55
.if !defined(WITH_LIBAO)
56
	@${REINPLACE_CMD} -e 's|-DRDPSND_LIBAO=1||;s|rdpsnd_libao.o||;s|-lao||' \
57
		${WRKSRC}/Makefile
58
.endif
59
.if !defined(WITH_LIBSAMPLERATE)
60
	@${REINPLACE_CMD} -e 's|-DHAVE_LIBSAMPLERATE=1||;s|-lsamplerate||' \
61
		${WRKSRC}/Makefile
62
.endif
45
63
46
do-install:
64
do-install:
47
	${INSTALL_PROGRAM} ${WRKSRC}/rdesktop ${PREFIX}/bin
65
	${INSTALL_PROGRAM} ${WRKSRC}/rdesktop ${PREFIX}/bin

Return to bug 146720