Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Apr 2014 19:32:24 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r351125 - head/games/xjig
Message-ID:  <201404121932.s3CJWOf8004699@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sat Apr 12 19:32:23 2014
New Revision: 351125
URL: http://svnweb.freebsd.org/changeset/ports/351125
QAT: https://qat.redports.org/buildarchive/r351125/

Log:
  - Fix build with clang34 (unrecognized option -fpcc-struct-return)
  - Add staging support

Modified:
  head/games/xjig/Makefile

Modified: head/games/xjig/Makefile
==============================================================================
--- head/games/xjig/Makefile	Sat Apr 12 19:23:10 2014	(r351124)
+++ head/games/xjig/Makefile	Sat Apr 12 19:32:23 2014	(r351125)
@@ -12,14 +12,20 @@ EXTRACT_SUFX=	.tgz
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Jigsaw puzzle game for X11
 
+USES=		compiler
 USE_XORG=	x11 xproto xext
 MAKEFILE=	Makefile.Linux
-MAN1=		xjig.1
-PLIST_FILES=	bin/xjig
+PLIST_FILES=	bin/xjig man/man1/xjig.1.gz
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${COMPILER_TYPE} == clang
+	@${REINPLACE_CMD} 's|-fpcc-struct-return||' ${WRKSRC}/Makefile.Linux
+.endif
 
-NO_STAGE=	yes
 do-install:
-	@ ${INSTALL_PROGRAM} ${WRKSRC}/xjig ${PREFIX}/bin/xjig
-	@ ${INSTALL_MAN} ${WRKSRC}/xjig.man ${PREFIX}/man/man1/xjig.1
+	${INSTALL_PROGRAM} ${WRKSRC}/xjig ${STAGEDIR}${PREFIX}/bin/xjig
+	${INSTALL_MAN} ${WRKSRC}/xjig.man ${STAGEDIR}${PREFIX}/man/man1/xjig.1
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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