Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= pawm |
8 |
PORTNAME= pawm |
9 |
PORTVERSION= 2.2.9 |
9 |
PORTVERSION= 2.3.0 |
10 |
PORTREVISION= 2 |
|
|
11 |
CATEGORIES= x11-wm |
10 |
CATEGORIES= x11-wm |
12 |
MASTER_SITES= http://www.pleyades.net/pawm/files/ |
11 |
MASTER_SITES= http://www.pleyades.net/pawm/files/ |
13 |
|
12 |
|
Lines 15-63
Link Here
|
15 |
COMMENT= The Puto Amo Window Manager |
14 |
COMMENT= The Puto Amo Window Manager |
16 |
|
15 |
|
17 |
USE_BZIP2= yes |
16 |
USE_BZIP2= yes |
18 |
USE_XORG= x11 xrandr xrender xpm |
17 |
USE_XORG= x11 xft xrandr xrender xpm |
19 |
USE_GMAKE= yes |
18 |
USE_CMAKE= yes |
20 |
MAKEFILE= Makefile.in |
19 |
CMAKE_ARGS= -DCMAKE_CONFIG_PREFIX:STRING="${PREFIX}/etc" \ |
21 |
MAKE_ARGS= GCC="${CC}" MAKE.binary="${CC} ${LDFLAGS} -o" |
20 |
-DX11_LIBRARY_DIRS:STRING="${LOCALBASE}/lib" |
22 |
|
|
|
23 |
CFLAGS+= -I. -I${LOCALBASE}/include -DNDEBUG |
24 |
LDFLAGS= -lm -L${LOCALBASE}/lib -lXpm |
25 |
|
26 |
.include <bsd.port.pre.mk> |
27 |
|
28 |
LDFLAGS+= -lXrandr |
29 |
.if defined(WITHOUT_XFT) |
30 |
CFLAGS+= -DDISABLE_XFT |
31 |
.else |
32 |
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft |
33 |
CFLAGS+= `pkg-config --cflags xft` |
34 |
LDFLAGS+= `pkg-config --libs xft` |
35 |
.endif |
36 |
|
21 |
|
37 |
.if defined(WITH_SN) |
22 |
.if defined(WITH_SN) |
38 |
LIB_DEPENDS+= startup-notification-1.0:${PORTSDIR}/x11/startup-notification |
23 |
LIB_DEPENDS+= startup-notification-1.0:${PORTSDIR}/x11/startup-notification |
39 |
CFLAGS+= -DENABLE_STARTUP -DSN_API_NOT_YET_FROZEN \ |
24 |
CFLAGS+= -DENABLE_STARTUP -DSN_API_NOT_YET_FROZEN \ |
40 |
`pkg-config --cflags libstartup-notification-1.0` |
25 |
`pkg-config --cflags --libs libstartup-notification-1.0` |
41 |
LDFLAGS+= `pkg-config --libs libstartup-notification-1.0` |
|
|
42 |
.endif |
26 |
.endif |
43 |
|
27 |
|
44 |
do-configure: |
28 |
post-patch: |
45 |
@${ECHO_CMD} -n > ${WRKSRC}/config.h |
29 |
@${REINPLACE_CMD} -e \ |
46 |
@${ECHO_CMD} '#define PROJECT "${PORTNAME}"' >> ${WRKSRC}/config.h |
30 |
'/"\/etc"/s|^|#| ; \ |
47 |
@${ECHO_CMD} '#define VERSION "${PORTVERSION}"' >> ${WRKSRC}/config.h |
31 |
/"-O2"/s|^|#| ; \ |
48 |
@${ECHO_CMD} '#define CONFDIR "${PREFIX}/etc"' >> ${WRKSRC}/config.h |
32 |
/LINK_DIRECTORIES/s|\.|| ; \ |
49 |
@${ECHO_CMD} '#define DATADIR "${DATADIR}"' >> ${WRKSRC}/config.h |
33 |
/INSTALL/s| /etc| etc|' ${WRKSRC}/CMakeLists.txt |
50 |
|
34 |
|
51 |
do-install: |
35 |
post-install: |
52 |
${INSTALL_PROGRAM} ${WRKSRC}/src/pawm ${PREFIX}/bin |
|
|
53 |
${INSTALL_DATA} ${WRKSRC}/conf/pawm.conf ${PREFIX}/etc |
54 |
@${MKDIR} ${DATADIR}/icons |
55 |
${INSTALL_DATA} ${WRKSRC}/data/icons/*.xpm ${DATADIR}/icons |
56 |
.if !defined(NOPORTDOCS) |
36 |
.if !defined(NOPORTDOCS) |
57 |
@${MKDIR} ${DOCSDIR} |
37 |
@${MKDIR} ${DOCSDIR} |
58 |
.for ii in AUTHORS Changelog GPL INSTALL README |
38 |
.for ii in AUTHORS Changelog.old GPL INSTALL README TODO |
59 |
${INSTALL_DATA} ${WRKSRC}/${ii} ${DOCSDIR} |
39 |
${INSTALL_DATA} ${WRKSRC}/${ii} ${DOCSDIR} |
60 |
.endfor |
40 |
.endfor |
61 |
.endif |
41 |
.endif |
62 |
|
42 |
|
63 |
.include <bsd.port.post.mk> |
43 |
.include <bsd.port.mk> |