diff options
author | dinoex <dinoex@FreeBSD.org> | 2012-03-25 22:50:30 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2012-03-25 22:50:30 +0800 |
commit | 2411e6ae27b7a545a3bdd6184786e1e09745d0a8 (patch) | |
tree | f363eb21e72b0ba7f7517c08fd7fd118871e01e1 /net/x11vnc | |
parent | d57577b4b363bc2c7282ae235aa43d84471c1265 (diff) | |
download | freebsd-ports-gnome-2411e6ae27b7a545a3bdd6184786e1e09745d0a8.tar.gz freebsd-ports-gnome-2411e6ae27b7a545a3bdd6184786e1e09745d0a8.tar.zst freebsd-ports-gnome-2411e6ae27b7a545a3bdd6184786e1e09745d0a8.zip |
- add OPTIONS
Submitted by: Warren Block
Feature safe: yes
Diffstat (limited to 'net/x11vnc')
-rw-r--r-- | net/x11vnc/Makefile | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/net/x11vnc/Makefile b/net/x11vnc/Makefile index 2cd3d991d1ca..1fa30b926d86 100644 --- a/net/x11vnc/Makefile +++ b/net/x11vnc/Makefile @@ -7,19 +7,19 @@ PORTNAME= x11vnc PORTVERSION= 0.9.13 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= SF/libvncserver/${PORTNAME}/${PORTVERSION} MAINTAINER= dinoex@FreeBSD.org COMMENT= VNC server for use with real X displays +LICENSE= GPLv2 + LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \ dbus:${PORTSDIR}/devel/dbus \ xcb:${PORTSDIR}/x11/libxcb \ - pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \ - avahi-common:${PORTSDIR}/net/avahi-app - -LICENSE= GPLv2 + pthread-stubs:${PORTSDIR}/devel/libpthread-stubs USE_XORG= x11 xdamage xfixes xrandr xinerama xext xtst xau xrender xdmcp recordproto @@ -27,15 +27,27 @@ USE_XORG= x11 xdamage xfixes xrandr xinerama xext xtst xau xrender xdmcp recordp LDFLAGS+= -L${LOCALBASE}/lib USE_OPENSSL= yes USE_ICONV= yes -.if !defined(WITHOUT_NLS) -USE_GETTEXT= yes -.endif GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include MAN1= x11vnc.1 PORTDOCS= AUTHORS COPYING ChangeLog NEWS README README.LibVNCServer TODO +OPTIONS= NLS "Build with gettext support" on \ + AVAHI "Enable AVAHI (ZeroConf)" on + +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +.endif + +.if !defined(WITHOUT_AVAHI) +LIB_DEPENDS+= avahi-common:${PORTSDIR}/net/avahi-app +.else +CONFIGURE_ARGS+= --without-avahi +.endif + post-patch: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ ${WRKSRC}/configure @@ -49,4 +61,4 @@ post-install: @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/ .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |