Date: Tue, 17 Dec 2013 02:49:19 +0900 From: KATO Tsuguru <tkato432@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/184834: graphics/chbg: Fix build with clang Message-ID: <20131217024919.97f9963493958ad1de19764a@yahoo.com> Resent-Message-ID: <201312161810.rBGIA9Rl016035@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 184834 >Category: ports >Synopsis: graphics/chbg: 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:08 UTC 2013 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p4 i386 >Organization: >Environment: >Description: - Fix build with clang >How-To-Repeat: >Fix: diff -urN /usr/ports/graphics/chbg/Makefile graphics/chbg/Makefile --- /usr/ports/graphics/chbg/Makefile 2013-11-06 22:02:07.000000000 +0900 +++ graphics/chbg/Makefile 2013-12-17 00:00:00.000000000 +0900 @@ -11,23 +11,20 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Change Background Picture with time period -LIB_DEPENDS= png15:${PORTSDIR}/graphics/png +LICENSE= GPLv2 # (or later) +LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png + +USES= gmake gettext pathfix USE_GNOME= gdkpixbuf -USE_GMAKE= yes -USES= gettext GNU_CONFIGURE= yes -CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" -CPPFLAGS+= -I${LOCALBASE}/include CONFIGURE_ARGS= --disable-gnome -NO_STAGE= yes -.include <bsd.port.pre.mk> - -MAN1= chbg.1 +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib post-patch: - @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ - s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e \ + 's|^guint argc|gint argc|' ${WRKSRC}/src/chbg.c -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff -urN /usr/ports/graphics/chbg/pkg-plist graphics/chbg/pkg-plist --- /usr/ports/graphics/chbg/pkg-plist 2013-11-06 22:02:07.000000000 +0900 +++ graphics/chbg/pkg-plist 2013-12-17 00:00:00.000000000 +0900 @@ -1,4 +1,5 @@ bin/chbg +man/man1/chbg.1.gz share/locale/de/LC_MESSAGES/chbg.mo share/locale/fr/LC_MESSAGES/chbg.mo share/locale/sk/LC_MESSAGES/chbg.mo >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131217024919.97f9963493958ad1de19764a>