Lines 6-38
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= wmii |
8 |
PORTNAME= wmii |
9 |
DISTVERSION= 3.5.1 |
9 |
DISTVERSION= 3.6 |
10 |
CATEGORIES= x11-wm |
10 |
CATEGORIES= x11-wm |
11 |
MASTER_SITES= http://www.suckless.org/download/ CENKES |
11 |
MASTER_SITES= http://www.suckless.org/download/ CENKES |
12 |
|
12 |
|
13 |
MAINTAINER= danfe@FreeBSD.org |
13 |
MAINTAINER= danfe@FreeBSD.org |
14 |
COMMENT= A dynamic, minimalist window manager for X11 |
14 |
COMMENT= A dynamic, minimalist window manager for X11 |
15 |
|
15 |
|
16 |
LIB_DEPENDS= ixp.0:${PORTSDIR}/devel/libixp |
16 |
LIB_DEPENDS= ixp.1:${PORTSDIR}/devel/libixp |
17 |
RUN_DEPENDS= dmenu:${PORTSDIR}/x11/dmenu \ |
17 |
RUN_DEPENDS= dmenu:${PORTSDIR}/x11/dmenu \ |
18 |
${LOCALBASE}/9/bin/rc:${PORTSDIR}/devel/9base |
18 |
${LOCALBASE}/9/bin/rc:${PORTSDIR}/devel/9base |
19 |
|
19 |
|
20 |
CONFLICTS= wmii-3.5.[2-9]* |
20 |
CONFLICTS= wmii-3.5.* |
21 |
|
21 |
|
22 |
USE_XLIB= yes |
22 |
USE_XLIB= yes |
|
|
23 |
USE_ICONV= yes |
23 |
|
24 |
|
24 |
MAKE_ARGS= PREFIX="${PREFIX}" X11LIB="${X11BASE}/lib" \ |
25 |
CFLAGS+= -I${LOCALBASE}/include -I${WRKSRC}/include -DIXPlint |
25 |
X11INC="${X11BASE}/include" CC="${CC}" \ |
26 |
LDFLAGS+= -L${LOCALBASE}/lib -L${WRKSRC}/lib |
26 |
MANPREFIX="${MANPREFIX}/man" |
27 |
MAKE_ARGS= PREFIX="${PREFIX}" LIBX11="-L${X11BASE}/lib -lX11" \ |
|
|
28 |
INCX11="-I${X11BASE}/include" LIBIXP="-lixp" STATIC="" \ |
29 |
CC="${CC} -c" LD="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
30 |
MAN="${MANPREFIX}/man" |
27 |
|
31 |
|
28 |
MAN1= wmii.1 wmiir.1 wmiiwm.1 |
32 |
MAN1= wmii.1 wmiiloop.1 wmiir.1 |
29 |
|
33 |
|
30 |
post-patch: .SILENT |
34 |
post-patch: .SILENT |
31 |
${REINPLACE_CMD} -E 's|-Os|${CFLAGS}|; \ |
35 |
${REINPLACE_CMD} -E 's|-Os|${CFLAGS}|g; \ |
32 |
s|(-[LI])\$${PREFIX}|\1${LOCALBASE}|' \ |
36 |
s|(-[LI])\$${PREFIX}|\1${LOCALBASE}|g' \ |
33 |
${WRKSRC}/config.mk |
37 |
${WRKSRC}/config.mk |
34 |
# Catch up with recent libixp |
38 |
${REINPLACE_CMD} -E 's|\$${LINK} \$$@|$${LINK} $$@ -lfmt -lutf|g' \ |
35 |
${REINPLACE_CMD} -E 's|\.data\.[[:alpha:]]+||g' \ |
39 |
${WRKSRC}/cmd/Makefile |
36 |
${WRKSRC}/fs.c |
40 |
${REINPLACE_CMD} -E 's|^(LIB =.*)$$|\1 -lm -lXext -liconv -lregexp9 -lbio -lfmt -lutf|' \ |
|
|
41 |
${WRKSRC}/cmd/wmii/Makefile |
42 |
${REINPLACE_CMD} -E 's|VERSION|"${DISTVERSION}"|g' \ |
43 |
${WRKSRC}/cmd/*.c ${WRKSRC}/cmd/wmii/main.c |
44 |
# # Catch up with recent libixp |
45 |
# ${REINPLACE_CMD} -E 's|\.data\.[[:alpha:]]+||g' \ |
46 |
# ${WRKSRC}/cmd/wmii/fs.c |
37 |
|
47 |
|
38 |
.include <bsd.port.mk> |
48 |
.include <bsd.port.mk> |