ports/182168: [maintainer update] sysutils/ciso clang support
Vasily Chashchin
blttll at gmail.com
Mon Sep 16 20:40:00 UTC 2013
>Number: 182168
>Category: ports
>Synopsis: [maintainer update] sysutils/ciso clang support
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon Sep 16 20:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Vasily Chashchin
>Release:
>Organization:
>Environment:
>Description:
This update makes it possible to build sysutils/ciso using clang.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN ciso.bak/Makefile ciso/Makefile
--- ciso.bak/Makefile 2013-09-10 09:08:24.000000000 +0000
+++ ciso/Makefile 2013-09-12 16:36:47.000000000 +0000
@@ -3,7 +3,7 @@
PORTNAME= ciso
PORTVERSION= 1.0.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= SF
diff -ruN ciso.bak/files/patch-Makefile ciso/files/patch-Makefile
--- ciso.bak/files/patch-Makefile 2012-07-14 14:29:18.000000000 +0000
+++ ciso/files/patch-Makefile 2013-09-12 16:34:09.000000000 +0000
@@ -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
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list