pkgsrc/net/tightvnc/Makefile

98 lines
3.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.56 2020/01/26 17:31:56 rillig Exp $
2001-09-23 03:34:29 +02:00
DISTNAME= tightvnc-1.3.10
PKGREVISION= 18
2001-09-23 03:34:29 +02:00
CATEGORIES= net x11
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
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
CONFLICTS= vnc-[0-9]* vncviewer-[0-9]*
2001-09-23 03:34:29 +02:00
WRKSRC= ${WRKDIR}/vnc_unixsrc
2001-09-23 03:34:29 +02:00
USE_IMAKE= yes
USE_TOOLS+= perl:run
2009-03-02 23:39:11 +01:00
MAKE_JOBS_SAFE= no
2001-09-23 03:34:29 +02:00
BUILD_TARGET= World
2001-09-23 03:34:29 +02:00
TOOL_DEPENDS+= tradcpp-[0-9]*:../../devel/tradcpp
.include "../../mk/bsd.prefs.mk"
CPPFLAGS+= -DDEFAULT_CPP=\"${PREFIX}/bin/tradcpp\"
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CPPFLAGS+= -Wno-error=return-type
.endif
# 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
CWRAPPERS_APPEND.cc+= -DDDXTIME -D_XSERVER64 -DGCCUSESGAS
.endif
.if ${X11_TYPE} == "modular"
DEPENDS+= rgb>=1.0.1:../../x11/rgb
RGBPATH= ${PREFIX}/share/X11/rgb
.else
RGBPATH= ${X11BASE}/lib/X11/rgb
.endif
FONTPATH= ${PREFIX}/share/fonts/X11/misc,${PREFIX}/share/fonts/X11/75dpi,${X11BASE}/lib/X11/fonts/misc,${X11BASE}/lib/X11/fonts/75dpi
SUBST_CLASSES+= hpath
SUBST_STAGE.hpath= pre-configure
SUBST_MESSAGE.hpath= fixing hardcoded paths
SUBST_FILES.hpath= vncserver tightvncserver.conf
SUBST_SED.hpath+= -e 's|/usr/local/vnc/classes|${PREFIX}/share/vnc/classes|g'
SUBST_SED.hpath+= -e 's|/etc/tightvncserver.conf|${PKG_SYSCONFDIR}/tightvncserver.conf|g'
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'
REPLACE_PERL= vncserver
post-extract:
(${ECHO} "#define DefaultRGBDatabase ${RGBPATH}";\
${ECHO} "#define DefaultFontPath ${FONTPATH}")\
>> ${WRKSRC}/Xvnc/config/cf/site.def
CONF_FILES+= ${PREFIX}/share/examples/tightvnc/tightvncserver.conf \
${PKG_SYSCONFDIR}/tightvncserver.conf
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/examples/tightvnc
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/Xvnc/programs/Xserver/Xvnc \
${DESTDIR}${PREFIX}/bin/Xvnc
${INSTALL_MAN} ${WRKSRC}/Xvnc/programs/Xserver/Xvnc.man \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/Xvnc.1
${INSTALL_PROGRAM} ${WRKSRC}/vncconnect/vncconnect \
${DESTDIR}${PREFIX}/bin/vncconnect
${INSTALL_MAN} ${WRKSRC}/vncconnect/vncconnect.man \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/vncconnect.1
${INSTALL_PROGRAM} ${WRKSRC}/vncpasswd/vncpasswd \
${DESTDIR}${PREFIX}/bin/vncpasswd
${INSTALL_MAN} ${WRKSRC}/vncpasswd/vncpasswd.man \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/vncpasswd.1
${INSTALL_SCRIPT} ${WRKSRC}/vncserver ${DESTDIR}${PREFIX}/bin/vncserver
${INSTALL_MAN} ${WRKSRC}/vncserver.man \
${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"
.include "../../mk/jpeg.buildlink3.mk"
.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"