svn commit: r324131 - head/graphics/alpng

Baptiste Daroussin bapt at FreeBSD.org
Thu Aug 1 21:38:40 UTC 2013


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 at bsdportal.ru>
-#
+# Created by: Stas Timokhin <stast at 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


More information about the svn-ports-head mailing list