mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
0b5f00071c
PR: 54544 Submitted by: Ports Fury
76 lines
2.0 KiB
Makefile
76 lines
2.0 KiB
Makefile
# New ports collection makefile for: icewm
|
|
# Date created: 10 August 1997
|
|
# Whom: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= icewm
|
|
PORTVERSION= 1.2.9
|
|
CATEGORIES= x11-wm
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Window Manager designed for speed, usability and consistency
|
|
|
|
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
|
|
|
|
USE_X_PREFIX= yes
|
|
WANT_GNOME= yes
|
|
USE_GNOME= gnometarget
|
|
USE_REINPLACE= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
|
|
CONFIGURE_ARGS= --disable-xfreetype \
|
|
--with-cfgdir=${DATADIR} \
|
|
--with-libdir=${DATADIR} \
|
|
--with-kdedatadir=${LOCALBASE}/share \
|
|
--with-docdir=${PREFIX}/share/doc \
|
|
--with-mkfontdir=${NONEXISTENT}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${HAVE_GNOME:Mgnomedesktop}!=""
|
|
USE_GNOME+= gnomedesktop
|
|
CONFIGURE_ARGS+= --with-imlib --without-xpm --enable-menus-gnome \
|
|
--enable-guievents --with-icesound=esound
|
|
INSTALL_TARGET= install install-gnome
|
|
PLIST_SUB+= ESOUND="" GNOMEDESKTOP=""
|
|
PKGNAMESUFFIX= -gnome
|
|
.else
|
|
USE_XPM= yes
|
|
CONFIGURE_ARGS+= --without-imlib --with-xpm
|
|
.if ${HAVE_GNOME:Mesound}!=""
|
|
USE_GNOME+= esound
|
|
CONFIGURE_ARGS+= --enable-guievents --with-icesound=esound
|
|
PLIST_SUB+= ESOUND="" GNOMEDESKTOP="@comment "
|
|
.else
|
|
PLIST_SUB+= ESOUND="@comment " GNOMEDESKTOP="@comment "
|
|
.endif
|
|
.endif
|
|
|
|
post-patch:
|
|
.for file in src/gnome2.cc
|
|
@${REINPLACE_CMD} -e \
|
|
's|/usr/share/control|${X11BASE}/share/gnome/control|g ; \
|
|
s|/usr/share/app|${X11BASE}/share/gnome/app|g ; \
|
|
s|/usr/share/gnome|${X11BASE}/share/gnome|g' ${WRKSRC}/${file}
|
|
.endfor
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${FILESDIR}/bsd-daemon.xpm ${DATADIR}/taskbar
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for file in CHANGES INSTALL README TODO
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
|
|
.endif
|
|
${CHOWN} root:kmem ${PREFIX}/bin/icewm
|
|
${CHMOD} 2555 ${PREFIX}/bin/icewm
|
|
|
|
.include <bsd.port.post.mk>
|