freebsd-ports/net/tridiavnc/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

69 lines
1.8 KiB
Makefile

# Created by: dwcjr
# $FreeBSD$
PORTNAME= tridiavnc
PORTVERSION= 1.4
PORTREVISION= 5
CATEGORIES= net
MASTER_SITES= LOCAL/dwcjr
DISTNAME= DevVNC_unix
MAINTAINER= ports@FreeBSD.org
COMMENT= Display X and Win32 desktops on remote X/Win32/Java displays
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/unix/vnc_unixsrc
USES= imake:noman shebangfix perl5 tar:tgz
SHEBANG_FILES= vncserver
USE_XORG= ice sm x11 xaw xext xmu xt xpm
ALL_TARGET= World
XFREE86_HTML_MAN= no
MAKE_JOBS_UNSAFE=yes
CONFLICTS= tightvnc-[0-9]* vnc-[0-9]*
# .ifdef(TRIDIAVNC_BASE)
# PREFIX=${TRIDIAVNC_BASE}
# MAKE_ENV+= DESTDIR=${TRIDIAVNC_BASE}
# .endif
.include <bsd.port.pre.mk>
.if ${ARCH} != i386
BROKEN= Does not compile on ${MACHINE_ARCH}
PLIST_SUB+= XVNC="@comment "
.else
PLIST_SUB+= XVNC=""
.endif
# XXX Broken under clang
NO_XVNC= yes
post-patch:
.for file in vncviewer/Imakefile Xvnc/config/cf/vnclibs.def Xvnc/config/cf/Imake.tmpl
${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/${file}
.endfor
${REINPLACE_CMD} -i '' -e 's|/usr/local/vnc/classes|${DATADIR}/classes|' \
${WRKSRC}/vncserver
# We have to frob a few things, and we want our own permissions, so it's easier
# to do the install ourselves.
post-install:
.if !defined(NO_XVNC)
${INSTALL_PROGRAM} ${WRKSRC}/Xvnc/programs/Xserver/Xvnc \
${STAGEDIR}${PREFIX}/bin/Xvnc
.endif
${INSTALL_PROGRAM} ${WRKSRC}/vncviewer/vncviewer \
${STAGEDIR}${PREFIX}/bin/vncviewer
${INSTALL_PROGRAM} ${WRKSRC}/vncpasswd/vncpasswd \
${STAGEDIR}${PREFIX}/bin/vncpasswd
${INSTALL_PROGRAM} ${WRKSRC}/vncconnect/vncconnect \
${STAGEDIR}${PREFIX}/bin/vncconnect
${INSTALL_SCRIPT} ${WRKSRC}/vncserver \
${STAGEDIR}${PREFIX}/bin/vncserver
# Go install Java classes
${MKDIR} ${STAGEDIR}${PREFIX}/share/vnc
${CP} -R ${WRKSRC}/classes ${STAGEDIR}${PREFIX}/share/vnc
.include <bsd.port.post.mk>