mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
741aa71483
Specifically, newer autoconf (> 2.13) has different semantic of the configure target. In short, one should use --build=CONFIGURE_TARGET instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning and the old semantic may be removed in later autoconf releases. To workaround this issue, many ports hack the CONFIGURE_TARGET variable so that it contains the ``--build='' prefix. To solve this issue, under the fact that some ports still have configure script generated by the old autoconf, we use runtime detection in the do-configure target so that the proper argument can be used. Changes to Mk/*: - Add runtime detection magic in bsd.port.mk - Remove CONFIGURE_TARGET hack in various bsd.*.mk - USE_GNOME=gnometarget is now an no-op Changes to individual ports, other than removing the CONFIGURE_TARGET hack: = pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables) - comms/gnuradio - science/abinit - science/elmer-fem - science/elmer-matc - science/elmer-meshgen2d - science/elmerfront - science/elmerpost = use x86_64 as ARCH - devel/g-wrap = other changes - print/magicfilter GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf Total # of ports modified: 1,027 Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes) PR: 126524 (obsoletes 52917) Submitted by: rafan Tested on: two pointyhat 7-amd64 exp runs (by pav) Approved by: portmgr (pav)
158 lines
4.1 KiB
Makefile
158 lines
4.1 KiB
Makefile
# New ports collection makefile for: compiz
|
|
# Date created: Dec 20 2006
|
|
# Whom: Florent Thoumie <flz@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= compiz
|
|
PORTVERSION= 0.6.2
|
|
#PORTREVISION= 1
|
|
PORTREVISION= 2
|
|
CATEGORIES= x11-wm
|
|
|
|
MAINTAINER= rnoland@FreeBSD.org
|
|
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
|
|
#USE_BZIP2= yes
|
|
USE_TGZ= yes
|
|
USE_GMAKE= yes
|
|
USE_GETTEXT= yes
|
|
USE_GL= glu
|
|
USE_GNOME= gnomehack gconf2 libxslt
|
|
USE_XORG= xcomposite xfixes xdamage xrandr xrender ice sm xinerama glproto
|
|
USE_LDCONFIG= yes
|
|
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_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
|
|
|
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 \
|
|
FUSEFS "Enable fusefs support" off \
|
|
KDE "Enable KDE support" off
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|libpng|libpng12|' ${WRKSRC}/configure
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITHOUT_RSVG)
|
|
CONFIGURE_ARGS+= --enable-librsvg
|
|
USE_GNOME+= librsvg2
|
|
PLIST_SUB+= RSVG=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-librsvg
|
|
PLIST_SUB+= RSVG="@comment "
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_GTK)
|
|
CONFIGURE_ARGS+= --enable-gtk
|
|
USE_GNOME+= glib20 libwnck
|
|
PLIST_SUB+= GTK=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-gtk
|
|
PLIST_SUB+= GTK="@comment "
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_METACITY) && !defined(WITHOUT_GNOME) && !defined(WITHOUT_GTK)
|
|
CONFIGURE_ARGS+= --enable-metacity
|
|
USE_GNOME+= metacity
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-metacity
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_GNOME) && !defined(WITHOUT_GTK)
|
|
CONFIGURE_ARGS+= --enable-gnome \
|
|
--enable-gnome-keybindings
|
|
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
|
|
CONFIGURE_ARGS+= --disable-gnome \
|
|
--disable-gnome-keybindings
|
|
PLIST_SUB+= GNOME="@comment "
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_DBUS)
|
|
CONFIGURE_ARGS+= --enable-dbus
|
|
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:${PORTSDIR}/devel/dbus
|
|
RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:${PORTSDIR}/devel/dbus
|
|
.if !defined(WITHOUT_GTK) && !defined(WITHOUT_GNOME)
|
|
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 defined(WITH_FUSEFS)
|
|
CONFIGURE_ARGS+= --enable-fuse
|
|
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/fuse.pc:${PORTSDIR}/sysutils/fusefs-libs
|
|
RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/fuse.pc:${PORTSDIR}/sysutils/fusefs-libs
|
|
PLIST_SUB+= FUSEFS=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-fuse
|
|
PLIST_SUB+= FUSEFS="@comment "
|
|
.endif
|
|
|
|
.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
|
|
|
|
.include <bsd.port.post.mk>
|