aboutsummaryrefslogtreecommitdiffstats
path: root/www/larbin
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2013-05-29 13:28:26 +0800
committermiwi <miwi@FreeBSD.org>2013-05-29 13:28:26 +0800
commita09729d069002a738363c7e4f0099722ffdf416e (patch)
tree41e93d5306022488d4c32b666e36437a30184390 /www/larbin
parentb0029744a289318cac4aa933afa9357b31b62fec (diff)
downloadfreebsd-ports-gnome-a09729d069002a738363c7e4f0099722ffdf416e.tar.gz
freebsd-ports-gnome-a09729d069002a738363c7e4f0099722ffdf416e.tar.zst
freebsd-ports-gnome-a09729d069002a738363c7e4f0099722ffdf416e.zip
- Fix build with clang
- Support PORTDOCS/PLIST_FILES - Add MAKE_JOBS_UNSAFE - Trim header PR: 179058 Submitted by: Ports Fury
Diffstat (limited to 'www/larbin')
-rw-r--r--www/larbin/Makefile88
-rw-r--r--www/larbin/pkg-plist10
2 files changed, 48 insertions, 50 deletions
diff --git a/www/larbin/Makefile b/www/larbin/Makefile
index 855d6220eec0..c400510c1de8 100644
--- a/www/larbin/Makefile
+++ b/www/larbin/Makefile
@@ -1,61 +1,69 @@
-# New ports collection makefile for: larbin
-# Date Created: 26 March 2002
-# Whom: Hiten Pandya <hiten@uk.FreeBSD.org>
-#
+# Created by: Hiten Pandya <hiten@uk.FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= larbin
PORTVERSION= 2.6.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
-COMMENT= A powerful HTTP crawler with an easy interface
+COMMENT= Powerful HTTP crawler with an easy interface
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
makedepend:${PORTSDIR}/devel/makedepend
+OPTIONS_DEFINE= DOCS
+
+USES= shebangfix
+SHEBANG_FILES= configure
USE_GMAKE= yes
GNU_CONFIGURE= yes
-MAKE_ARGS= CXX=${CXX}
+MAKE_JOBS_UNSAFE= yes
-.include <bsd.port.pre.mk>
+PORTDOCS= *
+PLIST_FILES= bin/larbin etc/larbin.conf.sample
-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
+.include <bsd.port.options.mk>
-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-everything::
+ @${ECHO_MSG} "====================================================================="
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Make sure you have a look at the larbin documentation available at:"
+ @${ECHO_MSG} " http://larbin.sourceforge.net/custom-eng.html."
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "====================================================================="
-pre-configure: config-message
+post-patch:
+ @${REINPLACE_CMD} -e \
+ '/CC=/s|echo|${TRUE:T}| ; \
+ /CXX=/s|echo|${TRUE:T}| ; \
+ /-lpthread/d' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e \
+ 's|CFLAGS:=-O3|CFLAGS+=| ; \
+ s|CXXFLAGS:=|CXXFLAGS+=| ; \
+ s|-O3|| ; \
+ s|-I-||' ${WRKSRC}/src/larbin.make
+ @${REINPLACE_CMD} -e \
+ '/delete \[\] tab/s|^|//|' ${WRKSRC}/src/utils/histogram.cc
-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} "====================================================================="
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/larbin ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/larbin.conf ${PREFIX}/etc/larbin.conf.sample
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
+.endif
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>
+ @${ECHO_MSG} "====================================================================="
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "You must invoke larbin with the name of the configuration file, e.g:"
+ @${ECHO_MSG} "larbin -c config-file"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Documentation: ${DOCSDIR}"
+ @${ECHO_MSG} "Sample Configuration file: ${PREFIX}/etc/larbin.conf.sample"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "====================================================================="
+
+.include <bsd.port.mk>
diff --git a/www/larbin/pkg-plist b/www/larbin/pkg-plist
deleted file mode 100644
index 8b07e74c0896..000000000000
--- a/www/larbin/pkg-plist
+++ /dev/null
@@ -1,10 +0,0 @@
-bin/larbin
-etc/larbin.conf.sample
-share/larbin/custom-eng.html
-share/larbin/download.html
-share/larbin/index-eng.html
-share/larbin/index.html
-share/larbin/l-en.jpg
-share/larbin/l-fr.jpg
-share/larbin/use-eng.html
-@dirrm share/larbin