2011-04-02 14:49:02 +02:00
|
|
|
# New ports collection makefile for: Fvwm2 (unstable release)
|
|
|
|
# Date created: 20 Jan 1996
|
|
|
|
# Whom: Peter Wemm <peter@FreeBSD.org>
|
1996-03-09 15:42:57 +01:00
|
|
|
#
|
1999-08-31 05:04:38 +02:00
|
|
|
# $FreeBSD$
|
1996-03-09 15:42:57 +01:00
|
|
|
#
|
|
|
|
|
2000-04-18 20:15:06 +02:00
|
|
|
PORTNAME= fvwm
|
2011-04-17 06:43:31 +02:00
|
|
|
PORTVERSION= 2.7.0
|
2011-06-05 07:31:20 +02:00
|
|
|
PORTREVISION= 1
|
1998-08-08 01:01:41 +02:00
|
|
|
CATEGORIES= x11-wm
|
2000-11-03 17:12:44 +01:00
|
|
|
MASTER_SITES= ftp://ftp.fvwm.org/pub/fvwm/version-2/ \
|
|
|
|
http://www.fvwm.org/generated/icon_download/
|
2003-08-08 04:29:06 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
2000-07-06 16:58:15 +02:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1996-03-09 15:42:57 +01:00
|
|
|
|
2002-04-03 16:51:45 +02:00
|
|
|
MAINTAINER= cy@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Popular virtual window manager for X
|
1996-03-09 15:42:57 +01:00
|
|
|
|
2001-02-14 23:21:27 +01:00
|
|
|
RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4
|
|
|
|
|
2005-07-17 05:47:53 +02:00
|
|
|
# Other ports this port cannot coexist with
|
2011-04-19 03:48:58 +02:00
|
|
|
CONFLICTS?= fvwm-1.* fvwm-2.[456].*
|
2004-02-07 05:16:53 +01:00
|
|
|
NO_LATEST_LINK= yes
|
2011-04-02 14:49:02 +02:00
|
|
|
|
2005-10-25 17:43:21 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= X_CFLAGS=-I${LOCALBASE}/include
|
2011-06-05 07:31:20 +02:00
|
|
|
CONFIGURE_ARGS= --mandir=${MANPREFIX}/man
|
|
|
|
USE_AUTOTOOLS= autoconf
|
2002-04-03 16:51:45 +02:00
|
|
|
USE_GMAKE= yes
|
2011-04-02 14:49:02 +02:00
|
|
|
USE_XORG= xpm xft
|
2002-09-11 22:34:33 +02:00
|
|
|
USE_BZIP2= yes
|
2002-04-03 16:51:45 +02:00
|
|
|
WANT_GNOME= yes
|
2002-09-11 22:34:33 +02:00
|
|
|
|
2005-10-25 17:43:21 +02:00
|
|
|
OPTIONS= ICONS "Install default icon set" on \
|
|
|
|
ICONV "Enable iconv character conversion support" on \
|
|
|
|
STROKE "Enable support for mouse gestures" off \
|
|
|
|
RPLAY "Enable RPlay support in FvwmEvent" off \
|
|
|
|
SESSION_MGMT "Enable Session Management support" on \
|
|
|
|
PNG "Build with PNG graphics support" on \
|
2011-06-05 07:31:20 +02:00
|
|
|
SVG "Build with SVG graphics support using librsvg2" off \
|
2005-10-25 17:43:21 +02:00
|
|
|
BIDI "Enable Asian bi-directional text support" off \
|
|
|
|
NLS "Enable National Language Support" on \
|
2011-06-05 07:31:20 +02:00
|
|
|
IMLIB "Enable imlib library (requires gtk12)" off \
|
2005-10-25 17:43:21 +02:00
|
|
|
GNOME "Enable GNOME desktop support" off
|
|
|
|
|
2002-09-11 22:34:33 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2002-04-03 16:51:45 +02:00
|
|
|
|
2005-10-25 17:43:21 +02:00
|
|
|
.if !defined(WITHOUT_ICONS)
|
2009-02-03 22:07:11 +01:00
|
|
|
FVWM_ICONS= fvwm_icons-20070101
|
|
|
|
DISTFILES+= ${FVWM_ICONS}.tar.bz2
|
2005-10-25 17:43:21 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_ICONV)
|
|
|
|
CONFIGURE_ARGS+= --disable-iconv
|
|
|
|
.else
|
2007-01-12 10:12:57 +01:00
|
|
|
USE_ICONV= yes
|
2005-10-25 17:43:21 +02:00
|
|
|
CONFIGURE_ARGS+= --with-iconv-library=${LOCALBASE}/lib \
|
2011-06-05 07:31:20 +02:00
|
|
|
--with-iconv-includes=${LOCALBASE}/include
|
2005-10-25 17:43:21 +02:00
|
|
|
.endif
|
1999-07-01 19:14:44 +02:00
|
|
|
|
2002-04-03 16:51:45 +02:00
|
|
|
.if defined(WITH_STROKE)
|
2005-10-25 17:43:21 +02:00
|
|
|
LIB_DEPENDS+= stroke.0:${PORTSDIR}/devel/libstroke
|
2011-06-05 07:31:20 +02:00
|
|
|
CONFIGURE_ARGS+= --with-stroke-library=${LOCALBASE}/lib \
|
2002-04-03 16:51:45 +02:00
|
|
|
--with-stroke-includes=${LOCALBASE}/include
|
2011-06-05 07:31:20 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-stroke-library
|
2002-04-03 16:51:45 +02:00
|
|
|
.endif
|
|
|
|
|
2005-10-25 17:43:21 +02:00
|
|
|
.if defined(WITH_RPLAY)
|
|
|
|
LIB_DEPENDS+= rplay.1:${PORTSDIR}/audio/rplay
|
2011-06-05 07:31:20 +02:00
|
|
|
CONFIGURE_ARGS+= --with-rplay-library=${LOCALBASE}/lib \
|
2005-10-25 17:43:21 +02:00
|
|
|
--with-rplay-includes=${LOCALBASE}/include
|
2011-06-05 07:31:20 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-rplay-library
|
2005-10-25 17:43:21 +02:00
|
|
|
.endif
|
|
|
|
|
2002-09-11 22:34:33 +02:00
|
|
|
.if defined(WITHOUT_SESSION_MGMT)
|
|
|
|
CONFIGURE_ARGS+= --disable-sm
|
|
|
|
.endif
|
2001-02-14 23:21:27 +01:00
|
|
|
|
2002-09-14 03:39:27 +02:00
|
|
|
.if !defined(WITHOUT_PNG)
|
2010-03-28 08:47:48 +02:00
|
|
|
LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png
|
2011-06-05 07:31:20 +02:00
|
|
|
CONFIGURE_ARGS+= --with-png-includes=${LOCALBASE}/include \
|
2002-09-14 03:39:27 +02:00
|
|
|
--with-png-library=${LOCALBASE}/lib
|
2011-06-05 07:31:20 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-png-library
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SVG) && !defined(WITHOUT_SVG)
|
|
|
|
USE_GNOME+= librsvg2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-rsvg
|
2002-09-14 03:39:27 +02:00
|
|
|
.endif
|
|
|
|
|
2003-08-08 04:29:06 +02:00
|
|
|
.if defined(WITHOUT_BIDI)
|
2005-10-25 17:43:21 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-bidi
|
|
|
|
.else
|
2009-08-22 19:36:57 +02:00
|
|
|
LIB_DEPENDS+= fribidi.3:${PORTSDIR}/converters/fribidi
|
2011-06-05 07:31:20 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-bidi \
|
|
|
|
--with-bidi-bindir=${LOCALBASE}/bin
|
2003-08-08 04:29:06 +02:00
|
|
|
.endif
|
|
|
|
|
2002-09-11 22:34:33 +02:00
|
|
|
PLIST_SUB+= FVWM_VERSION="${PORTVERSION}"
|
2001-02-14 23:21:27 +01:00
|
|
|
|
2011-06-05 07:31:20 +02:00
|
|
|
.if defined(WITH_IMLIB) && !defined(WITHOUT_GTK)
|
|
|
|
USE_GNOME+= imlib
|
2003-08-08 04:29:06 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-gtktest --enable-imlibtest
|
2002-09-11 22:34:33 +02:00
|
|
|
PLIST_SUB+= GTK=""
|
2005-10-25 17:43:21 +02:00
|
|
|
MAN1+= FvwmGtk.1
|
2001-02-14 23:21:27 +01:00
|
|
|
.else
|
2004-04-06 20:08:18 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-gtktest --disable-imlibtest \
|
|
|
|
--with-gtk-prefix=/no/dir --with-imlib-prefix=/no/dir
|
2002-09-11 22:34:33 +02:00
|
|
|
PLIST_SUB+= GTK="@comment not installed: "
|
2004-04-06 20:08:18 +02:00
|
|
|
WITHOUT_GNOME= true
|
2001-02-14 23:21:27 +01:00
|
|
|
.endif
|
2000-07-06 16:58:15 +02:00
|
|
|
|
2005-10-25 17:43:21 +02:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
2011-06-05 07:31:20 +02:00
|
|
|
CONFIGURE_ARGS+= --with-intl-library=${LOCALBASE}/lib \
|
2005-10-25 17:43:21 +02:00
|
|
|
--with-intl-includes=${LOCALBASE}/include
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment not installed: "
|
|
|
|
.endif
|
|
|
|
|
2004-04-06 20:08:18 +02:00
|
|
|
.if defined(WITHOUT_GNOME)
|
2011-06-05 07:31:20 +02:00
|
|
|
CONFIGURE_ARGS+= --without-gnome
|
2004-04-06 20:08:18 +02:00
|
|
|
.else
|
2011-06-05 07:31:20 +02:00
|
|
|
USE_GNOME+=gnomelibs
|
|
|
|
CONFIGURE_ARGS+= --with-gnome
|
2003-08-08 04:29:06 +02:00
|
|
|
.endif
|
|
|
|
|
2005-10-25 17:43:21 +02:00
|
|
|
MAN1+= FvwmAnimate.1 FvwmAuto.1 FvwmBacker.1 FvwmBanner.1 FvwmButtons.1 \
|
2002-04-03 16:51:45 +02:00
|
|
|
FvwmCommand.1 FvwmConsole.1 FvwmConsoleC.pl.1 FvwmCpp.1 FvwmDebug.1 \
|
2003-11-03 23:13:28 +01:00
|
|
|
FvwmDragWell.1 FvwmEvent.1 FvwmForm.1 FvwmIconBox.1 \
|
2002-04-03 16:51:45 +02:00
|
|
|
FvwmIconMan.1 FvwmIdent.1 FvwmM4.1 FvwmPager.1 FvwmRearrange.1 \
|
|
|
|
FvwmSave.1 FvwmSaveDesk.1 FvwmScript.1 FvwmScroll.1 FvwmTaskBar.1 \
|
|
|
|
FvwmTheme.1 FvwmWharf.1 FvwmWinList.1 fvwm-menu-desktop.1 \
|
|
|
|
fvwm-menu-directory.1 fvwm-menu-headlines.1 fvwm-menu-xlock.1 \
|
2002-09-11 22:34:33 +02:00
|
|
|
fvwm.1 fvwm-root.1 fvwm-config.1 fvwm-bug.1 \
|
2007-01-19 20:37:26 +01:00
|
|
|
fvwm-convert-2.4.1 fvwm-convert-2.6.1 \
|
2006-02-07 12:21:15 +01:00
|
|
|
FvwmPerl.1 fvwm-perllib.1 FvwmProxy.1 FvwmTabs.1 FvwmWindowMenu.1 \
|
2003-01-07 05:47:47 +01:00
|
|
|
FvwmGtkDebug.1
|
|
|
|
|
2008-12-13 07:35:51 +01:00
|
|
|
MLINKS= fvwm.1 fvwm2.1 \
|
|
|
|
fvwm-root.1 xpmroot.1
|
2007-09-09 08:01:11 +02:00
|
|
|
|
2003-08-08 04:29:06 +02:00
|
|
|
.if !defined(WITHOUT_ICONS)
|
|
|
|
PLIST_SUB+= ICONS=""
|
2000-07-06 16:58:15 +02:00
|
|
|
post-extract:
|
2002-04-03 16:51:45 +02:00
|
|
|
@${MKDIR} ${WRKDIR}/icons
|
2009-02-09 22:29:06 +01:00
|
|
|
@${TAR} -xzf ${DISTDIR}/${FVWM_ICONS}.tar.bz2 -C ${WRKDIR}/icons
|
2003-08-08 04:29:06 +02:00
|
|
|
.else
|
2005-10-25 17:43:21 +02:00
|
|
|
PLIST_SUB+= ICONS="@comment not installed: "
|
2003-08-08 04:29:06 +02:00
|
|
|
.endif
|
2002-04-03 16:51:45 +02:00
|
|
|
|
|
|
|
post-patch:
|
2002-09-14 02:54:55 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' \
|
2002-09-14 03:39:27 +02:00
|
|
|
${WRKSRC}/modules/FvwmM4/FvwmM4.c \
|
|
|
|
${WRKSRC}/configure
|
1997-03-03 12:31:50 +01:00
|
|
|
|
1996-03-09 15:42:57 +01:00
|
|
|
post-install:
|
2002-04-03 16:51:45 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/sample.fvwmrc/system.fvwm2rc \
|
|
|
|
${PREFIX}/etc/system.fvwm2rc.dist
|
2001-06-24 21:49:50 +02:00
|
|
|
@if [ ! -e ${PREFIX}/etc/system.fvwm2rc ]; then \
|
2002-04-03 16:51:45 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample.fvwmrc/system.fvwm2rc \
|
|
|
|
${PREFIX}/etc/system.fvwm2rc; \
|
2001-06-24 21:49:50 +02:00
|
|
|
fi
|
2003-08-08 04:29:06 +02:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_ICONS)
|
2004-04-06 20:08:18 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/fvwm/pixmaps
|
2009-02-03 22:07:11 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/icons/${FVWM_ICONS}/*.xpm \
|
2004-04-06 20:08:18 +02:00
|
|
|
${PREFIX}/share/fvwm/pixmaps
|
2003-08-08 04:29:06 +02:00
|
|
|
.endif
|
1996-03-09 15:42:57 +01:00
|
|
|
|
2001-02-14 23:21:27 +01:00
|
|
|
.include <bsd.port.post.mk>
|