svn commit: r351125 - head/games/xjig

Pawel Pekala pawel at FreeBSD.org
Sat Apr 12 19:32:24 UTC 2014


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


More information about the svn-ports-all mailing list