Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 2014 08:13:53 +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: r351766 - head/x11-wm/compiz
Message-ID:  <201404220813.s3M8Drxv008592@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Tue Apr 22 08:13:52 2014
New Revision: 351766
URL: http://svnweb.freebsd.org/changeset/ports/351766
QAT: https://qat.redports.org/buildarchive/r351766/

Log:
  Support stage
  Cleanup a bit (this ports deserves either more love or death)

Modified:
  head/x11-wm/compiz/Makefile
  head/x11-wm/compiz/pkg-plist

Modified: head/x11-wm/compiz/Makefile
==============================================================================
--- head/x11-wm/compiz/Makefile	Tue Apr 22 08:08:28 2014	(r351765)
+++ head/x11-wm/compiz/Makefile	Tue Apr 22 08:13:52 2014	(r351766)
@@ -9,20 +9,20 @@ MASTER_SITES=	http://releases.compiz.org
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Compiz Composite/Window Manager
 
-LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png \
-		gtop-2.0.7:${PORTSDIR}/devel/libgtop \
-		startup-notification-1.0:${PORTSDIR}/x11/startup-notification
+LIB_DEPENDS=	libpng15.so:${PORTSDIR}/graphics/png \
+		libgtop-2.0.so:${PORTSDIR}/devel/libgtop \
+		libstartup-notification-1.so:${PORTSDIR}/x11/startup-notification
 RUN_DEPENDS=	glxinfo:${PORTSDIR}/graphics/mesa-demos \
 		nvidia-settings:${PORTSDIR}/x11/nvidia-settings
 
 XORG_CAT=	app
 GNU_CONFIGURE=	yes
-USES=		gettext pathfix gmake tar:bzip2
+INSTALL_TARGET=	install-strip
+USES=		gettext pathfix gmake libtool tar:bzip2
 USE_GL=		glu
 USE_GNOME=	gconf2 libxslt
 USE_XORG=	xcomposite xfixes xdamage xrandr xrender ice sm xinerama glproto
 USE_LDCONFIG=	yes
-USE_AUTOTOOLS=	libtool
 
 GCONF_SCHEMAS=	gwd.schemas \
 		compiz-annotate.schemas \
@@ -58,7 +58,7 @@ GCONF_SCHEMAS=	gwd.schemas \
 		compiz-wobbly.schemas \
 		compiz-zoom.schemas
 
-CONFIGURE_ARGS=	--disable-kde4
+CONFIGURE_ARGS=	--disable-kde4 --disable-kde3
 LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
 
 OPTIONS_DEFINE=	SVG GTK2 METACITY GNOME DBUS FUSE
@@ -74,32 +74,17 @@ DESKTOP_ENTRIES=	"Compiz Manager" \
 			"System;Core;" \
 			false
 
-NO_STAGE=	yes
-post-patch:
-	@${REINPLACE_CMD} -e 's|libpng|libpng15|' -e 's|gnome-desktop-2.0|gnome-desktop-2.0 gconf-2.0|g' \
-		${WRKSRC}/configure
+OPTIONS_SUB=	yes
+SVG_CONFIGURE_ENABLE=	librsvg
+SVG_USE=	GNOME=librsvg2
 
-post-install:
-	${INSTALL_SCRIPT} ${WRKDIR}/compiz-manager ${PREFIX}/bin/compiz-manager
-.include <bsd.port.pre.mk>
+GTK2_CONFIGURE_ENABLE=	gtk
+GTK2_USE=	glib20 libwnck
 
-.if ${PORT_OPTIONS:MSVG}
-CONFIGURE_ARGS+=	--enable-librsvg
-USE_GNOME+=		librsvg2
-PLIST_SUB+=		RSVG=""
-.else
-CONFIGURE_ARGS+=	--disable-librsvg
-PLIST_SUB+=		RSVG="@comment "
-.endif
+FUSE_CONFIGURE_ENABLE=	fuse
+FUSE_USES=		fuse
 
-.if ${PORT_OPTIONS:MGTK2}
-CONFIGURE_ARGS+=	--enable-gtk
-USE_GNOME+=	 glib20 libwnck
-PLIST_SUB+=	GTK2=""
-.else
-CONFIGURE_ARGS+=	--disable-gtk
-PLIST_SUB+=	GTK2="@comment "
-.endif
+.include <bsd.port.options.mk>
 
 .if !empty(PORT_OPTIONS:MMETACITY) && !empty(PORT_OPTIONS:MGNOME) && !empty(PORT_OPTIONS:MGTK2)
 CONFIGURE_ARGS+=	--enable-metacity
@@ -134,22 +119,15 @@ CONFIGURE_ARGS+=	--enable-dbus-glib
 BUILD_DEPENDS+=	${LOCALBASE}/libdata/pkgconfig/dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib
 RUN_DEPENDS+=	${LOCALBASE}/libdata/pkgconfig/dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib
 .endif
-PLIST_SUB+=	DBUS=""
 .else
 CONFIGURE_ARGS+=	--disable-dbus --disable-dbus-glib
-PLIST_SUB+=	DBUS="@comment "
 .endif
 
-.if ${PORT_OPTIONS:MFUSE}
-CONFIGURE_ARGS+=	--enable-fuse
-USES+=			fuse
-PLIST_SUB+=		FUSE=""
-.else
-CONFIGURE_ARGS+=	--disable-fuse
-PLIST_SUB+=		FUSE="@comment "
-.endif
+post-patch:
+	@${REINPLACE_CMD} -e 's|libpng|libpng15|' -e 's|gnome-desktop-2.0|gnome-desktop-2.0 gconf-2.0|g' \
+		${WRKSRC}/configure
 
-CONFIGURE_ARGS+=	--disable-kde
-PLIST_SUB+=	KDE3="@comment "
+post-install:
+	${INSTALL_SCRIPT} ${WRKDIR}/compiz-manager ${STAGEDIR}${PREFIX}/bin/compiz-manager
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/x11-wm/compiz/pkg-plist
==============================================================================
--- head/x11-wm/compiz/pkg-plist	Tue Apr 22 08:08:28 2014	(r351765)
+++ head/x11-wm/compiz/pkg-plist	Tue Apr 22 08:13:52 2014	(r351766)
@@ -1,7 +1,6 @@
 bin/compiz
 bin/compiz-manager
 %%GTK2%%bin/gtk-window-decorator
-%%KDE3%%bin/kde-window-decorator
 include/compiz/compiz.h
 include/compiz/compiz-common.h
 include/compiz/compiz-core.h
@@ -78,9 +77,9 @@ lib/compiz/libscale.so
 lib/compiz/libscreenshot.a
 lib/compiz/libscreenshot.la
 lib/compiz/libscreenshot.so
-%%RSVG%%lib/compiz/libsvg.a
-%%RSVG%%lib/compiz/libsvg.la
-%%RSVG%%lib/compiz/libsvg.so
+%%SVG%%lib/compiz/libsvg.a
+%%SVG%%lib/compiz/libsvg.la
+%%SVG%%lib/compiz/libsvg.so
 lib/compiz/libswitcher.a
 lib/compiz/libswitcher.la
 lib/compiz/libswitcher.so
@@ -100,6 +99,7 @@ lib/libdecoration.a
 lib/libdecoration.la
 lib/libdecoration.so
 lib/libdecoration.so.0
+lib/libdecoration.so.0.0.0
 libdata/pkgconfig/compiz-cube.pc
 libdata/pkgconfig/compiz-gconf.pc
 libdata/pkgconfig/compiz-scale.pc



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