# Created by: Yukihiro Nakai # $FreeBSD$ PORTNAME= icewm PORTVERSION= 1.3.8 PORTREVISION= 4 CATEGORIES= x11-wm MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}/${PORTVERSION} MAINTAINER= portmaster@bsdforge.com COMMENT= Window Manager designed for speed, usability and consistency LICENSE= LGPL20 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 USES= gmake iconv:translit localbase pkgconfig USE_CXXSTD= c++98 USE_GNOME= gdkpixbuf2 USE_XORG= ice sm x11 xext xrender GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-guievents \ --with-cfgdir=${DATADIR} \ --with-libdir=${DATADIR} \ --with-kdedatadir=${LOCALBASE}/share \ --with-docdir=${PREFIX}/share/doc \ --with-mkfontdir=${NONEXISTENT} OPTIONS_DEFINE= BEASTIE ESOUND GNOME LITE MENUFIX NLS XFT XINERAMA \ XRANDR DOCS OPTIONS_DEFINE_i386= ASM OPTIONS_DEFAULT= BEASTIE MENUFIX XFT XINERAMA XRANDR OPTIONS_DEFAULT_i386= ASM OPTIONS_SUB= yes BEASTIE_DESC= Use Beastie'fied startup button ESOUND_USE= GNOME=esound ESOUND_CONFIGURE_ON= --with-icesound=esound ESOUND_CONFIGURE_OFF= --with-icesound=oss GNOME_DESC= Display GNOME 2 menus GNOME_USE= GNOME=gnomedesktop,libgnomeui GNOME_CONFIGURE_ENABLE= menus-gnome2 LITE_CONFIGURE_ENABLE= lite MENUFIX_DESC= MenuIconSize fix MENUFIX_EXTRA_PATCHES= ${FILESDIR}/extra-menu-icon-fix.patch NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls XFT_LIB_DEPENDS= libXft.so:x11-fonts/libXft XFT_CONFIGURE_OFF= --enable-corefonts --disable-xfreetype XINERAMA_USE= XORG=xinerama XINERAMA_CONFIGURE_ENABLE= xinerama XRANDR_USE= XORG=xrandr XRANDR_CONFIGURE_ENABLE= xrandr ASM_CONFIGURE_ENABLE= x86-asm BEASTIE_VARS= STARTUP_PIXMAP=${DATADIR}/taskbar/bsd-daemon.xpm BEASTIE_VARS_OFF= STARTUP_PIXMAP=icewm-logo.xpm post-extract: .for dir in taskbar themes/Infadel2/taskbar @cd ${WRKSRC}/lib/${dir} && ${MV} start.xpm icewm-logo.xpm .endfor @${CP} -f ${FILESDIR}/bsd-daemon.xpm ${WRKSRC}/lib/taskbar post-patch: @${REINPLACE_CMD} -e '/test/s|==|=|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e \ 's|/usr/share/control|${LOCALBASE}/share/control|g ; \ s|/usr/share/app|${LOCALBASE}/share/app|g ; \ s|/usr/share/gnome|${LOCALBASE}/share/gnome|g' \ ${WRKSRC}/src/gnome2.cc @${REINPLACE_CMD} -e \ 's|SHELL=.*|SHELL=@SHELL@| ; \ s|icewm-set-gnomewm||g' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e \ 's|icewm-$$(VERSION)|icewm| ; \ s|`pkg-config fontconfig --cflags`|| ; \ s|`pkg-config fontconfig --libs`|| ; \ /@echo/s|^|#| ; \ s|@$$(|$$(|' ${WRKSRC}/src/Makefile.in post-install: .for dir in taskbar themes/Infadel2/taskbar @${LN} -s ${STARTUP_PIXMAP} ${STAGEDIR}${DATADIR}/${dir}/start.xpm .endfor post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in CHANGES INSTALL README TODO doc/*.html ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor .include