blob: 1a64dd9f14cef7eeeef47e08929f0460c7fd55a6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# New ports collection makefile for: surfraw
# Date created: 2000-08-03
# Whom: Christian Weisgerber <naddy@mips.inka.de>
#
# $FreeBSD$
PORTNAME= surfraw
PORTVERSION= 2.2.8
CATEGORIES= www
MASTER_SITES= http://surfraw.alioth.debian.org/dist/
MAINTAINER= jadawin@FreeBSD.org
COMMENT= Command line interface to popular WWW search engines
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_PERL5= yes
MAN1= elvi.1sr \
opensearch-discover.1 \
opensearch-genquery.1 \
surfraw-update-path.1 \
surfraw.1
post-patch: .SILENT
${REINPLACE_CMD} '\|xdg/surfraw|d' ${WRKSRC}/Makefile.in
${REINPLACE_CMD} -e 's|/bin/bash|${SH}|g' \
-e 's/^function[[:space:]]//' \
${WRKSRC}/examples/uzbl_load_url_from_surfraw.IN
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/examples/uzbl_load_url_from_surfraw \
${PREFIX}/bin
${MKDIR} ${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKSRC}/surfraw-bash-completion \
${PREFIX}/etc/bash_completion.d/surfraw
.for f in surfraw.bookmarks surfraw.conf
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/etc/${f}.sample
@if [ ! -f ${PREFIX}/etc/${f} ]; then \
${INSTALL_DATA} ${PREFIX}/etc/${f}.sample \
${PREFIX}/etc/${f}; \
fi
.endfor
.include "${.CURDIR}/manpages"
.include <bsd.port.mk>
|