1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/x11-wm/fluxbox-devel/Makefile
Ruslan Ermilov 1bbd3f7f9f - Protect fluxbox-generate_menu from doing unsafe shell expansions.
- Fixed startfluxbox to work with the standard Bourne shell.

Approved by:	Jeremy Messenger (MAINTAINER)
2004-03-14 16:23:20 +00:00

79 lines
1.8 KiB
Makefile

# New ports collection makefile for: fluxbox-devel
# Date created: 21 May 2003
# Whom: hendrik@scholz.net
#
# $FreeBSD$
#
PORTNAME= fluxbox
PORTVERSION= 0.9.8
PORTREVISION= 1
CATEGORIES= x11-wm
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= fluxbox
PKGNAMESUFFIX= -devel
MAINTAINER= mezz7@cox.net
COMMENT= A small and fast window manager based on BlackBox
LIB_DEPENDS= Xft.2:${PORTSDIR}/x11-fonts/Xft
RUN_DEPENDS= bsetbg:${PORTSDIR}/x11-wm/boxtools \
xterm:${PORTSDIR}/x11/XFree86-4-clients
BUILD_DEPENDS= xterm:${PORTSDIR}/x11/XFree86-4-clients
CONFLICTS= fluxbox-0.1.*
USE_BZIP2= yes
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
WANT_GNOME= yes
USE_REINPLACE= yes
CONFIGURE_ARGS= --enable-nls
.if defined(WITH_KDE) || defined(PACKAGE_BUILDING)
CONFIGURE_ARGS+= --enable-kde
.endif
.if defined(WITH_XINERAMA) || defined(PACKAGE_BUILDING)
CONFIGURE_ARGS+= --enable-xinerama
.endif
.include <bsd.port.pre.mk>
MAN1= fluxbox.1
.if ${HAVE_GNOME:Mlibgnome}!="" || defined(PACKAGE_BUILDING)
CONFIGURE_ARGS+= --enable-gnome
.else
CONFIGURE_ARGS+= --disable-gnome
.endif
NLSMAKEFILES= nls nls/C nls/bg_BG nls/da_DK nls/de_DE nls/es_ES nls/et_EE \
nls/fr_FR nls/it_IT nls/ja_JP nls/lv_LV nls/nl_NL nls/pt_BR \
nls/pt_PT nls/ru_RU nls/sv_SE nls/tr_TR
pre-everything::
@${ECHO_CMD} ""
@${ECHO_CMD} "Definable build options"
@${ECHO_CMD} "-----------------------"
.if !defined(WITH_XINERAMA)
@${ECHO_CMD} "WITH_XINERAMA - Enable Xinerama support"
.endif
.if !defined(WITH_KDE)
@${ECHO_CMD} "WITH_KDE - Enable KDE slit support"
.endif
post-patch::
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g; s|%%X11BASE%%|${X11BASE}|g' \
${WRKSRC}/util/fluxbox-generate_menu.in
post-configure::
.for i in ${NLSMAKEFILES}
@${REINPLACE_CMD} -e 's|@NLS@|-DNLS|' ${WRKSRC}/${i}/Makefile
.endfor
post-install::
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>