be7bf1ed08
Submitted by: KATO Tsuguru <tkato@prontomail.com> PR: 34774 Also compile and install the aemenu and aepanel applets, using the Athena widgets and (when it is available) GTK+. These applets provide a list of windows by title (vertically for aemenu, horizontally for aepanel) and a menu from which programs may be run.
103 lines
2.6 KiB
Makefile
103 lines
2.6 KiB
Makefile
# New ports collection makefile for: aewm
|
|
# Date created: 2000-12-16
|
|
# Whom: trevor
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= aewm
|
|
PORTVERSION= 1.2.0
|
|
CATEGORIES= x11-wm
|
|
MASTER_SITES= http://www.red-bean.com/~decklin/aewm/
|
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
|
|
|
GTKCLIENTS= aemenu-gtk aepanel-gtk
|
|
XAWCLIENTS= set-gnome-pda \
|
|
aesession \
|
|
aemenu-xaw \
|
|
aepanel-xaw
|
|
DOCDIR= share/doc/${PORTNAME}
|
|
DOCS= ChangeLog README TODO DESIGN LICENSE
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" XROOT="${X11BASE}"
|
|
MAN1= aewm.1
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
USE_GMAKE= yes
|
|
USE_X_PREFIX= yes
|
|
WANT_GTK= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.if defined(HAVE_GTK)
|
|
USE_GTK=yes
|
|
.endif
|
|
|
|
.if !defined(HAVE_GTK)
|
|
ALL_TARGET= aewm
|
|
.endif
|
|
|
|
do-patch:
|
|
${PERL} -pi -e 's:/etc/X11/aewm/aewmrc:${PREFIX}/etc/aewmrc:g' \
|
|
${WRKSRC}/aewm.h
|
|
${PERL} -pi -e 's:\+make:\+gmake:g' ${WRKSRC}/Makefile
|
|
.if defined(HAVE_GTK)
|
|
${PERL} -pi -e 's:gtk-config:${GTK_CONFIG}:g' \
|
|
${WRKSRC}/clients/Makefile
|
|
${PERL} -pi -e 's:/etc/X11/aewm/clientsrc:${PREFIX}/etc/clientsrc:g' \
|
|
${WRKSRC}/clients/lib/aeclients.h
|
|
.endif
|
|
|
|
pre-install:
|
|
${RM} -f ${PLIST}
|
|
.for i in aewm aemenu aepanel ${XAWCLIENTS}
|
|
${ECHO_CMD} bin/${i} >> ${PLIST}
|
|
.endfor
|
|
.if defined(HAVE_GTK)
|
|
.for i in ${GTKCLIENTS}
|
|
${ECHO_CMD} bin/${i} >> ${PLIST}
|
|
.endfor
|
|
.endif
|
|
${ECHO_CMD} share/examples/aewm/aewmrc.sample >> ${PLIST}
|
|
${ECHO_CMD} share/examples/aewm/clientsrc.sample >> ${PLIST}
|
|
${ECHO_CMD} etc/aewmrc >> ${PLIST}
|
|
${ECHO_CMD} etc/clientsrc >> ${PLIST}
|
|
.if !defined(NOPORTDOCS)
|
|
.for i in ${DOCS}
|
|
${ECHO_CMD} ${DOCDIR}/${i} >> ${PLIST}
|
|
.endfor
|
|
${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}
|
|
.endif
|
|
${ECHO_CMD} @dirrm share/examples/aewm >> ${PLIST}
|
|
|
|
do-install:
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/aewm ${PREFIX}/bin
|
|
.for i in ${XAWCLIENTS}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/clients/${i} ${PREFIX}/bin
|
|
.endfor
|
|
.if defined(HAVE_GTK)
|
|
.for i in ${GTKCLIENTS}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/clients/${i} ${PREFIX}/bin
|
|
.endfor
|
|
.if defined(HAVE_GTK)
|
|
cd ${PREFIX}/bin && ${LN} -s aemenu-gtk aemenu && \
|
|
${LN} -s aepanel-gtk aepanel
|
|
.else
|
|
cd ${PREFIX}/bin && ${LN} -s aemenu-xaw aemenu && \
|
|
${LN} -s aepanel-xaw aepanel
|
|
.endif
|
|
${INSTALL_DATA} ${WRKSRC}/clients/clientsrc.sample ${EXAMPLESDIR}
|
|
.endif
|
|
${INSTALL_DATA} ${WRKSRC}/aewmrc.sample ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/aewmrc.sample ${PREFIX}/etc/aewmrc
|
|
${INSTALL_DATA} ${WRKSRC}/clients/clientsrc.sample \
|
|
${PREFIX}/etc/clientsrc
|
|
${INSTALL_MAN} ${WRKSRC}/aewm.1x ${MANPREFIX}/man/man1/aewm.1
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${PREFIX}/${DOCDIR}
|
|
.for i in ${DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|