svn commit: r312840 - head/x11-themes/gtk-engines2

Koop Mast kwm at FreeBSD.org
Sat Feb 23 16:35:52 UTC 2013


Author: kwm
Date: Sat Feb 23 16:35:50 2013
New Revision: 312840
URL: http://svnweb.freebsd.org/changeset/ports/312840

Log:
  Fix the build with newer glib when ANIMATION option is selected. [1]
  
  While here update Makefile header and convert to OPTIONSNG.
  
  Reported by:	Gustau Perez <gustau.perez at gmail.com> [1]

Modified:
  head/x11-themes/gtk-engines2/Makefile

Modified: head/x11-themes/gtk-engines2/Makefile
==============================================================================
--- head/x11-themes/gtk-engines2/Makefile	Sat Feb 23 16:25:28 2013	(r312839)
+++ head/x11-themes/gtk-engines2/Makefile	Sat Feb 23 16:35:50 2013	(r312840)
@@ -1,10 +1,6 @@
-# New ports collection makefile for:	gtk-engines2
-# Date Created:				21 May 2002
-# Whom:					Joe Marcus Clarke <marcus at FreeBSD.org>
-#
+# Created by: Joe Marcus Clarke <marcus at FreeBSD.org>
 # $FreeBSD$
 #   $MCom: ports/x11-themes/gtk-engines2/Makefile,v 1.82 2010/04/19 10:51:27 kwm Exp $
-#
 
 PORTNAME=	gtk-engines2
 PORTVERSION=	2.20.2
@@ -29,15 +25,20 @@ USE_AUTOTOOLS=	libtool
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-OPTIONS=	ANIMATION "Enable experimental animated progressbars" off
+OPTIONS_DEFINE=	ANIMATION
+ANIMATION_DESC=	Experimental animated progressbars
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if defined(WITH_ANIMATION)
+.if ${PORT_OPTIONS:MANIMATION}
 CONFIGURE_ARGS+=	--enable-animation
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} -e 's|glib.*\.h>|glib.h>|g' \
+		${WRKSRC}/engines/clearlooks/src/animation.c
+
 post-install:
 	@(cd ${WRKSRC}/po && ${GMAKE} install)
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-head mailing list