blob: ca44b13a3c05de1da37f8eea55d2cfc6596cafbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# New ports collection makefile for: aewm
# Date created: 2000-12-16
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME= aewm
PORTVERSION= 1.2.7
PORTREVISION= 1
CATEGORIES= x11-wm
MASTER_SITES= http://www.red-bean.com/~decklin/software/aewm/
MAINTAINER= ports@FreeBSD.org
COMMENT= ICCCM-compliant window manager based on 9wm
USE_X_PREFIX= yes
WANT_GNOME= yes
USE_GMAKE= yes
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" XROOT="${X11BASE}"
MAN1= aeclients.1 aewm.1
GTKCLIENTS= aemenu-gtk aepanel-gtk
XAWCLIENTS= aemenu-xaw aepanel-xaw aesession set-gnome-pda
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgtk20}!=""
USE_GNOME+= gtk20
PKGNAMESUFFIX= -gtk
.else
.endif
.if defined(WITH_XFT)
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft
MAKE_ENV+= DEFINES="-DXFT" \
EXTRA_INC="`pkg-config --cflags xft`" \
EXTRA_LIBS="`pkg-config --libs xft`"
.endif
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIR/s|clients||g' ${WRKSRC}/Makefile
.for i in clients/lib/aeclients.h src/aewm.h
@${REINPLACE_CMD} -e 's|/etc/X11/|${PREFIX}/etc/|g' ${WRKSRC}/${i}
.endfor
post-build:
.if ${HAVE_GNOME:Mgtk20}!=""
cd ${WRKSRC}/clients && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} \
${GTKCLIENTS} ${XAWCLIENTS}
.else
cd ${WRKSRC}/clients && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} \
${XAWCLIENTS}
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/aewm ${PREFIX}/bin
.for i in ${XAWCLIENTS}
${INSTALL_PROGRAM} ${WRKSRC}/clients/${i} ${PREFIX}/bin
.endfor
.if ${HAVE_GNOME:Mgtk20}!=""
.for i in ${GTKCLIENTS}
${INSTALL_PROGRAM} ${WRKSRC}/clients/${i} ${PREFIX}/bin
.endfor
${LN} -sf aemenu-gtk ${PREFIX}/bin/aemenu
${LN} -sf aepanel-gtk ${PREFIX}/bin/aepanel
.else
${LN} -sf aemenu-xaw ${PREFIX}/bin/aemenu
${LN} -sf aepanel-xaw ${PREFIX}/bin/aepanel
.endif
${INSTALL_MAN} ${WRKSRC}/src/aewm.1x ${MANPREFIX}/man/man1/aewm.1
${INSTALL_MAN} ${WRKSRC}/clients/aeclients.1x \
${MANPREFIX}/man/man1/aeclients.1
@${MKDIR} ${PREFIX}/etc/aewm
${INSTALL_DATA} ${WRKSRC}/src/aewmrc.sample ${PREFIX}/etc/aewm
${INSTALL_DATA} ${WRKSRC}/clients/clientsrc.sample ${PREFIX}/etc/aewm
.if !exists(${PREFIX}/etc/aewm/aewmrc)
cd ${PREFIX}/etc/aewm && ${CP} aewmrc.sample aewmrc
.endif
.if !exists(${PREFIX}/etc/aewm/clientsrc)
cd ${PREFIX}/etc/aewm && ${CP} clientsrc.sample clientsrc
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in DESIGN LICENSE NEWS README TODO
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|