2007-05-19 20:36:56 +00:00
|
|
|
# New ports collection makefile for: compiz
|
|
|
|
# Date created: Dec 20 2006
|
|
|
|
# Whom: Florent Thoumie <flz@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= compiz
|
2007-10-29 19:20:43 +00:00
|
|
|
PORTVERSION= 0.6.2
|
|
|
|
#PORTREVISION= 1
|
2008-06-06 14:17:21 +00:00
|
|
|
PORTREVISION= 2
|
2007-05-19 20:36:56 +00:00
|
|
|
CATEGORIES= x11-wm
|
|
|
|
|
2008-03-24 15:44:31 +00:00
|
|
|
MAINTAINER= rnoland@2hip.net
|
2007-05-19 20:36:56 +00:00
|
|
|
COMMENT= Compiz Composite/Window Manager
|
|
|
|
|
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
|
|
|
startup-notification-1.0:${PORTSDIR}/x11/startup-notification
|
|
|
|
|
|
|
|
XORG_CAT= app
|
|
|
|
GNU_CONFIGURE= yes
|
2007-08-22 15:55:03 +00:00
|
|
|
#USE_BZIP2= yes
|
|
|
|
USE_TGZ= yes
|
|
|
|
USE_GMAKE= yes
|
2007-05-19 20:36:56 +00:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_GL= glu
|
2007-09-30 12:05:03 +00:00
|
|
|
USE_GNOME= gnomehack gconf2 libxslt
|
2007-05-19 20:36:56 +00:00
|
|
|
USE_XORG= xcomposite xfixes xdamage xrandr xrender ice sm xinerama glproto
|
|
|
|
USE_LDCONFIG= yes
|
2007-08-22 15:55:03 +00:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
|
|
|
|
|
|
|
GCONF_SCHEMAS= gwd.schemas \
|
|
|
|
compiz-annotate.schemas \
|
|
|
|
compiz-blur.schemas \
|
|
|
|
compiz-clone.schemas \
|
|
|
|
compiz-core.schemas \
|
|
|
|
compiz-cube.schemas \
|
|
|
|
compiz-dbus.schemas \
|
|
|
|
compiz-decoration.schemas \
|
|
|
|
compiz-fade.schemas \
|
|
|
|
compiz-fs.schemas \
|
|
|
|
compiz-gconf.schemas \
|
|
|
|
compiz-glib.schemas \
|
|
|
|
compiz-ini.schemas \
|
|
|
|
compiz-inotify.schemas \
|
|
|
|
compiz-minimize.schemas \
|
|
|
|
compiz-move.schemas \
|
|
|
|
compiz-place.schemas \
|
|
|
|
compiz-plane.schemas \
|
|
|
|
compiz-png.schemas \
|
|
|
|
compiz-regex.schemas \
|
|
|
|
compiz-resize.schemas \
|
|
|
|
compiz-rotate.schemas \
|
|
|
|
compiz-scale.schemas \
|
|
|
|
compiz-screenshot.schemas \
|
|
|
|
compiz-svg.schemas \
|
|
|
|
compiz-switcher.schemas \
|
|
|
|
compiz-video.schemas \
|
|
|
|
compiz-water.schemas \
|
|
|
|
compiz-wobbly.schemas \
|
|
|
|
compiz-zoom.schemas
|
|
|
|
|
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
2007-05-19 20:36:56 +00:00
|
|
|
|
|
|
|
OPTIONS= RSVG "Enable librsvg2 support" on \
|
|
|
|
GTK "Enable gtk2 support" on \
|
|
|
|
METACITY "Enable Metacity support" on \
|
|
|
|
GNOME "Enable Gnome support" on \
|
|
|
|
DBUS "Enable DBUS support" on \
|
2007-10-29 19:20:43 +00:00
|
|
|
FUSEFS "Enable fusefs support" off \
|
|
|
|
KDE "Enable KDE support" off
|
2007-05-19 20:36:56 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|libpng|libpng12|' ${WRKSRC}/configure
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-10-29 19:20:43 +00:00
|
|
|
.if !defined(WITHOUT_RSVG)
|
2007-05-19 20:36:56 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-librsvg
|
|
|
|
USE_GNOME+= librsvg2
|
|
|
|
PLIST_SUB+= RSVG=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-librsvg
|
|
|
|
PLIST_SUB+= RSVG="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-10-29 19:20:43 +00:00
|
|
|
.if !defined(WITHOUT_GTK)
|
2007-05-19 20:36:56 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-gtk
|
|
|
|
USE_GNOME+= glib20 libwnck
|
|
|
|
PLIST_SUB+= GTK=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gtk
|
|
|
|
PLIST_SUB+= GTK="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-10-29 19:20:43 +00:00
|
|
|
.if !defined(WITHOUT_METACITY) && !defined(WITHOUT_GNOME) && !defined(WITHOUT_GTK)
|
2007-05-19 20:36:56 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-metacity
|
|
|
|
USE_GNOME+= metacity
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-metacity
|
|
|
|
.endif
|
|
|
|
|
2007-10-29 19:20:43 +00:00
|
|
|
.if !defined(WITHOUT_GNOME) && !defined(WITHOUT_GTK)
|
2007-10-25 17:10:42 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-gnome \
|
|
|
|
--enable-gnome-keybindings
|
2007-05-19 20:36:56 +00:00
|
|
|
USE_GNOME+= gnomecontrolcenter2
|
|
|
|
WINDOWSETTINGSDATADIR= \
|
|
|
|
`pkg-config --variable=prefix gnome-window-settings-2.0`
|
|
|
|
WINDOWSETTINGSLIBDIR= \
|
|
|
|
`pkg-config --variable=libdir gnome-window-settings-2.0`
|
|
|
|
PLIST_SUB+= GNOME="" \
|
|
|
|
WINDOWSETTINGSDATADIR="${WINDOWSETTINGSDATADIR}" \
|
|
|
|
WINDOWSETTINGSLIBDIR="${WINDOWSETTINGSLIBDIR}"
|
|
|
|
.else
|
2007-10-25 17:10:42 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-gnome \
|
|
|
|
--disable-gnome-keybindings
|
2007-05-19 20:36:56 +00:00
|
|
|
PLIST_SUB+= GNOME="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-10-29 19:20:43 +00:00
|
|
|
.if !defined(WITHOUT_DBUS)
|
2007-05-19 20:36:56 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-dbus
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:${PORTSDIR}/devel/dbus
|
2007-10-25 20:24:14 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:${PORTSDIR}/devel/dbus
|
2007-10-29 19:20:43 +00:00
|
|
|
.if !defined(WITHOUT_GTK) && !defined(WITHOUT_GNOME)
|
2007-05-19 20:36:56 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-dbus-glib
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib
|
2007-10-25 20:24:14 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib
|
2007-05-19 20:36:56 +00:00
|
|
|
.endif
|
|
|
|
PLIST_SUB+= DBUS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-dbus --disable-dbus-glib
|
|
|
|
PLIST_SUB+= DBUS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_FUSEFS)
|
|
|
|
CONFIGURE_ARGS+= --enable-fuse
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/fuse.pc:${PORTSDIR}/sysutils/fusefs-libs
|
2007-10-25 20:24:14 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/fuse.pc:${PORTSDIR}/sysutils/fusefs-libs
|
2007-05-19 20:36:56 +00:00
|
|
|
PLIST_SUB+= FUSEFS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-fuse
|
|
|
|
PLIST_SUB+= FUSEFS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-10-29 19:20:43 +00:00
|
|
|
.if defined(WITH_KDE)
|
|
|
|
USE_KDEBASE_VER= 3
|
|
|
|
CONFIGURE_ARGS+= --enable-kde
|
|
|
|
PLIST_SUB+= KDE=""
|
|
|
|
# allow bsd.kde.mk to be included after bsd.port.mk
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.kde.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-kde
|
|
|
|
PLIST_SUB+= KDE="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-05-19 20:36:56 +00:00
|
|
|
.include <bsd.port.post.mk>
|