Date: Wed, 25 Sep 2013 03:49:38 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r328249 - in head/sysutils/ciso: . files Message-ID: <201309250349.r8P3ncHg072290@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Wed Sep 25 03:49:38 2013 New Revision: 328249 URL: http://svnweb.freebsd.org/changeset/ports/328249 Log: - Fix build with clang PR: 182168 Submitted by: Vasily Chashchin <blttll@gmail.com> (maintainer) Modified: head/sysutils/ciso/Makefile head/sysutils/ciso/files/patch-Makefile Modified: head/sysutils/ciso/Makefile ============================================================================== --- head/sysutils/ciso/Makefile Wed Sep 25 03:47:08 2013 (r328248) +++ head/sysutils/ciso/Makefile Wed Sep 25 03:49:38 2013 (r328249) @@ -3,14 +3,13 @@ PORTNAME= ciso PORTVERSION= 1.0.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= SF MAINTAINER= blttll@gmail.com COMMENT= A tool to compress ISO images to CSO format - USE_DOS2UNIX= yes PLIST_FILES= bin/ciso Modified: head/sysutils/ciso/files/patch-Makefile ============================================================================== --- head/sysutils/ciso/files/patch-Makefile Wed Sep 25 03:47:08 2013 (r328248) +++ head/sysutils/ciso/files/patch-Makefile Wed Sep 25 03:49:38 2013 (r328249) @@ -1,12 +1,29 @@ ---- Makefile.orig 2007-11-04 17:49:10.000000000 +0300 -+++ Makefile 2007-11-04 17:50:04.000000000 +0300 -@@ -1,6 +1,6 @@ --DESTDIR = +--- Makefile.bak 2013-09-12 16:31:40.000000000 +0000 ++++ Makefile 2013-09-12 16:33:23.000000000 +0000 +@@ -1,17 +1,19 @@ +-DESTDIR = -prefix = /usr -USRBINDIR = $(DESTDIR)$(prefix)/bin +destdir = ${DESTDIR} +prefix = ${PREFIX} +USRBINDIR = $(destdir)$(prefix)/bin - - CC = $(CROSS_COMPILE)gcc - LD = $(CROSS_COMPILE)gcc + +-CC = $(CROSS_COMPILE)gcc +-LD = $(CROSS_COMPILE)gcc + INSTALL = install + ++.if ${CC} == "clang" ++CFLAGS += -Wno-format -Wno-tautological-compare ++.endif ++ + all : ciso + ciso : ciso.o +- gcc -o ciso ciso.o -lz ++ ${CC} ${CFLAGS} -o ciso ciso.o -lz + + ciso.o : ciso.c +- gcc -o ciso.o -c ciso.c ++ ${CC} ${CFLAGS} -o ciso.o -c ciso.c + + install : + $(INSTALL) -m 755 ciso $(USRBINDIR)/ciso
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309250349.r8P3ncHg072290>