Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jun 2013 11:58:57 +0000 (UTC)
From:      Boris Samorodov <bsam@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r320789 - head/textproc/rot
Message-ID:  <201306131158.r5DBwvUE035813@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bsam
Date: Thu Jun 13 11:58:57 2013
New Revision: 320789
URL: http://svnweb.freebsd.org/changeset/ports/320789

Log:
  . fix build with clang (CFLAGS+=-Wno-return-type);
  . trim Makefile headers.

Modified:
  head/textproc/rot/Makefile

Modified: head/textproc/rot/Makefile
==============================================================================
--- head/textproc/rot/Makefile	Thu Jun 13 11:58:43 2013	(r320788)
+++ head/textproc/rot/Makefile	Thu Jun 13 11:58:57 2013	(r320789)
@@ -1,10 +1,5 @@
-# ex:ts=8
-# New ports collection Makefile for:	rot
-# Date created:			Sep 21, 2001
-# Whom:				ijliao
-#
+# Created by: ijliao
 # $FreeBSD$
-#
 
 PORTNAME=	rot
 PORTVERSION=	1.2
@@ -17,10 +12,14 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Rotates a file so that lines become columns and vice versa
 
 ALL_TARGET=	${PORTNAME}
+CFLAGS+=	-Wno-return-type
 
 MAN1=		rot.1
 PLIST_FILES=	bin/rot
 
+post-patch:
+	@${REINPLACE_CMD} "s:^CFLAGS=:#CFLAGS=:" ${WRKSRC}/Makefile
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/rot ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/rot.man ${MAN1PREFIX}/man/man1/rot.1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306131158.r5DBwvUE035813>