ports/184834: graphics/chbg: Fix build with clang
KATO Tsuguru
tkato432 at yahoo.com
Mon Dec 16 18:10:09 UTC 2013
>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 at 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:
More information about the freebsd-ports-bugs
mailing list