aboutsummaryrefslogtreecommitdiffstats
path: root/x11-themes
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2013-02-24 00:35:50 +0800
committerkwm <kwm@FreeBSD.org>2013-02-24 00:35:50 +0800
commitb2ce5653668deeb8f7d56280f713aa171882c48a (patch)
treebad28bbacc151cd8046a6fc56eb84070b29be912 /x11-themes
parent7b92080426944c79bf6b44d7c0ef14c82c8cfe50 (diff)
downloadfreebsd-ports-gnome-b2ce5653668deeb8f7d56280f713aa171882c48a.tar.gz
freebsd-ports-gnome-b2ce5653668deeb8f7d56280f713aa171882c48a.tar.zst
freebsd-ports-gnome-b2ce5653668deeb8f7d56280f713aa171882c48a.zip
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@gmail.com> [1]
Diffstat (limited to 'x11-themes')
-rw-r--r--x11-themes/gtk-engines2/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/x11-themes/gtk-engines2/Makefile b/x11-themes/gtk-engines2/Makefile
index 577255090fd6..56a476bc1f93 100644
--- a/x11-themes/gtk-engines2/Makefile
+++ b/x11-themes/gtk-engines2/Makefile
@@ -1,10 +1,6 @@
-# New ports collection makefile for: gtk-engines2
-# Date Created: 21 May 2002
-# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
-#
+# Created by: Joe Marcus Clarke <marcus@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>