Lines 6-52
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= aewm |
8 |
PORTNAME= aewm |
9 |
PORTVERSION= 1.2.3 |
9 |
PORTVERSION= 1.2.7 |
10 |
PORTREVISION= 2 |
|
|
11 |
CATEGORIES= x11-wm |
10 |
CATEGORIES= x11-wm |
12 |
MASTER_SITES= http://www.red-bean.com/~decklin/aewm/ |
11 |
MASTER_SITES= http://www.red-bean.com/~decklin/software/aewm/ |
13 |
|
12 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= ICCCM-compliant window manager based on 9wm |
14 |
COMMENT= ICCCM-compliant window manager based on 9wm |
16 |
|
15 |
|
17 |
GTKCLIENTS= aemenu-gtk aepanel-gtk |
|
|
18 |
XAWCLIENTS= set-gnome-pda \ |
19 |
aesession \ |
20 |
aemenu-xaw \ |
21 |
aepanel-xaw |
22 |
DOCDIR= share/doc/${PORTNAME} |
23 |
DOCS= ChangeLog README TODO DESIGN LICENSE |
24 |
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" XROOT="${X11BASE}" |
25 |
MAN1= aewm.1 aeclients.1 |
26 |
PLIST= ${WRKDIR}/pkg-plist |
27 |
USE_GMAKE= yes |
28 |
USE_X_PREFIX= yes |
16 |
USE_X_PREFIX= yes |
29 |
WANT_GNOME= yes |
17 |
WANT_GNOME= yes |
30 |
USE_REINPLACE= yes |
18 |
USE_GMAKE= yes |
31 |
REINPLACE_ARGS= -i '' -E |
19 |
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" XROOT="${X11BASE}" |
|
|
20 |
|
21 |
MAN1= aeclients.1 aewm.1 |
22 |
|
23 |
GTKCLIENTS= aemenu-gtk aepanel-gtk |
24 |
XAWCLIENTS= aemenu-xaw aepanel-xaw aesession set-gnome-pda |
32 |
|
25 |
|
33 |
.include <bsd.port.pre.mk> |
26 |
.include <bsd.port.pre.mk> |
|
|
27 |
|
34 |
.if ${HAVE_GNOME:Mgtk20}!="" |
28 |
.if ${HAVE_GNOME:Mgtk20}!="" |
35 |
USE_GNOME+= gtk20 |
29 |
USE_GNOME+= gtk20 |
36 |
PKGNAMESUFFIX= -gtk |
30 |
PKGNAMESUFFIX= -gtk |
|
|
31 |
.else |
37 |
.endif |
32 |
.endif |
38 |
|
33 |
|
39 |
do-patch: |
34 |
.if ${X_WINDOW_SYSTEM:L} != xfree86-3 |
40 |
${REINPLACE_CMD} 's:/etc/X11/aewm/aewmrc:${PREFIX}/etc/aewmrc:g' \ |
35 |
.if defined(WITH_XFT) |
41 |
${WRKSRC}/src/aewm.h |
36 |
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft |
42 |
${REINPLACE_CMD} 's:clients::g' ${WRKSRC}/Makefile |
37 |
MAKE_ENV+= DEFINES="-DXFT" \ |
43 |
.if ${HAVE_GNOME:Mgtk20}!="" |
38 |
EXTRA_INC="`pkg-config --cflags xft`" \ |
44 |
${REINPLACE_CMD} 's:gtk-config:${GTK_CONFIG}:g' \ |
39 |
EXTRA_LIBS="`pkg-config --libs xft`" |
45 |
${WRKSRC}/clients/Makefile |
40 |
.endif |
46 |
${REINPLACE_CMD} 's:/etc/X11/aewm/clientsrc:${PREFIX}/etc/clientsrc:g' \ |
|
|
47 |
${WRKSRC}/clients/lib/aeclients.h |
48 |
.endif |
41 |
.endif |
49 |
|
42 |
|
|
|
43 |
post-patch: |
44 |
@${REINPLACE_CMD} -e '/^SUBDIR/s|clients||g' ${WRKSRC}/Makefile |
45 |
.for i in clients/lib/aeclients.h src/aewm.h |
46 |
@${REINPLACE_CMD} -e 's|/etc/X11/|${PREFIX}/etc/|g' ${WRKSRC}/${i} |
47 |
.endfor |
48 |
|
50 |
post-build: |
49 |
post-build: |
51 |
.if ${HAVE_GNOME:Mgtk20}!="" |
50 |
.if ${HAVE_GNOME:Mgtk20}!="" |
52 |
cd ${WRKSRC}/clients && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} \ |
51 |
cd ${WRKSRC}/clients && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} \ |
Lines 56-85
Link Here
|
56 |
${XAWCLIENTS} |
55 |
${XAWCLIENTS} |
57 |
.endif |
56 |
.endif |
58 |
|
57 |
|
59 |
pre-install: |
|
|
60 |
${RM} -f ${PLIST} |
61 |
.for i in aewm aemenu aepanel ${XAWCLIENTS} |
62 |
${ECHO_CMD} bin/${i} >> ${PLIST} |
63 |
.endfor |
64 |
.if ${HAVE_GNOME:Mgtk20}!="" |
65 |
.for i in ${GTKCLIENTS} |
66 |
${ECHO_CMD} bin/${i} >> ${PLIST} |
67 |
.endfor |
68 |
.endif |
69 |
${ECHO_CMD} share/examples/aewm/aewmrc.sample >> ${PLIST} |
70 |
${ECHO_CMD} share/examples/aewm/clientsrc.sample >> ${PLIST} |
71 |
${ECHO_CMD} etc/aewmrc >> ${PLIST} |
72 |
${ECHO_CMD} etc/clientsrc >> ${PLIST} |
73 |
.if !defined(NOPORTDOCS) |
74 |
.for i in ${DOCS} |
75 |
${ECHO_CMD} ${DOCDIR}/${i} >> ${PLIST} |
76 |
.endfor |
77 |
${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST} |
78 |
.endif |
79 |
${ECHO_CMD} @dirrm share/examples/aewm >> ${PLIST} |
80 |
|
81 |
do-install: |
58 |
do-install: |
82 |
${MKDIR} ${EXAMPLESDIR} |
|
|
83 |
${INSTALL_PROGRAM} ${WRKSRC}/src/aewm ${PREFIX}/bin |
59 |
${INSTALL_PROGRAM} ${WRKSRC}/src/aewm ${PREFIX}/bin |
84 |
.for i in ${XAWCLIENTS} |
60 |
.for i in ${XAWCLIENTS} |
85 |
${INSTALL_PROGRAM} ${WRKSRC}/clients/${i} ${PREFIX}/bin |
61 |
${INSTALL_PROGRAM} ${WRKSRC}/clients/${i} ${PREFIX}/bin |
Lines 88-111
Link Here
|
88 |
.for i in ${GTKCLIENTS} |
64 |
.for i in ${GTKCLIENTS} |
89 |
${INSTALL_PROGRAM} ${WRKSRC}/clients/${i} ${PREFIX}/bin |
65 |
${INSTALL_PROGRAM} ${WRKSRC}/clients/${i} ${PREFIX}/bin |
90 |
.endfor |
66 |
.endfor |
91 |
cd ${PREFIX}/bin && ${LN} -s aemenu-gtk aemenu && \ |
67 |
${LN} -sf aemenu-gtk ${PREFIX}/bin/aemenu |
92 |
${LN} -s aepanel-gtk aepanel |
68 |
${LN} -sf aepanel-gtk ${PREFIX}/bin/aepanel |
93 |
.else |
69 |
.else |
94 |
cd ${PREFIX}/bin && ${LN} -s aemenu-xaw aemenu && \ |
70 |
${LN} -sf aemenu-xaw ${PREFIX}/bin/aemenu |
95 |
${LN} -s aepanel-xaw aepanel |
71 |
${LN} -sf aepanel-xaw ${PREFIX}/bin/aepanel |
96 |
.endif |
72 |
.endif |
97 |
${INSTALL_DATA} ${WRKSRC}/clients/clientsrc.sample ${EXAMPLESDIR} |
|
|
98 |
${INSTALL_DATA} ${WRKSRC}/src/aewmrc.sample ${EXAMPLESDIR} |
99 |
${INSTALL_DATA} ${WRKSRC}/src/aewmrc.sample ${PREFIX}/etc/aewmrc |
100 |
${INSTALL_DATA} ${WRKSRC}/clients/clientsrc.sample \ |
101 |
${PREFIX}/etc/clientsrc |
102 |
${INSTALL_MAN} ${WRKSRC}/src/aewm.1x ${MANPREFIX}/man/man1/aewm.1 |
73 |
${INSTALL_MAN} ${WRKSRC}/src/aewm.1x ${MANPREFIX}/man/man1/aewm.1 |
103 |
${INSTALL_MAN} ${WRKSRC}/clients/aeclients.1x \ |
74 |
${INSTALL_MAN} ${WRKSRC}/clients/aeclients.1x \ |
104 |
${MANPREFIX}/man/man1/aeclients.1 |
75 |
${MANPREFIX}/man/man1/aeclients.1 |
|
|
76 |
@${MKDIR} ${PREFIX}/etc/aewm |
77 |
${INSTALL_DATA} ${WRKSRC}/src/aewmrc.sample ${PREFIX}/etc/aewm |
78 |
${INSTALL_DATA} ${WRKSRC}/clients/clientsrc.sample ${PREFIX}/etc/aewm |
79 |
.if !exists(${PREFIX}/etc/aewm/aewmrc) |
80 |
cd ${PREFIX}/etc/aewm && ${CP} aewmrc.sample aewmrc |
81 |
.endif |
82 |
.if !exists(${PREFIX}/etc/aewm/clientsrc) |
83 |
cd ${PREFIX}/etc/aewm && ${CP} clientsrc.sample clientsrc |
84 |
.endif |
105 |
.if !defined(NOPORTDOCS) |
85 |
.if !defined(NOPORTDOCS) |
106 |
${MKDIR} ${PREFIX}/${DOCDIR} |
86 |
@${MKDIR} ${DOCSDIR} |
107 |
.for i in ${DOCS} |
87 |
.for i in DESIGN LICENSE NEWS README TODO |
108 |
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR} |
88 |
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} |
109 |
.endfor |
89 |
.endfor |
110 |
.endif |
90 |
.endif |
111 |
|
91 |
|