1999-05-05 00:27:26 +02:00
|
|
|
# New ports collection makefile for: Fvwm2
|
1997-10-11 04:19:50 +02:00
|
|
|
# Date created: 20 Jan 1996
|
|
|
|
# Whom: peter
|
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
|
2006-01-29 04:29:21 +01:00
|
|
|
PORTVERSION= 2.5.16
|
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
|
|
|
|
2004-04-07 13:52:03 +02:00
|
|
|
LIB_DEPENDS= Xft.2:${PORTSDIR}/x11-fonts/libXft
|
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
|
|
|
|
CONFLICTS?= fvwm-1.* fvwm-2.4.*
|
2004-02-07 05:16:53 +01:00
|
|
|
NO_LATEST_LINK= yes
|
2005-10-25 17:43:21 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= X_CFLAGS=-I${LOCALBASE}/include
|
2002-09-14 02:54:55 +02:00
|
|
|
USE_REINPLACE= yes
|
2002-04-03 16:51:45 +02:00
|
|
|
USE_GMAKE= yes
|
(1) Add new variable, XFREE86_VERSION, to specify which version of
XFree86 (3 or 4) to depend to when USE_XLIB is set.
XFREE86_VERSION defaults to 3 for now, but adventurous users can
override it in /etc/make.conf. When XFREE86_VERSION=3, USE_XLIB
will add a dependency to x11/XFree86; when it is set to 4, the
dependency will be to x11/XFree86-4-libraries. When
XFREE86_VERSION=4, the PKG_IGNORE_DEPENDS and ALWAYS_BUILD_DEPENDS
hacks to avoid messing with XFree86 are turned off.
Since XFree86 version 4 includes some software that used to be
separate ports, when XFREE86_VERSION=3 the following variables are
provided:
USE_DGS LIB_DEPENDS on x11/dgs
USE_FREETYPE LIB_DEPENDS on print/freetype
USE_MESA LIB_DEPENDS on graphics/Mesa3
USE_XPM LIB_DEPENDS on graphics/xpm
When XFREE86_VERSION=4, these variables have no effect. The
LIB_DEPENDS in the tree for the above four ports have all been
converted to the USE_* counterparts. For your information, this
is the count of the number of ports:
USE_DGS 0
USE_FREETYPE 16
USE_MESA 36
USE_XPM 236
There is a new variable, XAWVER, which is set to 6 when
XFREE86_VERSION=3 and 7 when XFREE86_VERSION=4. This is also
passed to PLIST_SUB so ports that build Xaw based shared libraries
can use this variable to substitute the shlib version number.
There is also a provision of using a separate mtree file for
XFREE86_VERSION=4, but that part is not enabled yet.
Reviewed by: the ports list
Tested by: make index (XFREE86_VERSION=3 only)
(2) Add hebrew to list of valid categories.
Submitted by: nbm
2000-08-03 11:28:57 +02:00
|
|
|
USE_XPM= yes
|
2002-04-03 16:51:45 +02:00
|
|
|
USE_X_PREFIX= yes
|
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 \
|
|
|
|
MULTIBYTE "Enable multibyte character support" on \
|
|
|
|
PNG "Build with PNG graphics support" on \
|
|
|
|
BIDI "Enable Asian bi-directional text support" off \
|
|
|
|
NLS "Enable National Language Support" on \
|
|
|
|
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)
|
|
|
|
DISTFILES+= fvwm_icons.tgz
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_ICONV)
|
|
|
|
CONFIGURE_ARGS+= --disable-iconv
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv
|
|
|
|
CONFIGURE_ARGS+= --with-iconv-library=${LOCALBASE}/lib \
|
|
|
|
--with-iconv-includes=${LOCALBASE}/include
|
|
|
|
.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
|
2002-04-03 16:51:45 +02:00
|
|
|
CONFIGURE_ARGS+= --with-stroke --with-stroke-library=${LOCALBASE}/lib \
|
|
|
|
--with-stroke-includes=${LOCALBASE}/include
|
|
|
|
.endif
|
|
|
|
|
2005-10-25 17:43:21 +02:00
|
|
|
.if defined(WITH_RPLAY)
|
|
|
|
LIB_DEPENDS+= rplay.1:${PORTSDIR}/audio/rplay
|
|
|
|
CONFIGURE_ARGS+= --with-rplay --with-rplay-library=${LOCALBASE}/lib \
|
|
|
|
--with-rplay-includes=${LOCALBASE}/include
|
|
|
|
.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
|
|
|
|
2003-07-10 05:04:04 +02:00
|
|
|
.if defined(WITH_MULTIBYTE)
|
|
|
|
CONFIGURE_ARGS+= --enable-multibyte
|
|
|
|
.endif
|
2002-09-11 22:34:33 +02:00
|
|
|
|
2002-09-14 03:39:27 +02:00
|
|
|
.if !defined(WITHOUT_PNG)
|
|
|
|
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
|
|
|
|
CONFIGURE_ARGS+= --with-png --with-png-includes=${LOCALBASE}/include \
|
|
|
|
--with-png-library=${LOCALBASE}/lib
|
|
|
|
.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
|
|
|
|
LIB_DEPENDS+= fribidi.0:${PORTSDIR}/converters/fribidi
|
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
|
|
|
|
2002-09-02 03:30:26 +02:00
|
|
|
.if ${HAVE_GNOME:Mimlib}!=""
|
2002-09-11 22:34:33 +02:00
|
|
|
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
|
|
|
|
CONFIGURE_ARGS+= --with-intl --with-intl-library=${LOCALBASE}/lib \
|
|
|
|
--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)
|
2003-08-08 04:29:06 +02:00
|
|
|
CONFIGURE_ARGS+= --without-gnome --disable-gnome-hints
|
2004-04-06 20:08:18 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-gnome --enable-gnome-hints
|
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 \
|
|
|
|
fvwm-convert-2.2.1 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
|
|
|
|
|
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
|
|
|
|
@${TAR} -xzf ${DISTDIR}/fvwm_icons.tgz -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
|
2002-04-03 16:51:45 +02: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>
|