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
|
2008-05-07 19:41:21 +02:00
|
|
|
PORTVERSION= 2.5.26
|
2008-06-06 16:17:21 +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
|
|
|
|
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
|
2007-07-23 11:36:51 +02:00
|
|
|
CONFIGURE_ARGS= --with-png-library=${LOCALBASE}/lib
|
2002-04-03 16:51:45 +02:00
|
|
|
USE_GMAKE= yes
|
2008-03-23 17:44:09 +01:00
|
|
|
USE_XORG= xpm
|
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
|
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 \
|
2007-09-07 18:55:11 +02:00
|
|
|
--with-iconv-includes=${LOCALBASE}/include \
|
|
|
|
--mandir=${LOCALBASE}/man
|
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
|
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 \
|
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
|
|
|
|
|
2007-09-09 08:01:11 +02:00
|
|
|
MLINKS= fvwm.1 fvwm2.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>
|