Lines 6-57
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= wmfs |
8 |
PORTNAME= wmfs |
9 |
DISTVERSION= 201008 |
9 |
DISTVERSION= 201011 |
10 |
CATEGORIES= x11-wm |
10 |
CATEGORIES= x11-wm |
11 |
MASTER_SITES= http://dl.wmfs.info/ |
11 |
MASTER_SITES= http://wmfs.info/attachments/download/15/ \ |
|
|
12 |
http://cloud.github.com/downloads/philpep/wmfs/ |
12 |
|
13 |
|
13 |
MAINTAINER= dhn@FreeBSD.org |
14 |
MAINTAINER= dhn@FreeBSD.org |
14 |
COMMENT= A floating and tiling Window Manager From Scratch |
15 |
COMMENT= A floating and tiling Window Manager From Scratch |
15 |
|
16 |
|
|
|
17 |
LICENCE= BSD |
18 |
|
16 |
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 |
19 |
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 |
17 |
|
20 |
|
18 |
USE_GNOME= pkgconfig |
21 |
USE_GNOME= pkgconfig |
19 |
USE_CMAKE= yes |
|
|
20 |
USE_XORG= x11 xft xpm |
22 |
USE_XORG= x11 xft xpm |
|
|
23 |
HAS_CONFIGURE= yes |
21 |
|
24 |
|
22 |
MAN1= ${PORTNAME}.1 |
25 |
MAN1= ${PORTNAME}.1 |
23 |
MANCOMPRESSED= yes |
26 |
MANCOMPRESSED= yes |
24 |
|
27 |
|
25 |
PLIST_FILES= bin/wmfs \ |
28 |
PLIST_FILES= bin/wmfs \ |
26 |
etc/xdg/wmfs/wmfsrc \ |
29 |
etc/xdg/wmfs/wmfsrc \ |
27 |
share/xsessions/wmfs.desktop \ |
30 |
share/xsessions/wmfs.desktop |
28 |
%%DOCSDIR%%/TODO \ |
31 |
|
29 |
%%DOCSDIR%%/README \ |
32 |
PLIST_DIRS= etc/xdg/wmfs etc/xdg share/xsessions |
30 |
%%DOCSDIR%%/wmfsrc |
|
|
31 |
PLIST_DIRS= %%DOCSDIR%% etc/xdg/wmfs etc/xdg share/xsessions |
32 |
|
33 |
|
33 |
OPTIONS= IMLIB2 "Enable Imlib2 support" on |
34 |
OPTIONS= XRANDR "Enable xrandr support" on \ |
|
|
35 |
XINERAMA "Enable xinerama support" on \ |
36 |
IMLIB "Enable Imlib2 support" on |
34 |
|
37 |
|
35 |
.include <bsd.port.pre.mk> |
38 |
.include <bsd.port.pre.mk> |
36 |
|
39 |
|
37 |
.if defined(WITH_IMLIB2) |
40 |
CONFIGURE_ARGS= --prefix ${PREFIX} \ |
38 |
USE_EFL+= imlib2 |
41 |
--man-prefix ${MANPREFIX}/man \ |
|
|
42 |
--xdg-config-dir ${PREFIX}/etc/xdg |
43 |
|
44 |
.if defined(WITH_XRANDR) |
45 |
USE_XORG+= xrandr |
46 |
.else |
47 |
CONFIGURE_ARGS+= --without-xrandr |
39 |
.endif |
48 |
.endif |
40 |
|
49 |
|
41 |
post-patch: |
50 |
.if defined(WITH_XINERAMA) |
42 |
@${REINPLACE_CMD} -e 's|share/$${PROJECT_NAME})|${DOCSDIR})|g' \ |
51 |
USE_XORG+= xinerama |
43 |
-e 's|$${PREFIX}/share/man|/$${PREFIX}/man|g' \ |
52 |
.else |
44 |
-e 's|$${SYSCONFDIR}/xdg|${PREFIX}/etc/xdg|g' ${WRKSRC}/CMakeLists.txt |
53 |
CONFIGURE_ARGS+= --without-xinerama |
|
|
54 |
.endif |
45 |
|
55 |
|
46 |
post-install: |
56 |
.if defined(WITH_IMLIB) |
47 |
${INSTALL_PROGRAM} ${WRKSRC}/wmfs ${PREFIX}/bin/ |
57 |
USE_EFL+= imlib2 |
48 |
.if !defined(NOPORTDOCS) |
58 |
.else |
49 |
@${MKDIR} ${DOCSDIR} |
59 |
CONFIGURE_ARGS+= --without-imlib2 |
50 |
${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}/TODO |
|
|
51 |
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README |
52 |
${INSTALL_DATA} ${WRKSRC}/wmfsrc ${DOCSDIR}/wmfsrc |
53 |
.endif |
60 |
.endif |
54 |
|
61 |
|
|
|
62 |
post-install: |
55 |
@${CAT} ${PKGMESSAGE} | ${SED} "s|PREFIX|${PREFIX}|g" \ |
63 |
@${CAT} ${PKGMESSAGE} | ${SED} "s|PREFIX|${PREFIX}|g" \ |
56 |
${PKGDIR}/pkg-message |
64 |
${PKGDIR}/pkg-message |
57 |
|
65 |
|