svn commit: r320789 - head/textproc/rot

Boris Samorodov bsam at FreeBSD.org
Thu Jun 13 11:58:58 UTC 2013


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 at 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


More information about the svn-ports-all mailing list