2012-10-05 17:02:43 +02:00
|
|
|
# Created by: spn
|
2001-12-13 03:55:45 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= fluxbox
|
2013-02-15 08:48:22 +01:00
|
|
|
PORTVERSION= 1.3.5
|
2001-12-13 03:55:45 +01:00
|
|
|
CATEGORIES= x11-wm
|
2008-09-05 17:59:30 +02:00
|
|
|
MASTER_SITES= SF
|
2007-03-19 20:19:32 +01:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
2001-12-13 03:55:45 +01:00
|
|
|
|
2009-03-19 17:14:27 +01:00
|
|
|
MAINTAINER= beat@FreeBSD.org
|
2003-02-21 15:19:11 +01:00
|
|
|
COMMENT= A small and fast window manager based on BlackBox
|
2001-12-13 03:55:45 +01:00
|
|
|
|
2008-03-12 21:20:34 +01:00
|
|
|
RUN_DEPENDS= xmessage:${PORTSDIR}/x11/xmessage
|
2002-10-09 01:06:44 +02:00
|
|
|
|
2008-03-12 21:20:34 +01:00
|
|
|
USE_XORG= xextproto xft xpm xrandr
|
2007-03-19 20:19:32 +01:00
|
|
|
USE_GMAKE= yes
|
2004-08-09 21:09:06 +02:00
|
|
|
WANT_GNOME= yes
|
2001-12-13 03:55:45 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-08-09 21:09:06 +02:00
|
|
|
|
2007-03-19 20:19:32 +01:00
|
|
|
DOCS= AUTHORS COPYING ChangeLog NEWS README TODO
|
2011-02-20 16:02:12 +01:00
|
|
|
MAN1= fbrun.1 fbsetbg.1 fbsetroot.1 fluxbox.1 \
|
2008-09-05 17:59:30 +02:00
|
|
|
startfluxbox.1 fluxbox-remote.1
|
2011-02-20 16:02:12 +01:00
|
|
|
MAN5= fluxbox-apps.5 fluxbox-keys.5 fluxbox-menu.5 \
|
|
|
|
fluxbox-style.5
|
2007-03-19 20:19:32 +01:00
|
|
|
DOCSVERSION= 20060629
|
|
|
|
|
2012-10-05 17:02:43 +02:00
|
|
|
OPTIONS_DEFINE= DOCS DOCHTML PDF DEBUG GNOME IMLIB2 XINERAMA \
|
|
|
|
XRENDER NLS SLIT REMEMBER TOOLBAR
|
|
|
|
OPTIONS_DEFAULT= XRENDER SLIT REMEMBER TOOLBAR
|
|
|
|
DOCHTML_DESC= Install html documentation
|
|
|
|
XRENDER_DESC= Enable xrender support
|
|
|
|
SLIT_DESC= Enable slit feature
|
|
|
|
REMEMBER_DESC= Enable remember feature
|
|
|
|
TOOLBAR_DESC= Enable toolbar feature
|
2010-07-25 10:12:41 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-10-05 17:02:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
2007-03-19 20:19:32 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
.endif
|
|
|
|
|
2012-10-05 17:02:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCHTML}
|
2007-03-21 22:18:46 +01:00
|
|
|
# http://fluxbox.org/docbook/en/tarballs/
|
2007-03-19 20:19:32 +01:00
|
|
|
MASTER_SITES+= ${MASTER_SITE_LOCAL:S,%SUBDIR%,mezz,}:html \
|
|
|
|
http://people.freebsd.org/~mezz/distfiles/:html
|
|
|
|
DISTFILES+= fb-doc-mfhtml-${DOCSVERSION}.tgz:html
|
|
|
|
EXTRACT_ONLY+= fb-doc-mfhtml-${DOCSVERSION}.tgz
|
|
|
|
PLIST_SUB+= DOCHTML:=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= DOCHTML:="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-10-05 17:02:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MPDF}
|
2007-03-21 22:18:46 +01:00
|
|
|
# http://fluxbox.org/docbook/en/pdf/
|
2007-03-19 20:19:32 +01:00
|
|
|
MASTER_SITES+= ${MASTER_SITE_LOCAL:S,%SUBDIR%,mezz,}:pdf \
|
|
|
|
http://people.freebsd.org/~mezz/distfiles/:pdf
|
|
|
|
DISTFILES+= fluxbook-${DOCSVERSION}.pdf:pdf
|
|
|
|
PLIST_SUB+= DOCPDF:=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= DOCPDF:="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-10-05 17:02:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MIMLIB2}
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_EFL+= imlib2
|
2007-03-19 20:19:32 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-imlib2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-imlib2
|
|
|
|
.endif
|
2004-08-09 21:09:06 +02:00
|
|
|
|
2012-10-05 17:02:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MXINERAMA} || defined(PACKAGE_BUILDING)
|
2008-03-12 21:20:34 +01:00
|
|
|
USE_XORG+= xinerama
|
2002-10-10 17:38:38 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-xinerama
|
|
|
|
.endif
|
|
|
|
|
2012-10-05 17:02:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2007-03-19 20:19:32 +01:00
|
|
|
USE_ICONV= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -liconv"
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2007-03-19 20:19:32 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-nls
|
|
|
|
PLIST_SUB+= NLS:=""
|
|
|
|
.else
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2007-03-19 20:19:32 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS:="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-10-05 17:02:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MREMEMBER}
|
2007-03-19 20:19:32 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-remember
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-remember
|
|
|
|
.endif
|
|
|
|
|
2012-10-05 17:02:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MSLIT}
|
2007-03-19 20:19:32 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-slit
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-slit
|
|
|
|
.endif
|
|
|
|
|
2012-10-05 17:02:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MTOOLBAR}
|
2007-03-19 20:19:32 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-toolbar
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-toolbar
|
|
|
|
.endif
|
|
|
|
|
2012-10-05 17:02:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MXRENDER}
|
2008-03-12 21:20:34 +01:00
|
|
|
USE_XORG+= xrender
|
2007-03-19 20:19:32 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-xrender
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-xrender
|
|
|
|
.endif
|
|
|
|
|
2002-11-03 17:23:35 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-03-19 20:19:32 +01:00
|
|
|
.if ${HAVE_GNOME:Mlibgnome}!="" || defined(PACKAGE_BUILDING)
|
2002-11-03 17:23:35 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-gnome
|
2007-03-19 20:19:32 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gnome
|
2002-11-03 17:23:35 +01:00
|
|
|
.endif
|
|
|
|
|
2007-03-19 20:19:32 +01:00
|
|
|
post-patch:
|
2007-10-08 23:23:29 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
|
|
${WRKSRC}/util/fluxbox-generate_menu.in
|
2009-02-06 00:55:10 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
2007-10-08 23:23:29 +02:00
|
|
|
${WRKSRC}/util/fbsetbg
|
2012-12-14 21:49:18 +01:00
|
|
|
.if empty(PORT_OPTIONS:MNLS)
|
2007-03-19 20:19:32 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|HAVE_ICONV=yes|HAVE_ICONV=no|g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2012-10-05 17:02:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2007-03-19 20:19:32 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${DOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
2012-10-05 17:02:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MPDF}
|
2007-03-19 20:19:32 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}/pdf
|
2007-04-19 17:58:54 +02:00
|
|
|
@${INSTALL_DATA} ${DISTDIR}/fluxbook-${DOCSVERSION}.pdf \
|
|
|
|
${DOCSDIR}/pdf/
|
2007-03-19 20:19:32 +01:00
|
|
|
.endif
|
2012-10-05 17:02:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCHTML}
|
2007-03-19 20:19:32 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}/html
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/html/*.css ${DOCSDIR}/html/
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/html/*.html ${DOCSDIR}/html/
|
2003-01-19 18:09:38 +01:00
|
|
|
.endif
|
|
|
|
|
2002-11-03 17:23:35 +01:00
|
|
|
.include <bsd.port.post.mk>
|