2004-02-09 03:55:41 +01:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: libvncserver
|
|
|
|
# Date created: Feb 9, 2004
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libvncserver
|
2011-04-04 09:08:51 +02:00
|
|
|
PORTVERSION= 0.9.8
|
2004-02-09 03:55:41 +01:00
|
|
|
CATEGORIES= net devel
|
2009-02-01 08:36:43 +01:00
|
|
|
MASTER_SITES= SF
|
2005-06-15 22:26:35 +02:00
|
|
|
DISTNAME= LibVNCServer-${PORTVERSION}
|
2004-02-09 03:55:41 +01:00
|
|
|
|
2011-04-04 09:08:51 +02:00
|
|
|
MAINTAINER= bapt@FreeBSD.org
|
2004-02-09 03:55:41 +01:00
|
|
|
COMMENT= Provide an easy API to write one's own vnc server
|
|
|
|
|
2011-04-04 09:08:51 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2010-02-05 12:46:55 +01:00
|
|
|
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg
|
2004-02-09 03:55:41 +01:00
|
|
|
|
2011-08-11 21:20:17 +02:00
|
|
|
USE_GNOME= gnomehack
|
2008-05-18 21:21:51 +02:00
|
|
|
USE_LDCONFIG= yes
|
2004-02-09 03:55:41 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2011-08-28 21:16:00 +02:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
2006-09-11 23:56:58 +02:00
|
|
|
CONFIGURE_ARGS= --without-x
|
2006-05-24 03:19:31 +02:00
|
|
|
|
2011-08-28 21:16:00 +02:00
|
|
|
OPTIONS= GNUTLS "Adds GnuTLS support" Off \
|
|
|
|
GCRYPT "Adds Libgcrypt support" Off
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_GNUTLS)
|
|
|
|
LIB_DEPENDS+= gnutls.0:${PORTSDIR}/security/gnutls
|
|
|
|
CONFIGURE_ARGS+= --with-gnutls
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gnutls
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GCRYPT)
|
|
|
|
LIB_DEPENDS+= gcrypt.0:${PORTSDIR}/security/libgcrypt
|
|
|
|
CONFIGURE_ARGS+= --with-gcrypt
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gcrypt
|
|
|
|
.endif
|
|
|
|
|
2004-02-09 03:55:41 +01:00
|
|
|
post-patch:
|
2006-09-11 23:56:58 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/^SUBDIRS/s|x11vnc||g' ${WRKSRC}/Makefile.in
|
2004-02-09 03:55:41 +01:00
|
|
|
|
2004-11-04 23:28:58 +01:00
|
|
|
post-install:
|
2005-06-15 22:26:35 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/rfb/default8x16.h ${PREFIX}/include/rfb
|
2004-11-04 23:28:58 +01:00
|
|
|
|
2004-02-09 03:55:41 +01:00
|
|
|
.include <bsd.port.mk>
|