mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
cba03c03e1
Changes: - src/sexp.c (do_vsexp_sscan): Return error for invalid args. - cipher/md.c (_gcry_md_info): Fix a segv in case of calling with wrong parameters. - cipher/primegen.c (_gcry_generate_elg_prime): Change to return an error code, possible NULL deref in call to prime generator. - cipher/dsa.c (generate): Take care of new return code. - cipher/elgamal.c (generate): Change to return an error code. Take care of _gcry_generate_elg_prime return code. - ecc: Support the non-standard 0x40 compression flag for EdDSA. - mpi: Extend the internal mpi_get_buffer. - mpi: Fix regression for powerpc-apple-darwin detection. - Fix bug inhibiting the use of the sentinel attribute in src/gcrypt.h.in - Fix building for the x32 target without asm modules in mpi/generic/mpi-asm-defs.h: Use a fixed value for the x32 ABI. - Fix ARM assembly when building __PIC__ - mpi: Fix a subtle bug setting spurious bits with in mpi_set_bit. * mpi/mpi-bit.c (_gcry_mpi_set_bit, _gcry_mpi_set_highbit): Clear allocated but not used bits before resizing. * tests/t-mpi-bits.c (set_bit_with_resize): New. - Use internal malloc function in fips.c. * src/fips.c (check_binary_integrity): s/gcry_malloc/xtrymalloc/. - pubkey: Re-map all deprecated RSA algo numbers. - cipher: Fix possible NULL dereference in cipher/md.c for being NULL. - Fix ARMv6 detection when CFLAGS modify target CPU architecture. PR: 193264 Approved by: cpm@fbsd.es (maintainer)
89 lines
2.4 KiB
Makefile
89 lines
2.4 KiB
Makefile
# Created by: Alexander Logvinov <ports@logvinov.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= remmina
|
|
PORTVERSION= 1.0.0
|
|
PORTREVISION= 5
|
|
CATEGORIES= net gnome
|
|
|
|
MAINTAINER= fluffy@FreeBSD.org
|
|
COMMENT= The GTK+ Remote Desktop Client
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USES= cmake gmake pkgconfig
|
|
USE_GNOME= atk gdkpixbuf2 glib20 gtk20 pango
|
|
INSTALLS_ICONS= yes
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -Wl,-rpath -Wl,${LOCALBASE}/lib -lX11 \
|
|
-lgio-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lgtk-x11-2.0
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
CFLAGS+= -I${WRKSRC}/remmina/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS} -fPIC
|
|
SUB_FILES= pkg-message
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= FreeRDP
|
|
GH_PROJECT= ${PORTNAME}
|
|
GH_COMMIT= 356c033
|
|
GH_TAGNAME= ${PORTVERSION}
|
|
WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-Remmina-${GH_COMMIT}
|
|
|
|
OPTIONS_DEFINE= SSH GCRYPT TERM AVAHI NLS
|
|
OPTIONS_DEFAULT= SSH GCRYPT TERM AVAHI NLS
|
|
SSH_DESC= Build with SSH tunneling support
|
|
GCRYPT_DESC= Build with libgcrypt support for password encryption
|
|
TERM_DESC= Build with terminal support
|
|
AVAHI_DESC= Build with Avahi support
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
CMAKE_ARGS+= --build=build
|
|
# now cannot build with gtk30 because requisite ports are old
|
|
CMAKE_ARGS+= -DGTK_VERSION=2
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USES+= gettext
|
|
PLIST_SUB+= NLS=""
|
|
LDFLAGS+= -lintl
|
|
.else
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSSH}
|
|
LIB_DEPENDS+= libssh_threads.so:${PORTSDIR}/security/libssh
|
|
.if ${OSVERSION} >= 800040
|
|
LDFLAGS+= -fstack-protector
|
|
.endif
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_LIBSSH=OFF
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGCRYPT}
|
|
LIB_DEPENDS+= libgcrypt.so:${PORTSDIR}/security/libgcrypt
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_GCRYPT=OFF
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTERM}
|
|
USE_GNOME+= vte
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_VTE=OFF
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MAVAHI}
|
|
LIB_DEPENDS+= libavahi-ui.so:${PORTSDIR}/net/avahi-gtk
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_AVAHI=OFF
|
|
.endif
|
|
|
|
post-patch:
|
|
# fix pkgconfig
|
|
${REINPLACE_CMD} -e 's,$${CMAKE_INSTALL_LIBDIR}/pkgconfig,libdata/pkgconfig,' ${WRKSRC}/remmina/CMakeLists.txt
|
|
# do not build plugins and locales , they are provided by separated ports
|
|
${REINPLACE_CMD} -e's|add_subdirectory(remmina-plugins)||' ${WRKSRC}/CMakeLists.txt
|
|
${REINPLACE_CMD} -e's|add_subdirectory(remmina-plugins-gnome)||' ${WRKSRC}/CMakeLists.txt
|
|
${REINPLACE_CMD} -e's|add_subdirectory(external_tools)||' ${WRKSRC}/remmina/CMakeLists.txt
|
|
.if !${PORT_OPTIONS:MNLS}
|
|
${REINPLACE_CMD} -e's|add_subdirectory(po)||' ${WRKSRC}/remmina/CMakeLists.txt
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|