security/putty: install icon and .desktop file

PR:		219095
Submitted by:	ehaupt@
This commit is contained in:
Matthias Andree 2017-05-13 13:16:18 +00:00
parent a149359059
commit 45cb65076f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=440836

View file

@ -2,6 +2,7 @@
PORTNAME= putty
PORTVERSION= 0.69
PORTREVISION= 1
CATEGORIES= security ipv6
MASTER_SITES= http://the.earth.li/~sgtatham/putty/${PORTVERSION}/ \
ftp://ftp.chiark.greenend.org.uk/users/sgtatham/putty-latest/
@ -39,7 +40,14 @@ USE_XORG= x11
PLIST_FILES+= bin/pageant bin/pterm bin/putty bin/puttytel
PLIST_FILES+= man/man1/pageant.1.gz man/man1/pterm.1.gz man/man1/putty.1.gz man/man1/puttytel.1.gz
PLIST_FILES+= share/pixmaps/putty.ico
MAKE_ARGS+= PUTTY_WITH_GTK=yes GTK_CONFIG="pkg-config gtk+-3.0 x11 --cflags"
DESKTOP_ENTRIES="PuTTY" \
"${COMMENT}" \
"${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
"${PORTNAME}" \
"" \
false
.else
MAKE_ARGS+= GTK_CONFIG=:
.endif
@ -73,4 +81,9 @@ post-patch:
s,make,${MAKE_CMD},'\
${WRKSRC}/${MAKEFILE}
post-install-GTK3-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/../windows/putty.ico \
${STAGEDIR}${PREFIX}/share/pixmaps/
.include <bsd.port.mk>