Lines 3-41
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= windowlab |
4 |
PORTNAME= windowlab |
5 |
PORTVERSION= 1.40 |
5 |
PORTVERSION= 1.40 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= x11-wm |
7 |
CATEGORIES= x11-wm |
7 |
MASTER_SITES= http://nickgravgaard.com/windowlab/ |
8 |
MASTER_SITES= http://nickgravgaard.com/windowlab/ |
8 |
EXTRACT_SUFX= .tar |
9 |
EXTRACT_SUFX= .tar |
|
|
10 |
DIST_SUBDIR= repacked |
9 |
|
11 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
12 |
MAINTAINER= ports@FreeBSD.org |
11 |
COMMENT= A small window manager for X11 |
13 |
COMMENT= Small window manager for X11 |
12 |
|
14 |
|
13 |
MAN1= windowlab.1x |
15 |
LICENSE= GPLv2 |
|
|
16 |
|
17 |
OPTIONS_DEFINE= XFT DOCS |
14 |
|
18 |
|
15 |
USE_XORG= x11 xext |
19 |
USE_XORG= x11 xext |
16 |
USE_GMAKE= yes |
20 |
USE_GMAKE= yes |
|
|
21 |
MAKE_ENV= XROOT="${LOCALBASE}" SYSCONFDIR="${ETCDIR}" |
22 |
MAKE_JOBS_SAFE= yes |
17 |
|
23 |
|
18 |
BROKEN= distfile mismatch |
24 |
MAN1= windowlab.1x |
19 |
|
25 |
PORTDOCS= CHANGELOG README |
20 |
MAKE_ARGS= MENURC=${PREFIX}/etc/windowlab/menurc CC="${CC}" |
26 |
PLIST_FILES= bin/windowlab %%ETCDIR%%/menurc |
|
|
27 |
PLIST_DIRS= %%ETCDIR%% |
21 |
|
28 |
|
22 |
PLIST_FILES= bin/windowlab etc/windowlab/menurc |
29 |
.include <bsd.port.options.mk> |
23 |
PLIST_DIRS= etc/windowlab |
|
|
24 |
|
30 |
|
25 |
PORTDOCS= CHANGELOG README |
31 |
.if ${PORT_OPTIONS:MXFT} |
|
|
32 |
USE_XORG+= xft |
33 |
USE_PKGCONFIG= build |
34 |
MAKE_ENV+= EXTRA_INC="$$(pkg-config --cflags xft)" \ |
35 |
EXTRA_LIBS="$$(pkg-config --libs xft)" |
36 |
CFLAGS+= -DXFT |
37 |
.endif |
26 |
|
38 |
|
27 |
post-patch: |
39 |
post-patch: |
28 |
@${REINPLACE_CMD} -e 's,^CC =,CC ?=,' \ |
40 |
@${REINPLACE_CMD} -e \ |
29 |
-e 's,/usr/X11R6,${LOCALBASE},g' ${WRKSRC}/Makefile |
41 |
's|^\(PREFIX\) =|\1 ?=| ; \ |
|
|
42 |
s|^\(XROOT\) =|\1 ?=| ; \ |
43 |
s|^\(SYSCONFDIR\) =|\1 ?=| ; \ |
44 |
s|^\(CC\) =|\1 ?=|' ${WRKSRC}/Makefile |
30 |
|
45 |
|
31 |
do-install: |
46 |
do-install: |
32 |
${INSTALL_PROGRAM} ${WRKSRC}/windowlab ${PREFIX}/bin |
47 |
(cd ${WRKSRC} && ${INSTALL_PROGRAM} windowlab ${PREFIX}/bin) |
33 |
${INSTALL_MAN} ${WRKSRC}/windowlab.1x ${MANPREFIX}/man/man1 |
48 |
(cd ${WRKSRC} && ${INSTALL_MAN} windowlab.1x ${MANPREFIX}/man/man1) |
34 |
${MKDIR} ${PREFIX}/etc/windowlab |
49 |
@${MKDIR} ${ETCDIR} |
35 |
${INSTALL_DATA} ${WRKSRC}/windowlab.menurc ${PREFIX}/etc/windowlab/menurc |
50 |
(cd ${WRKSRC} && ${INSTALL_DATA} windowlab.menurc ${ETCDIR}/menurc) |
36 |
.if !defined(NOPORTDOCS) |
51 |
.if ${PORT_OPTIONS:MDOCS} |
37 |
${MKDIR} ${DOCSDIR} |
52 |
@${MKDIR} ${DOCSDIR} |
38 |
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR} |
53 |
.for i in ${PORTDOCS} |
|
|
54 |
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR}) |
55 |
.endfor |
39 |
.endif |
56 |
.endif |
40 |
|
57 |
|
41 |
.include <bsd.port.mk> |
58 |
.include <bsd.port.mk> |