aboutsummaryrefslogtreecommitdiffstats
path: root/www/links
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2010-06-10 17:42:00 +0800
committerdemon <demon@FreeBSD.org>2010-06-10 17:42:00 +0800
commitf6499a8fb8a1aafce2d359d8585459dd886ae220 (patch)
treee00ae6bc218b13d7777a53e4891498b8a3dd896a /www/links
parentf9ee41c15cf43aae8983f55e68e2b512543fb0ad (diff)
downloadfreebsd-ports-gnome-f6499a8fb8a1aafce2d359d8585459dd886ae220.tar.gz
freebsd-ports-gnome-f6499a8fb8a1aafce2d359d8585459dd886ae220.tar.zst
freebsd-ports-gnome-f6499a8fb8a1aafce2d359d8585459dd886ae220.zip
Added installation of links.xpm to $PREFIX/share/pixmaps.
Made creation of .desktop file (DESKTOP_ENTRIES) conditional on X11. PR: 147702 Submitted by: Warren Block <wblock@wonkity.com>
Diffstat (limited to 'www/links')
-rw-r--r--www/links/Makefile27
1 files changed, 16 insertions, 11 deletions
diff --git a/www/links/Makefile b/www/links/Makefile
index e705f347e082..fa3e1de1e30c 100644
--- a/www/links/Makefile
+++ b/www/links/Makefile
@@ -7,7 +7,7 @@
PORTNAME= links
DISTVERSION= 2.2
-PORTREVISION= 4
+PORTREVISION= 5
PORTEPOCH= 1
CATEGORIES?= www
MASTER_SITES= http://links.twibright.com/download/
@@ -31,20 +31,13 @@ LDFLAGS+= -L${LOCALBASE}/lib
USE_OPENSSL= yes
USE_BZIP2= yes
-DESKTOP_ENTRIES="links" \
- "Lynx-like text WWW browser" \
- "${DATADIR}/links.xpm" \
- "links -g" \
- "Application;Network;WebBrowser;" \
- ${FALSE}
-
OPTIONS= SVGALIB "non-X11 graphics support" off \
DIRECTFB "directfb driver support" off \
X11 "X11 graphics support" on \
UTF8 "With gentoo utf-8 patch" on \
TRANS "Hack for background transparency" off
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.ifdef(WITH_SVGALIB) || defined(WITH_X11) || defined(WITH_DIRECTFB)
LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png \
@@ -72,6 +65,13 @@ CONFIGURE_ARGS+= --without-directfb
.if !defined(WITHOUT_X11)
USE_XORG= x11 xproto
CONFIGURE_ARGS+= --with-x
+DESKTOP_ENTRIES="links" \
+ "Lynx-like text WWW browser" \
+ "links" \
+ "links -g" \
+ "Application;Network;WebBrowser;" \
+ false
+PLIST_FILES+= share/pixmaps/links.xpm
.else
CONFIGURE_ARGS+= --without-x
.endif
@@ -87,9 +87,14 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-terminal.c.diff
.endif
MAN1= links.1
-PLIST_FILES= bin/links
+PLIST_FILES+= bin/links
post-patch:
@${REINPLACE_CMD} -e "s!/etc/!${PREFIX}/etc/!" ${WRKSRC}/os_dep.h
-.include <bsd.port.post.mk>
+.if !defined(WITHOUT_X11)
+post-install:
+ @${INSTALL} ${WRKSRC}/graphics/links.xpm ${PREFIX}/share/pixmaps/links.xpm
+.endif
+
+.include <bsd.port.mk>