freebsd-ports/textproc/urlview/Makefile
David E. O'Brien 70a3783ac4 Rev 1.22 (PR 102954) was a bad idea. This port should not have any default
dependencies as it causes too much trouble for folks using this port not with
Firefox.  'pkg_add -r urlview' should not add X11 and Firefox to ones system.

PR:		142378, 144223, 150372
Submitted by:	Erwan David <erwan@rail.eu.org>, max, Arthur Mesh <arthurmesh@gmail.com>
2010-09-09 19:51:37 +00:00

48 lines
1.2 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: urlview
# Date created: 21 April 1998
# Whom: Josh Gilliam <josh@quick.net>
#
# $FreeBSD$
#
PORTNAME= urlview
PORTVERSION= 0.9
PORTREVISION= 6
CATEGORIES= textproc www
MASTER_SITES= ftp://ftp.mutt.org/mutt/contrib/ \
ftp://ftp.sunsite.auc.dk/pub/mail/mutt/contrib/ \
ftp://ftp.cs.tu-berlin.de/pub/net/mail/mutt/contrib/
#PATCH_SITES= http://feeding.frenzy.com/~rainking/
#PATCHFILES= urlview.diff
MAINTAINER= ports@FreeBSD.org
COMMENT= URL extractor/launcher
GNU_CONFIGURE= yes
MAN1= urlview.1
SUB_FILES= gecko.sh
SUB_LIST= GECKO=${GECKO}
.include <bsd.port.pre.mk>
.if defined(WITH_GECKO)
USE_GECKO= firefox-devel firefox35 seamonkey
.include "${PORTSDIR}/Mk/bsd.gecko.mk"
.elif defined(WITH_SEAMONKEY)
RUN_DEPENDS+= ${LOCALBASE}/lib/seamonkey/seamonkey-bin:${PORTSDIR}/www/seamonkey
GECKO= seamonkey
.endif
post-patch:
@${REINPLACE_CMD} -e "s,!!PREFIX!!,${PREFIX},g" \
-e "s,/usr/X11R6,${X11BASE},g" ${WRKSRC}/url_handler.sh
@${REINPLACE_CMD} -e \
"s,/etc/urlview.conf,${PREFIX}/etc/urlview.conf,g" ${WRKSRC}/*
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/url_handler.sh ${WRKDIR}/gecko.sh \
${PREFIX}/bin
.include <bsd.port.post.mk>