svn commit: r320138 - head/x11-themes/clearlooks

Baptiste Daroussin bapt at FreeBSD.org
Thu Jun 6 22:11:39 UTC 2013


Author: bapt
Date: Thu Jun  6 22:11:38 2013
New Revision: 320138
URL: http://svnweb.freebsd.org/changeset/ports/320138

Log:
  Convert to new options framework

Modified:
  head/x11-themes/clearlooks/Makefile

Modified: head/x11-themes/clearlooks/Makefile
==============================================================================
--- head/x11-themes/clearlooks/Makefile	Thu Jun  6 22:10:16 2013	(r320137)
+++ head/x11-themes/clearlooks/Makefile	Thu Jun  6 22:11:38 2013	(r320138)
@@ -21,11 +21,13 @@ CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
 .if defined(PORTNAME) && !defined(PKGNAMESUFFIX)
-OPTIONS+=	ANIMATION "Enable experimental animated progressbars" Off \
-		METACITY "Depend on MetaCity Theme" On
+OPTIONS_DEFINE=	ANIMATION METACITY
+OPTIONS_DEFAULT=	METACITY
+ANIMATION_DESC=	Enable experimental animated progressbars
+METACITY_DESC=	Depend on MetaCity Theme
 .endif
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 .if !defined(PKGNAMESUFFIX)
 CONFLICTS+=	gtk-engines2-[0-9]* clearlooks-themes[0-9]*
@@ -42,11 +44,11 @@ INSTALL_WRKSRC=	${WRKSRC}/themes
 PLIST_SUB+=	ENGINE="@comment "
 .endif
 
-.if !defined(WITHOUT_METACITY) && !defined(PKGNAMESUFFIX)
+.if ${PORT_OPTIONS:MMETACITY} && !defined(PKGNAMESUFFIX)
 RUN_DEPENDS+=	${LOCALBASE}/share/themes/Clearlooks/metacity-1/metacity-theme-1.xml:${PORTSDIR}/x11-themes/clearlooks-metacity
 .endif
 
-.if defined(WITH_ANIMATION)
+.if ${PORT_OPTIONS:MANIMATION}
 CONFIGURE_ARGS+=	--enable-animation
 .endif
 
@@ -67,4 +69,4 @@ post-patch:
 		${WRKSRC}/themes/Clearlooks/gtk-2.0/Makefile.in
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-all mailing list