pkgsrc/net/vnc/Makefile

86 lines
2.4 KiB
Makefile
Raw Normal View History

2021-05-24 21:49:01 +02:00
# $NetBSD: Makefile,v 1.64 2021/05/24 19:53:38 wiz Exp $
DISTNAME= vnc-3.3.3r2
PKGNAME= vnc-3.3.3.2
2021-05-24 21:49:01 +02:00
PKGREVISION= 14
1998-06-10 09:47:57 +02:00
CATEGORIES= net x11
2021-04-25 08:24:59 +02:00
#MASTER_SITES= ftp://ftp.uk.research.att.com/pub/vnc/dist/
DISTFILES= vnc-3.3.3r2_unixsrc.tgz \
vnc-3.3.2r2_doc.tgz
2008-06-18 13:12:53 +02:00
MAINTAINER= pkgsrc-users@NetBSD.org
2021-04-25 08:24:59 +02:00
#HOMEPAGE= https://www.cl.cam.ac.uk/research/dtg/attarchive/vnc/
COMMENT= Display X and Win32 desktops on remote X/Win32/Java displays
MAKE_JOBS_SAFE= no
DEPENDS+= vncviewer-[0-9]*:../../net/vncviewer
WRKSRC= ${WRKDIR}/vnc_unixsrc
NO_INSTALL_MANPAGES= yes
USE_IMAKE= yes
USE_TOOLS+= perl:run xauth:run
BUILD_DEFS+= IPV6_READY
BUILD_TARGET= World
MAKE_ENV+= CC=${CC:Q} #for make imake in Xvnc/config/imake
PKG_OPTIONS_VAR= PKG_OPTIONS.vnc
PKG_SUPPORTED_OPTIONS= inet6
PKG_SUGGESTED_OPTIONS= inet6
2012-11-08 11:58:07 +01:00
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
PATCHFILES= vnc-3.3.3r2-v6-20010421.diff.gz
PATCH_DIST_STRIP= -p1
USE_TOOLS+= patch
post-patch: patch-sockets
.PHONY: patch-sockets
patch-sockets:
cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/patch-sockets.c
.endif
# We have to frob a few things, and we want our own permissions, so it's easier
# to do the install ourselves.
.include "../../mk/bsd.prefs.mk"
SUBST_CLASSES+= paths
SUBST_FILES.paths= vncserver
SUBST_VARS.paths= X11BASE
SUBST_STAGE.paths= pre-configure
INSTALLATION_DIRS= bin share/doc/vnc
.if ${OPSYS} == "SunOS"
2013-02-28 02:21:56 +01:00
_WRAP_EXTRA_ARGS.CC+= -D_POSIX_SOURCE
CWRAPPERS_APPEND.cc+= -D_POSIX_SOURCE
SPECIAL_PERMS+= bin/Xvnc ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 2555
.endif
2013-02-28 02:21:56 +01:00
.if ${OS_VARIANT} == "SmartOS"
SUBST_CLASSES+= smartos
SUBST_STAGE.smartos= pre-configure
SUBST_FILES.smartos= Xvnc/config/cf/svr4.cf
SUBST_SED.smartos+= -e 's,/usr/ccs/bin/ar,/usr/bin/ar,g'
SUBST_SED.smartos+= -e 's,/usr/ccs/bin/make,${MAKE},g'
.endif
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/Xvnc/programs/Xserver/Xvnc ${DESTDIR}${PREFIX}/bin/Xvnc
${INSTALL_PROGRAM} ${WRKSRC}/vncconnect/vncconnect ${DESTDIR}${PREFIX}/bin/vncconnect
${SED} -e 's|/usr/local/vnc/classes|${PREFIX}/share/vnc/classes|g' \
-e 's|/usr/bin/perl|${PERL5}|g' \
< ${WRKSRC}/vncserver \
> ${WRKSRC}/vncserver.local
${INSTALL_SCRIPT} ${WRKSRC}/vncserver.local ${DESTDIR}${PREFIX}/bin/vncserver
cd ${WRKDIR}; \
${INSTALL_DATA} *.GIF *.css *.gif *.jpg *.htm *.html *.pdf \
${DESTDIR}${PREFIX}/share/doc/vnc
2007-08-06 16:54:04 +02:00
.include "../../x11/libXext/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"