aboutsummaryrefslogtreecommitdiffstats
path: root/net/x11vnc/Makefile
blob: d26aa4b4e5a00744448d4eef3529dd3d4e87fd28 (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
40
41
42
43
44
# New ports collection makefile for:    x11vnc
# Date created:             7 June 2005
# Whom:                 Loren M. Lang
#
# $FreeBSD$
#

PORTNAME=   x11vnc
PORTVERSION=    0.9.5
CATEGORIES= net
MASTER_SITES=   SF
MASTER_SITE_SUBDIR=libvncserver

MAINTAINER= beech@FreeBSD.org
COMMENT=    VNC server for use with real X displays

LIB_DEPENDS=    jpeg.9:${PORTSDIR}/graphics/jpeg \
        dbus:${PORTSDIR}/devel/dbus \
        avahi-common.3:${PORTSDIR}/net/avahi-app

USE_GNOME=  gnometarget
USE_XORG=   x11 xdamage xfixes xrandr xinerama xext xtst xau xrender xdmcp recordproto
USE_OPENSSL=    yes
USE_ICONV=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

MAN1=       x11vnc.1
PORTDOCS=   AUTHORS COPYING ChangeLog NEWS README README.LibVNCServer TODO

BROKEN=     Does not compile (linker problems)

post-patch:
    @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
        ${WRKSRC}/configure

.if !defined(NOPORTDOCS)
post-install:
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
.endif

.include <bsd.port.mk>