1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/net/linux-nx-client/Makefile
Boris Samorodov 0263b9d868 Welcome to the new linux ports infrastructure which allows using
both current (fc4) and future linux (f8) distributions at one
ports tree.

The patch contains full changes to ports/Mk files and all ports involved.
But only infrastructure is changed. The resulting packages are the same as
before. Hence no need to bump PORTREVISIONs.

The idea was taken from bsd.gnome.mk and others.

More than 130 ports are switched to follow a new linux infrastructure
introduced by changes to bsd.port.mk, bsd.linux-rpm.mk and a new
bsd.linux-apps.mk.

Thanks for all who was involved and helped me with this work.
And help from Alexander Leidinger was incredible.

Other changes are coming. Stay tuned!

PR:		ports/132510
Submitted by:	bsam (me)
Exp-run by:	portmgr (pav)
2009-03-19 17:28:51 +00:00

68 lines
2.1 KiB
Makefile

# New ports collection makefile for: linux-nx-client
# Date created: 01 Sep 2004
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#
PORTNAME= linux-nx-client
PORTVERSION= 2.1.0
PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= http://web04.nomachine.com/download/${PORTVERSION}/Linux/
DISTNAME= nxclient-${PORTVERSION}-17.i386
MAINTAINER= ports@FreeBSD.org
COMMENT= The NoMachine NX client
NO_WRKSUBDIR= yes
ONLY_FOR_ARCHS= i386 amd64
USE_LINUX= yes
USE_LINUX_APPS= libaudiofile jpeg png
NO_BUILD= yes
INSTALL_ICONS= yes
NXSRC= ${WRKSRC}/NX
NXDST= ${PREFIX}/lib/linux-nx-client
PLIST_SUB+= PORTVERSION=${PORTVERSION}
do-install:
${MKDIR} ${NXDST}/bin
${INSTALL_PROGRAM} ${NXSRC}/bin/* ${NXDST}/bin
${MKDIR} ${NXDST}/lib
.for f in libXcomp libXcompsh
${INSTALL_DATA} ${NXSRC}/lib/${f}.so.${PORTVERSION} ${NXDST}/lib
${LN} -sf ${f}.so.${PORTVERSION} ${NXDST}/lib/${f}.so
${LN} -sf ${f}.so.${PORTVERSION} ${NXDST}/lib/${f}.so.2
.endfor
${INSTALL_DATA} ${NXSRC}/lib/libcrypto.so.0.9.8 ${NXDST}/lib
${LN} -sf libcrypto.so.0.9.8 ${NXDST}/lib/libcrypto.so
${MKDIR} ${NXDST}/share
${INSTALL_DATA} ${NXSRC}/share/keyboards ${NXDST}/share
${MKDIR} ${NXDST}/share/keys
${INSTALL_DATA} ${NXSRC}/share/keys/* ${NXDST}/share/keys
${MKDIR} ${NXDST}/share/images
${INSTALL_DATA} ${NXSRC}/share/images/* ${NXDST}/share/images
${MKDIR} ${LOCALBASE}/share/pixmaps
${INSTALL_DATA} ${NXSRC}/share/icons/*.png ${LOCALBASE}/share/pixmaps
${MKDIR} ${LOCALBASE}/share/icons/crystalsvg/48x48 \
${LOCALBASE}/share/icons/crystalsvg/32x32
${INSTALL_DATA} ${NXSRC}/share/icons/nx-desktop.png \
${LOCALBASE}/share/icons/crystalsvg/48x48
.for f in nx.png nxclient-admin.png nxclient-wizard.png
${INSTALL_DATA} ${NXSRC}/share/icons/${f} \
${LOCALBASE}/share/icons/crystalsvg/32x32
.endfor
.for f in nxclient nxesd nxkill nxservice nxssh
${ECHO_CMD} "#!/bin/sh" > ${WRKSRC}/${f}
${ECHO_CMD} "export NXDIR=${NXDST}" >> ${WRKSRC}/${f}
${ECHO_CMD} "exec \$$NXDIR/bin/${f} \"\$$@\"" >> ${WRKSRC}/${f}
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/bin
${BRANDELF} -t Linux ${NXDST}/bin/${f}
.endfor
.include <bsd.port.mk>