mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Add nxcomp
This commit is contained in:
parent
7668605620
commit
977160571a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=367755
@ -224,6 +224,7 @@
|
||||
SUBDIR += nvidia-driver-96
|
||||
SUBDIR += nvidia-settings
|
||||
SUBDIR += nvidia-xconfig
|
||||
SUBDIR += nxcomp
|
||||
SUBDIR += ooxcb
|
||||
SUBDIR += p5-Clipboard
|
||||
SUBDIR += p5-X11-GUITest
|
||||
|
29
x11/nxcomp/Makefile
Normal file
29
x11/nxcomp/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= nxcomp
|
||||
PORTVERSION= 3.5.0.27
|
||||
MASTER_SITES= http://code.x2go.org/releases/source/nx-libs/
|
||||
CATEGORIES= x11 devel
|
||||
DISTNAME= nx-libs-${PORTVERSION}-lite
|
||||
|
||||
MAINTAINER= bapt@FreeBSD.org
|
||||
COMMENT= NX X11 protocol compression libraries
|
||||
|
||||
WRKSRC= ${WRKDIR}/nx-libs-${PORTVERSION}/${PORTNAME}
|
||||
|
||||
USE_AUTOTOOLS= autoconf
|
||||
USE_XORG= xproto
|
||||
GNU_CONFIGURE= yes
|
||||
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
||||
libpng15.so:${PORTSDIR}/graphics/png
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s,libdir}/nx,libdir},g" ${WRKSRC}/Makefile.in
|
||||
@${REINPLACE_CMD} -e "s|/usr/NX/bin:/opt/NX/bin:/usr/local/NX|${PREFIX}|" \
|
||||
${WRKSRC}/Children.cpp
|
||||
|
||||
post-install:
|
||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libXcomp.so.3.5*
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
2
x11/nxcomp/distinfo
Normal file
2
x11/nxcomp/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (nx-libs-3.5.0.27-lite.tar.gz) = efbf6eed02b5eb2892828e2237dff4591442e96d0ac83f3d75c62a15101d6a27
|
||||
SIZE (nx-libs-3.5.0.27-lite.tar.gz) = 513262
|
52
x11/nxcomp/files/patch-Types.h
Normal file
52
x11/nxcomp/files/patch-Types.h
Normal file
@ -0,0 +1,52 @@
|
||||
Description: In Types.h, don't use STL internals on libc++.
|
||||
Author: Clemens Lang <cal@macports.org>
|
||||
Abstract:
|
||||
The nx-libs-lite package does not compile on OS X Mavericks because
|
||||
Apple's clang compilers now default to compiling against the libc++ STL
|
||||
rather than (their outdated copy of) libstdc++.
|
||||
.
|
||||
While the compiler still allows changing that, we should not rely on
|
||||
this being possible forever.
|
||||
.
|
||||
The compiler chokes in Types.h, specifically the clear() methods in
|
||||
subclasses of vectors that use implementation details of the GNU STL.
|
||||
The attached patch fixes these compilation issues by not overriding the
|
||||
clear() method when compiling against libc++, since the libc++ headers
|
||||
seem to do essentially the same as the overriden method.
|
||||
--- Types.h 2013-11-05 01:35:22.000000000 +0100
|
||||
+++ Types.h 2013-11-05 01:37:30.000000000 +0100
|
||||
@@ -55,6 +55,9 @@
|
||||
return &*(vector < unsigned char >::begin());
|
||||
}
|
||||
|
||||
+ // Avoid overriding clear() when using libc++. Fiddling with STL internals
|
||||
+ // doesn't really seem like a good idea to me anyway.
|
||||
+ #ifndef _LIBCPP_VECTOR
|
||||
void clear()
|
||||
{
|
||||
#if defined(__STL_USE_STD_ALLOCATORS) || defined(__GLIBCPP_INTERNAL_VECTOR_H)
|
||||
@@ -95,12 +98,16 @@
|
||||
|
||||
#endif /* #if defined(__STL_USE_STD_ALLOCATORS) || defined(__GLIBCPP_INTERNAL_VECTOR_H) */
|
||||
}
|
||||
+ #endif /* #ifdef _LIBCPP_VECTOR */
|
||||
};
|
||||
|
||||
class T_messages : public vector < Message * >
|
||||
{
|
||||
public:
|
||||
|
||||
+ // Avoid overriding clear() when using libc++. Fiddling with STL internals
|
||||
+ // doesn't really seem like a good idea to me anyway.
|
||||
+ #ifndef _LIBCPP_VECTOR
|
||||
void clear()
|
||||
{
|
||||
#if defined(__STL_USE_STD_ALLOCATORS) || defined(__GLIBCPP_INTERNAL_VECTOR_H)
|
||||
@@ -141,6 +148,7 @@
|
||||
|
||||
#endif /* #if defined(__STL_USE_STD_ALLOCATORS) || defined(__GLIBCPP_INTERNAL_VECTOR_H) */
|
||||
}
|
||||
+ #endif /* #ifndef _LIBCPP_VECTOR */
|
||||
};
|
||||
|
||||
typedef md5_byte_t * T_checksum;
|
4
x11/nxcomp/pkg-descr
Normal file
4
x11/nxcomp/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
nxcomp is a library compressing X commands to be passed over network
|
||||
for use with x2go.
|
||||
|
||||
WWW: http://wiki.x2go.org/
|
13
x11/nxcomp/pkg-plist
Normal file
13
x11/nxcomp/pkg-plist
Normal file
@ -0,0 +1,13 @@
|
||||
include/nx/MD5.h
|
||||
include/nx/NX.h
|
||||
include/nx/NXalert.h
|
||||
include/nx/NXmitshm.h
|
||||
include/nx/NXpack.h
|
||||
include/nx/NXproto.h
|
||||
include/nx/NXrender.h
|
||||
include/nx/NXvars.h
|
||||
lib/libXcomp.a
|
||||
lib/libXcomp.so
|
||||
lib/libXcomp.so.3
|
||||
lib/libXcomp.so.3.5.0
|
||||
@dirrmtry include/nx
|
Loading…
Reference in New Issue
Block a user