openbsd-ports/net/ssvnc/Makefile
2009-10-31 16:03:01 +00:00

84 lines
2.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.12 2009/10/31 16:03:01 sthen Exp $
COMMENT-gui = enhanced TightVNC client GUI and wrappers
COMMENT-main = enhanced TightVNC client
V = 1.0.24
DISTNAME = ssvnc-$V.src
PKGNAME = ssvnc-$V
FULLPKGNAME-gui = ssvnc-$V
FULLPKGNAME-main = ssvnc-viewer-$V
CATEGORIES = net x11
HOMEPAGE = http://www.karlrunge.com/x11vnc/ssvnc.html
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=ssvnc/}
MULTI_PACKAGES =-main -gui
MAKE_ENV = CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
NO_SHARED_LIBS=${NO_SHARED_LIBS}
WRKDIST = ${WRKDIR}/ssvnc-$V
NO_REGRESS = Yes
MODULES = x11/tk
WANTLIB-main = ICE SM X11 Xau Xaw Xdmcp Xext Xpm Xmu Xp Xt c z
LIB_DEPENDS-main = jpeg.>=62.::graphics/jpeg
WANTLIB-gui = c crypto
RUN_DEPENDS-gui = ::devel/desktop-file-utils \
::net/avahi,no_gtk,no_mono,no_qt3,no_qt4 \
::net/ssvnc,-main \
::security/stunnel \
${MODTK_RUN_DEPENDS}
CONFIGURE_STYLE = imake noman
XMKMF = xmkmf
VNCSRC = ${WRKSRC}/vnc_unixsrc/
VNCLIB = ${PREFIX}/lib/ssvnc/
pre-configure:
${SUBST_CMD} ${WRKSRC}/scripts/ssvnc
do-configure:
cd ${VNCSRC}/libvncauth; ${XMKMF}
cd ${VNCSRC}/vncviewer; ${XMKMF}
do-build:
cd ${VNCSRC}/libvncauth; ${SETENV} ${MAKE_ENV} ${MAKE}
cd ${VNCSRC}/vncviewer; ${SETENV} ${MAKE_ENV} ${MAKE}
cd ${WRKSRC}/vncstorepw; ${SETENV} ${MAKE_ENV} ${MAKE}
do-install:
${INSTALL_PROGRAM_DIR} ${VNCLIB}
cd ${WRKSRC}/scripts; tar cf - * | tar xf - -C ${VNCLIB}
${INSTALL_MAN} ${WRKSRC}/man/man1/ssvnc.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man/man1/ssvncviewer.1 ${PREFIX}/man/man1/vncviewer.1
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/ssvnc.desktop ${PREFIX}/share/applications
${INSTALL_PROGRAM} ${VNCSRC}/vncviewer/vncviewer ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/vncstorepw/vncstorepw ${VNCLIB}
${INSTALL_PROGRAM} ${WRKSRC}/vncstorepw/ultravnc_dsm_helper ${VNCLIB}
.for i in vncstorepw/lim_accept.so vncstorepw/unwrap.so
if test -r ${WRKSRC}/$i; then ${INSTALL_DATA} ${WRKSRC}/$i ${VNCLIB}; fi
.endfor
.for i in ssvnc tsvnc sshvnc
${WRKSRC}/wr_tool ${PREFIX}/bin/$i ${TRUEPREFIX}/lib/ssvnc/$i
.endfor
.include <bsd.port.mk>