Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2013 21:38:39 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r324131 - head/graphics/alpng
Message-ID:  <201308012138.r71LcdNv051859@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Aug  1 21:38:39 2013
New Revision: 324131
URL: http://svnweb.freebsd.org/changeset/ports/324131

Log:
  Fix build without gcc

Modified:
  head/graphics/alpng/Makefile

Modified: head/graphics/alpng/Makefile
==============================================================================
--- head/graphics/alpng/Makefile	Thu Aug  1 21:33:53 2013	(r324130)
+++ head/graphics/alpng/Makefile	Thu Aug  1 21:38:39 2013	(r324131)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: graphics/alpng
-# Date created:		27 Aug 2009
-# Whom:			Stas Timokhin <stast@bsdportal.ru>
-#
+# Created by: Stas Timokhin <stast@bsdportal.ru>
 # $FreeBSD$
-#
 
 PORTNAME=	alpng
 PORTVERSION=	1.3
@@ -20,12 +16,16 @@ LIB_DEPENDS+=	alleg:${PORTSDIR}/devel/al
 HAS_CONFIGURE=	yes
 WRKSRC=		${WRKDIR}
 MAKEFILE=	makefile
-USE_GMAKE=	yes
+USES=		gmake
+MAKE_ARGS=	CC=${CC}
 CFLAGS+=	-I${LOCALBASE}/include
 
 PLIST_FILES=	include/alpng.h \
 		lib/libalpng.a
 
+do-configure:
+	@${REINPLACE_CMD} -e "s/gcc/${CC}/g" ${WRKSRC}/makefile
+
 do-install:
 		${INSTALL_DATA} ${WRKSRC}/libalpng.a ${PREFIX}/lib/libalpng.a
 		${INSTALL_DATA} ${WRKSRC}/src/alpng.h ${PREFIX}/include/alpng.h



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