2007-06-04 17:08:39 +02:00
|
|
|
# New ports collection makefile for: Metisse
|
|
|
|
# Date created: 31 May 2007
|
|
|
|
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= metisse
|
|
|
|
DISTVERSION= 0.4.0-rc4
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 6
|
2007-06-04 17:08:39 +02:00
|
|
|
CATEGORIES= x11
|
2008-07-23 20:24:35 +02:00
|
|
|
MASTER_SITES= http://insitu.lri.fr/metisse/download/latest/ \
|
|
|
|
http://freebsd.nsu.ru/distfiles/metisse/
|
2007-06-04 17:08:39 +02:00
|
|
|
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
|
|
COMMENT= An innovative X-based window system
|
|
|
|
|
|
|
|
CONFLICTS= fvwm-1.* fvwm-2.5.*
|
|
|
|
|
|
|
|
LIB_DEPENDS= Nucleo.0:${PORTSDIR}/x11-toolkits/nucleo
|
- 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 19:56:05 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libdata/xorg/fonts:${PORTSDIR}/x11-fonts/xorg-fonts
|
2007-06-04 17:08:39 +02:00
|
|
|
|
2010-05-12 21:06:55 +02:00
|
|
|
BROKEN= does not compile
|
|
|
|
|
2007-06-04 17:08:39 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
PATCH_STRIP= -p1
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
- 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 19:56:05 +02:00
|
|
|
CONFIGURE_ARGS= --with-fontdir=${LOCALBASE}/lib/X11/fonts
|
2007-06-04 17:08:39 +02:00
|
|
|
MAKE_ARGS= METISSE_DOC_DIR="${DOCSDIR}"
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_LDCONFIG= yes
|
2009-02-10 19:50:51 +01:00
|
|
|
USE_PYTHON= yes
|
2008-07-23 20:24:35 +02:00
|
|
|
USE_XORG= xrender
|
2007-06-04 17:08:39 +02:00
|
|
|
WANT_GNOME= yes
|
|
|
|
|
|
|
|
OPTIONS= MMX "Enable MMX optimizations" on \
|
|
|
|
GLX "Enable GLX extension" on \
|
|
|
|
GLX_X86 "GLX with x86 optimizations" on \
|
|
|
|
SPI "Enable widget tracking support" off \
|
|
|
|
STROKE "Enable support for mouse gestures" off \
|
|
|
|
RPLAY "Enable RPlay support in FvwmEvent" off \
|
|
|
|
BIDI "Enable bi-directional text support" off \
|
|
|
|
GTK "Enable legacy GTK+ 1.2.x support" off \
|
|
|
|
IMLIB "Enable Imlib support in FvwmGtk" off \
|
|
|
|
GNOME "Enable legacy GNOME 1.4 support" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${MACHINE_CPU:Mmmx} && !defined(WITHOUT_MMX)
|
|
|
|
CONFIGURE_ARGS+= --enable-mmx
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_GLX)
|
|
|
|
CONFIGURE_ARGS+= --enable-glx
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${ARCH} == "i386" && !defined(WITHOUT_GLX_X86)
|
|
|
|
CONFIGURE_ARGS+= --enable-glx-x86
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SPI)
|
|
|
|
USE_GNOME= atspi
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_STROKE)
|
|
|
|
LIB_DEPENDS+= stroke.0:${PORTSDIR}/devel/libstroke
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_RPLAY)
|
|
|
|
LIB_DEPENDS+= rplay.1:${PORTSDIR}/audio/rplay
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_BIDI)
|
2009-08-22 19:36:57 +02:00
|
|
|
LIB_DEPENDS+= fribidi.3:${PORTSDIR}/converters/fribidi
|
2007-06-04 17:08:39 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${HAVE_GNOME:Mgtk12} || defined(WITH_GTK)
|
|
|
|
USE_GNOME+= gtk12
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${HAVE_GNOME:Mimlib} || defined(WITH_IMLIB)
|
|
|
|
USE_GNOME+= imlib
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${HAVE_GNOME:Mgnomelibs} || defined(WITH_GNOME)
|
|
|
|
USE_GNOME+= gnomelibs
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAN1= FvwmAnimate.1 FvwmAuto.1 FvwmBacker.1 FvwmBanner.1 \
|
|
|
|
FvwmButtons.1 FvwmCommand.1 FvwmConsole.1 FvwmConsoleC.pl.1 \
|
|
|
|
FvwmCpp.1 FvwmDebug.1 FvwmDragWell.1 FvwmEvent.1 FvwmForm.1 \
|
|
|
|
FvwmGtkDebug.1 FvwmIconBox.1 FvwmIconMan.1 FvwmIdent.1 \
|
|
|
|
FvwmM4.1 FvwmPager.1 FvwmPerl.1 FvwmProxy.1 FvwmRearrange.1 \
|
|
|
|
FvwmSave.1 FvwmSaveDesk.1 FvwmScript.1 FvwmScroll.1 \
|
|
|
|
FvwmTabs.1 FvwmTaskBar.1 FvwmTheme.1 FvwmWharf.1 \
|
|
|
|
FvwmWinList.1 FvwmWindowMenu.1 fvwm-bug.1 fvwm-config.1 \
|
|
|
|
fvwm-convert-2.4.1 fvwm-convert-2.6.1 fvwm-menu-desktop.1 \
|
|
|
|
fvwm-menu-directory.1 fvwm-menu-headlines.1 \
|
|
|
|
fvwm-menu-xlock.1 fvwm-perllib.1 fvwm-root.1 fvwm.1
|
|
|
|
|
2007-06-04 20:53:11 +02:00
|
|
|
_GTK= ${USE_GNOME:Mgtk12} ${USE_GNOME:Mimlib}
|
|
|
|
.if !empty(_GTK)
|
2007-06-04 17:08:39 +02:00
|
|
|
MAN1+= FvwmGtk.1
|
|
|
|
PLIST_SUB+= GTK=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GTK="@comment "
|
|
|
|
.endif
|
|
|
|
|
2008-07-23 20:24:35 +02:00
|
|
|
post-patch: .SILENT
|
2007-07-03 16:34:25 +02:00
|
|
|
# Fix KDE tray
|
2007-06-04 17:08:39 +02:00
|
|
|
${REINPLACE_CMD} -e '4723d' ${WRKSRC}/fvwm-insitu/fvwm/events.c
|
2007-08-20 10:59:10 +02:00
|
|
|
# Fix pager mode border color
|
2008-07-23 20:24:35 +02:00
|
|
|
${REINPLACE_CMD} -e 's/0\.1,0\.5,0\.4/0.7,0.71,0.7/' \
|
2007-08-20 10:59:10 +02:00
|
|
|
${WRKSRC}/FvwmCompositor/main/compositor.cxx
|
2007-07-03 16:34:25 +02:00
|
|
|
# Fix desktop entries path
|
2007-06-04 17:08:39 +02:00
|
|
|
${REINPLACE_CMD} -E 's,^(configdir =).*,\1 ${DESKTOPDIR},' \
|
|
|
|
${WRKSRC}/fvwm-insitu/opale/session/Makefile.in
|
2007-07-03 16:34:25 +02:00
|
|
|
# Simple GCC 4.2 gimmick
|
|
|
|
${REINPLACE_CMD} -e '/^typedef/s,GLvoid,void,g' \
|
|
|
|
${WRKSRC}/xserver/include/GL/glu.h
|
2007-06-04 17:08:39 +02:00
|
|
|
|
2008-09-11 12:48:59 +02:00
|
|
|
.if ${OSVERSION} < 700042
|
|
|
|
PLIST_SUB+= FBSD6="" \
|
|
|
|
FBSD7="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= FBSD6="@comment " \
|
|
|
|
FBSD7=""
|
|
|
|
.endif
|
|
|
|
|
2007-06-04 17:08:39 +02:00
|
|
|
.include <bsd.port.post.mk>
|