ports/179058: www/larbin: Fix build with clang
KATO Tsuguru
tkato432 at yahoo.com
Tue May 28 18:40:01 UTC 2013
>Number: 179058
>Category: ports
>Synopsis: www/larbin: Fix build with clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue May 28 18:40:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 8.4-RELEASE i386
>Organization:
>Environment:
>Description:
- Fix build with clang
- Support PORTDOCS/PLIST_FILES
- Add MAKE_JOBS_UNSAFE
Remove file:
pkg-plist
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/www/larbin/Makefile www/larbin/Makefile
--- /usr/ports/www/larbin/Makefile 2012-11-08 10:49:39.000000000 +0900
+++ www/larbin/Makefile 2013-05-29 00:00:00.000000000 +0900
@@ -1,61 +1,69 @@
-# New ports collection makefile for: larbin
-# Date Created: 26 March 2002
-# Whom: Hiten Pandya <hiten at uk.FreeBSD.org>
-#
+# Created by: Hiten Pandya <hiten at uk.FreeBSD.org>
# $FreeBSD: head/www/larbin/Makefile 300897 2012-07-14 14:29:18Z beat $
-#
PORTNAME= larbin
PORTVERSION= 2.6.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= SF
MAINTAINER= ports at 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
+
+PORTDOCS= *
+PLIST_FILES= bin/larbin etc/larbin.conf.sample
+
+.include <bsd.port.options.mk>
-.include <bsd.port.pre.mk>
+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} "====================================================================="
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
+ @${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
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} "====================================================================="
+ ${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} "====================================================================="
+ @${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.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/www/larbin/pkg-plist www/larbin/pkg-plist
--- /usr/ports/www/larbin/pkg-plist 2012-11-08 10:49:39.000000000 +0900
+++ www/larbin/pkg-plist 1970-01-01 09:00:00.000000000 +0900
@@ -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
- at dirrm share/larbin
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list