From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 16 18:10:25 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AFC9D8A4 for ; Mon, 16 Dec 2013 18:10:25 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8E85319E8 for ; Mon, 16 Dec 2013 18:10:25 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBGIAPOb016547 for ; Mon, 16 Dec 2013 18:10:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBGIAPfn016546; Mon, 16 Dec 2013 18:10:25 GMT (envelope-from gnats) Resent-Date: Mon, 16 Dec 2013 18:10:25 GMT Resent-Message-Id: <201312161810.rBGIAPfn016546@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KATO Tsuguru Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 63EC2296 for ; Mon, 16 Dec 2013 18:01:22 +0000 (UTC) Received: from omta02.auone-net.jp (mail-or2-f145.auone-net.jp [111.87.219.145]) by mx1.freebsd.org (Postfix) with ESMTP id 38C421845 for ; Mon, 16 Dec 2013 18:01:21 +0000 (UTC) Received: from coppermine.my.domain (ZT030106.ppp.dion.ne.jp [59.128.30.106]) by omta02.auone-net.jp (au one net mail) with ESMTP id 63919156001E for ; Tue, 17 Dec 2013 03:01:20 +0900 (JST) Message-Id: <20131217024702.a6ee4617b036099177a1e19a@yahoo.com> Date: Tue, 17 Dec 2013 02:47:02 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/184889: deskutils/tpb: Fix build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Dec 2013 18:10:25 -0000 >Number: 184889 >Category: ports >Synopsis: deskutils/tpb: 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: Mon Dec 16 18:10:25 UTC 2013 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p4 i386 >Organization: >Environment: >Description: - Fix build with clang - Add LICENSE >How-To-Repeat: >Fix: diff -urN /usr/ports/deskutils/tpb/Makefile deskutils/tpb/Makefile --- /usr/ports/deskutils/tpb/Makefile 2013-12-12 07:58:38.000000000 +0900 +++ deskutils/tpb/Makefile 2013-12-17 00:00:00.000000000 +0900 @@ -5,45 +5,49 @@ PORTVERSION= 0.6.4 PORTREVISION= 10 CATEGORIES= deskutils -MASTER_SITES= ${MASTER_SITE_SAVANNAH} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SAVANNAH MAINTAINER= ports@FreeBSD.org COMMENT= On-Screen-Display for hotkeys of IBM ThinkPads +LICENSE= GPLv2 + LIB_DEPENDS= libxosd.so:${PORTSDIR}/misc/xosd +OPTIONS_DEFINE= DOCS NLS +OPTIONS_SUB= yes + ONLY_FOR_ARCHS= i386 amd64 +USES= bison gmake iconv pkgconfig GNU_CONFIGURE= yes -USES= bison iconv gmake pkgconfig - CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} -MAN1= tpb.1 +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALABASE}/lib -NO_STAGE= yes .include .if ${PORT_OPTIONS:MNLS} USES+= gettext -PLIST_SUB+= NLS="" .else CONFIGURE_ARGS+=--disable-nls -PLIST_SUB+= NLS="@comment " .endif post-patch: - @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g; \ - s|%%LOCALBASE%%|${LOCALBASE}|g' \ - ${WRKSRC}/src/cfg.h \ - ${WRKSRC}/man/tpb.1 +.for i in man/tpb.1 src/cfg.h + @${REINPLACE_CMD} -e \ + 's|%%PREFIX%%|${PREFIX}|g ; \ + s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/${i} +.endfor + @${REINPLACE_CMD} -e \ + 's|void test()||' ${WRKSRC}/configure post-install: - ${INSTALL_DATA} ${WRKSRC}/doc/tpbrc ${PREFIX}/etc/tpbrc.default -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_SCRIPT} ${WRKSRC}/doc/callback_example.sh ${DOCSDIR} -.endif + (cd ${WRKSRC}/doc && ${INSTALL_DATA} tpbrc \ + ${STAGEDIR}${PREFIX}/etc/tpbrc.default) + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/doc && ${INSTALL_DATA} callback_example.sh \ + ${STAGEDIR}${DOCSDIR}) .include diff -urN /usr/ports/deskutils/tpb/pkg-plist deskutils/tpb/pkg-plist --- /usr/ports/deskutils/tpb/pkg-plist 2013-11-06 21:52:37.000000000 +0900 +++ deskutils/tpb/pkg-plist 2013-12-17 00:00:00.000000000 +0900 @@ -1,5 +1,6 @@ bin/tpb etc/tpbrc.default +man/man1/tpb.1.gz %%PORTDOCS%%%%DOCSDIR%%/callback_example.sh %%NLS%%share/locale/da/LC_MESSAGES/tpb.mo %%NLS%%share/locale/de/LC_MESSAGES/tpb.mo >Release-Note: >Audit-Trail: >Unformatted: