1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

net-im/sshout: fix optimization compiling option and update optional dependency

This update fixes the followings:
  - The current upstream Makefile appends '-O1' to CFLAGS, which would
    inadvertently override any previous optimization option that passed by the user.
  - www/elinks has recently been updated to a supported version
    add optional dependency to it, and remove the related note in 'pkg-message'.

PR:	263391
This commit is contained in:
WHR 2022-04-18 22:36:18 +08:00 committed by Mikael Urankar
parent 3d03ce63e4
commit 45125c023d
3 changed files with 22 additions and 9 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= sshout
DISTVERSION= 1.2.0
PORTREVISION= 1
CATEGORIES= net-im
MASTER_SITES= SF/sshout/${PORTNAME}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
@ -29,13 +30,19 @@ GROUPS= sshout
OPTIONS_DEFINE= NLS IRC
OPTIONS_DEFAULT= NLS
OPTIONS_GROUP= SUGGESTED
OPTIONS_GROUP_SUGGESTED=XCLIP
OPTIONS_GROUP_SUGGESTED=XCLIP ELINKS
SUGGESTED_DESC= Suggested ports
XCLIP_DESC= Add dependency to xclip(1) for CLI pasteimage support
XCLIP_RUN_DEPENDS= xclip:x11/xclip
ELINKS_DESC= Add dependency to elinks(1) for showing HTML messages in CLI
ELINKS_RUN_DEPENDS= elinks>=0.12:www/elinks
NLS_USES= gettext
NLS_MAKE_ENV= NLS_LIBS="-l intl"
NLS_MAKE_ENV_OFF= NO_NLS=1
IRC_DESC= Experimental IRC over SSH frontend
IRC_CPPFLAGS= -D ENABLE_IRC_FRONTEND=1
@ -43,8 +50,4 @@ OPTIONS_SUB= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MXCLIP}
RUN_DEPENDS+= ${LOCALBASE}/bin/xclip:x11/xclip
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
--- Makefile.orig 2020-09-01 11:34:08 UTC
+++ Makefile
@@ -4,7 +4,7 @@
INSTALL ?= install
MSGFMT ?= msgfmt
-CFLAGS += -Wall -Wno-switch -Wno-pointer-to-int-cast -O1
+CFLAGS += -Wall -Wno-switch -Wno-pointer-to-int-cast
#LIBS +=
#SOCKET_LIBS := -l socket

View File

@ -6,8 +6,7 @@ In order to start sshout service you need some more configuration:
If you installed SSHOUT for the first time, use sshoutcfg(8) to add users.
You must have SSH server running and accepting public key authentication.
For HTML messages be properly displayed in CLI frontend, elinks(1) version
0.12 or later is required; however the ports tree currently doesn't have an
up-to-date elinks version available. You will have to install the required
version manually, if such support is needed.
Suggested ports:
x11/xclip For '/pasteimage' command to work in CLI frontend
www/elinks For HTML messages be properly displayed in CLI frontend
#### END