Lines 19-56
LIB_DEPENDS= libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
Link Here
|
19 |
OPTIONS_DEFINE= XINERAMA DOCS |
19 |
OPTIONS_DEFINE= XINERAMA DOCS |
20 |
OPTIONS_DEFAULT=XINERAMA |
20 |
OPTIONS_DEFAULT=XINERAMA |
21 |
|
21 |
|
|
|
22 |
XINERAMA_USE= XORG=xinerama |
23 |
|
22 |
USE_XORG= x11 xft |
24 |
USE_XORG= x11 xft |
23 |
|
25 |
|
24 |
PLIST_FILES= bin/dwm \ |
26 |
PLIST_FILES= bin/dwm \ |
25 |
man/man1/dwm.1.gz |
27 |
man/man1/dwm.1.gz |
26 |
PORTDOCS= README |
28 |
PORTDOCS= README |
27 |
|
29 |
|
28 |
.include <bsd.port.options.mk> |
|
|
29 |
|
30 |
.if ${PORT_OPTIONS:MXINERAMA} |
31 |
USE_XORG+= xinerama |
32 |
.endif |
33 |
|
34 |
pre-everything:: |
30 |
pre-everything:: |
35 |
@${ECHO_MSG} "You can build dwm with your own config.h using the DWM_CONF knob:" |
31 |
@${ECHO_MSG} "You can build dwm with your own config.h using the DWM_CONF knob:" |
36 |
@${ECHO_MSG} "make DWM_CONF=/path/to/dwm/config.h install clean" |
32 |
@${ECHO_MSG} "make DWM_CONF=/path/to/dwm/config.h install clean" |
37 |
@${ECHO_MSG} "Note: Pre-${PORTVERSION} config.h-files may not work." |
33 |
@${ECHO_MSG} "Note: Pre-${PORTVERSION} config.h-files may not work." |
38 |
|
34 |
|
39 |
post-extract: |
35 |
post-extract: |
40 |
.if defined(DWM_CONF) |
36 |
@if [ -e "${DWM_CONF}" ]; then \ |
41 |
@${ECHO_MSG} "creating config.h from ${DWM_CONF}" |
37 |
${ECHO_MSG} "creating config.h from ${DWM_CONF}"; \ |
42 |
@${CP} ${DWM_CONF} ${WRKSRC}/config.h |
38 |
${CP} "${DWM_CONF}" ${WRKSRC}/config.h; \ |
43 |
.endif |
39 |
fi |
44 |
|
40 |
|
45 |
post-patch: |
41 |
post-patch: |
46 |
@${GREP} -Rl '%%[[:alpha:]]\+%%' ${WRKSRC}|${XARGS} ${REINPLACE_CMD} \ |
42 |
@${GREP} -Rl '%%[[:alpha:]]\+%%' ${WRKSRC}|${XARGS} ${REINPLACE_CMD} \ |
47 |
-e "s,%%PREFIX%%,${PREFIX},g" \ |
43 |
-e "s,%%PREFIX%%,${PREFIX},g" \ |
48 |
-e "s,%%LOCALBASE%%,${LOCALBASE},g" \ |
44 |
-e "s,%%LOCALBASE%%,${LOCALBASE},g" \ |
49 |
-e "s,%%MANPREFIX%%,${MANPREFIX},g" |
45 |
-e "s,%%MANPREFIX%%,${MANPREFIX},g" |
50 |
.if empty(PORT_OPTIONS:MXINERAMA) |
46 |
|
|
|
47 |
post-patch-XINERAMA-off: |
51 |
@${REINPLACE_CMD} -e 's,$${XINERAMALIBS},,g' \ |
48 |
@${REINPLACE_CMD} -e 's,$${XINERAMALIBS},,g' \ |
52 |
-e 's,$${XINERAMAFLAGS},,g' ${WRKSRC}/config.mk |
49 |
-e 's,$${XINERAMAFLAGS},,g' ${WRKSRC}/config.mk |
53 |
.endif |
|
|
54 |
|
50 |
|
55 |
post-install: |
51 |
post-install: |
56 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
52 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |