2020-01-26 18:30:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.56 2020/01/26 17:31:56 rillig Exp $
|
2001-09-23 03:34:29 +02:00
|
|
|
|
2009-06-08 17:23:26 +02:00
|
|
|
DISTNAME= tightvnc-1.3.10
|
2020-01-18 22:48:19 +01:00
|
|
|
PKGREVISION= 18
|
2001-09-23 03:34:29 +02:00
|
|
|
CATEGORIES= net x11
|
2003-11-27 18:27:29 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=vnc-tight/}
|
|
|
|
DISTFILES= ${DISTNAME}_unixsrc.tar.bz2
|
2001-09-23 03:34:29 +02:00
|
|
|
|
2008-06-18 13:12:53 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://www.tightvnc.com/
|
2001-09-23 03:34:29 +02:00
|
|
|
COMMENT= Display X and Win32 desktops on remote X/Win32/Java displays
|
|
|
|
|
2009-04-27 20:35:30 +02:00
|
|
|
CONFLICTS= vnc-[0-9]* vncviewer-[0-9]*
|
2001-09-23 03:34:29 +02:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/vnc_unixsrc
|
2001-09-23 03:34:29 +02:00
|
|
|
USE_IMAKE= yes
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2009-03-02 23:39:11 +01:00
|
|
|
MAKE_JOBS_SAFE= no
|
2001-09-23 03:34:29 +02:00
|
|
|
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= World
|
2001-09-23 03:34:29 +02:00
|
|
|
|
2013-08-18 18:36:31 +02:00
|
|
|
TOOL_DEPENDS+= tradcpp-[0-9]*:../../devel/tradcpp
|
2013-07-02 14:15:36 +02:00
|
|
|
|
2007-06-17 22:58:49 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2013-07-02 14:15:36 +02:00
|
|
|
CPPFLAGS+= -DDEFAULT_CPP=\"${PREFIX}/bin/tradcpp\"
|
|
|
|
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
|
|
CPPFLAGS+= -Wno-error=return-type
|
|
|
|
.endif
|
|
|
|
|
2007-06-17 22:58:49 +02:00
|
|
|
# XXX - this should go into Xvnc's NetBSD.cf, but imake doesn't
|
|
|
|
# seem to pick it up. Someone with strong X-fu needs to look at it.
|
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64)
|
|
|
|
_WRAP_EXTRA_ARGS.CC+= -DDDXTIME -D_XSERVER64 -DGCCUSESGAS
|
2014-12-01 13:39:16 +01:00
|
|
|
CWRAPPERS_APPEND.cc+= -DDDXTIME -D_XSERVER64 -DGCCUSESGAS
|
2007-06-17 22:58:49 +02:00
|
|
|
.endif
|
|
|
|
|
2007-07-01 02:13:31 +02:00
|
|
|
.if ${X11_TYPE} == "modular"
|
2007-07-01 02:25:07 +02:00
|
|
|
DEPENDS+= rgb>=1.0.1:../../x11/rgb
|
2007-07-01 02:13:31 +02:00
|
|
|
RGBPATH= ${PREFIX}/share/X11/rgb
|
|
|
|
.else
|
|
|
|
RGBPATH= ${X11BASE}/lib/X11/rgb
|
|
|
|
.endif
|
2014-06-01 19:56:57 +02:00
|
|
|
FONTPATH= ${PREFIX}/share/fonts/X11/misc,${PREFIX}/share/fonts/X11/75dpi,${X11BASE}/lib/X11/fonts/misc,${X11BASE}/lib/X11/fonts/75dpi
|
2007-07-01 02:13:31 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= hpath
|
|
|
|
SUBST_STAGE.hpath= pre-configure
|
|
|
|
SUBST_MESSAGE.hpath= fixing hardcoded paths
|
2009-06-08 17:23:26 +02:00
|
|
|
SUBST_FILES.hpath= vncserver tightvncserver.conf
|
2007-07-01 02:13:31 +02:00
|
|
|
SUBST_SED.hpath+= -e 's|/usr/local/vnc/classes|${PREFIX}/share/vnc/classes|g'
|
2009-06-08 17:23:26 +02:00
|
|
|
SUBST_SED.hpath+= -e 's|/etc/tightvncserver.conf|${PKG_SYSCONFDIR}/tightvncserver.conf|g'
|
2007-07-01 02:13:31 +02:00
|
|
|
|
2017-08-22 11:05:33 +02:00
|
|
|
SUBST_CLASSES.SunOS+= ccspath
|
|
|
|
SUBST_STAGE.ccspath= pre-configure
|
|
|
|
SUBST_FILES.ccspath= Xvnc/config/cf/svr4.cf
|
|
|
|
SUBST_SED.ccspath= -e 's,/usr/ccs/bin/make,${MAKE},g'
|
|
|
|
|
2007-07-01 02:13:31 +02:00
|
|
|
REPLACE_PERL= vncserver
|
|
|
|
|
|
|
|
post-extract:
|
2007-07-01 02:25:07 +02:00
|
|
|
(${ECHO} "#define DefaultRGBDatabase ${RGBPATH}";\
|
|
|
|
${ECHO} "#define DefaultFontPath ${FONTPATH}")\
|
2007-07-01 02:13:31 +02:00
|
|
|
>> ${WRKSRC}/Xvnc/config/cf/site.def
|
|
|
|
|
2009-06-08 17:23:26 +02:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/tightvnc/tightvncserver.conf \
|
|
|
|
${PKG_SYSCONFDIR}/tightvncserver.conf
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/examples/tightvnc
|
|
|
|
|
|
|
|
do-install:
|
2002-10-20 16:33:53 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Xvnc/programs/Xserver/Xvnc \
|
2009-06-08 17:23:26 +02:00
|
|
|
${DESTDIR}${PREFIX}/bin/Xvnc
|
2002-10-20 16:33:53 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/Xvnc/programs/Xserver/Xvnc.man \
|
2009-06-08 17:23:26 +02:00
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/Xvnc.1
|
2002-10-20 16:33:53 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/vncconnect/vncconnect \
|
2009-06-08 17:23:26 +02:00
|
|
|
${DESTDIR}${PREFIX}/bin/vncconnect
|
2002-10-20 16:33:53 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/vncconnect/vncconnect.man \
|
2009-06-08 17:23:26 +02:00
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/vncconnect.1
|
2002-10-20 16:33:53 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/vncpasswd/vncpasswd \
|
2009-06-08 17:23:26 +02:00
|
|
|
${DESTDIR}${PREFIX}/bin/vncpasswd
|
2002-10-20 16:33:53 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/vncpasswd/vncpasswd.man \
|
2009-06-08 17:23:26 +02:00
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/vncpasswd.1
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/vncserver ${DESTDIR}${PREFIX}/bin/vncserver
|
2002-10-20 16:33:53 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/vncserver.man \
|
2009-06-08 17:23:26 +02:00
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/vncserver.1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tightvncserver.conf \
|
|
|
|
${DESTDIR}${PREFIX}/share/examples/tightvnc/tightvncserver.conf
|
2001-09-23 03:34:29 +02:00
|
|
|
|
2004-05-11 06:22:48 +02:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2010-12-23 12:44:24 +01:00
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
2007-06-17 22:58:49 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
2001-09-23 03:34:29 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|