summaryrefslogtreecommitdiffstats
path: root/www/larbin/Makefile
blob: 466d275d8ce593be895453c3c7371d1d5ef59d7a (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# New ports collection makefile for: 	larbin
# Date Created:		26 March 2002
# Whom:			Hiten Pandya <hiten@uk.FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	larbin
PORTVERSION=	2.6.2
CATEGORIES=	www
MASTER_SITES=	ftp://ftp.sourceforge.net/pub/sourceforge/larbin/

MAINTAINER=	hiten@uk.FreeBSD.org
COMMENT=	A powerful HTTP crawler with an easy interface

BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash2

USE_GMAKE=	yes
GNU_CONFIGURE=	yes
USE_REINPLACE=	yes
PATCH_WRKSRC=	${WRKSRC}/src
MAKE_ARGS=	CXX=${CXX}

.include <bsd.port.pre.mk>

.if ${XFREE86_VERSION} == 3
BUILD_DEPENDS+=	makedepend:${PORTSDIR}/devel/imake
.else
BUILD_DEPENDS+=	makedepend:${PORTSDIR}/devel/imake-4
.endif

post-patch:
	@${SED} -e 's,CC=,CC?=,' -e 's,CFLAGS=-O3,CFLAGS+=,' < \
		${WRKSRC}/adns/Makefile > ${WRKSRC}/adns/Makefile.new
	@${MV} ${WRKSRC}/adns/Makefile.new ${WRKSRC}/adns/Makefile
	${REINPLACE_CMD} -e 's,/bin/bash,${LOCALBASE}/bin/bash,' ${WRKSRC}/configure
	${REINPLACE_CMD} -e 's,CFLAGS:=-O3,CFLAGS+=,g ; s,CXXFLAGS:=-Wall -O3,CXXFLAGS+=,g' \
		${WRKSRC}/src/larbin.make

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/larbin ${PREFIX}/bin/
	@${INSTALL_DATA} ${WRKSRC}/larbin.conf ${PREFIX}/etc/larbin.conf.sample
	@${MKDIR} ${PREFIX}/share/larbin
	@${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/larbin/

pre-configure: config-message

config-message:
	@${ECHO} "====================================================================="
	@${ECHO} ""
	@${ECHO} "Make sure you have a look at the larbin documentation available at:"
	@${ECHO} "  http://larbin.sourceforge.net/custom-eng.html."
	@${ECHO} ""
	@${ECHO} "====================================================================="

post-install:
	@${ECHO} "====================================================================="
	@${ECHO} ""
	@${ECHO} "You must invoke larbin with the name of the configuration file, e.g:"
	@${ECHO} "larbin -c config-file"
	@${ECHO} ""
	@${ECHO} "Documentation: ${PREFIX}/share/larbin"
	@${ECHO} "Sample Configuration file: ${PREFIX}/etc/larbin.conf.sample"
	@${ECHO} ""
	@${ECHO} "====================================================================="

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud