Index: head/x11-wm/wmii/Makefile =================================================================== --- head/x11-wm/wmii/Makefile (revision 553911) +++ head/x11-wm/wmii/Makefile (revision 553912) @@ -1,58 +1,58 @@ # Created by: Alexey Dokuchaev # $FreeBSD$ PORTNAME= wmii DISTVERSION= 3.6 # this is stable version; for 3.9.x, use -devel port -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= x11-wm MASTER_SITES= http://dl.suckless.org/wmii/ MAINTAINER= rodrigo@FreeBSD.org COMMENT= Dynamic, minimalist window manager for X11 LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libixp.so:devel/libixp RUN_DEPENDS= dmenu:x11/dmenu -CONFLICTS= wmii-devel-[0-9]* - USES= xorg USE_XORG= x11 xorgproto xt xext + +CONFLICTS= wmii-devel-[0-9]* MAKE_ARGS= PREFIX="${PREFIX}" MAN="${MANPREFIX}/man" \ INCLUDE="${LOCALBASE}/include" \ INCX11="-I${LOCALBASE}/include" \ LIBX11="-L${LOCALBASE}/lib -lX11 -lixp" \ CC="${CC} -c" LD="${CC}" LIBIXP="" STATIC="" OPTIONS_DEFINE= SLIM_LAYOUT_BOX UTF8 SLIM_LAYOUT_BOX_DESC= Build with slim layout boxes UTF8_USES= iconv UTF8_MAKE_ARGS= LIBICONV="${ICONV_LIB}" UTF8_MAKE_ARGS_OFF= -DNO_UTF8 SLIM_LAYOUT_BOX_EXTRA_PATCHES= ${FILESDIR}/extra-patch-slim-layout-boxes post-patch: .SILENT ${REINPLACE_CMD} -e 's|-lfmt -lutf|$${LIBX11} & -lX11|' \ ${WRKSRC}/cmd/Makefile ${REINPLACE_CMD} -e '/_XOPEN_SOURCE/d' ${WRKSRC}/cmd/wmii/dat.h # Strip debug build options ${REINPLACE_CMD} -E 's| -g( -O0)?||' ${WRKSRC}/config.mk ${REINPLACE_CMD} -e 's|CFLAGS += -DIXPlint|& -DIXP_NEEDAPI=89|' \ ${WRKSRC}/config.mk # Fix brain-damaged piece of code which breaks on arches where `size_t' # is not 32-bit unsigned integer (e.g. amd64, sparc64) ${REINPLACE_CMD} -e '/wmii_strlcat/d' ${WRKSRC}/include/util.h ${REINPLACE_CMD} -e 's|strlcat|wmii_&|' ${WRKSRC}/include/util.h \ ${WRKSRC}/cmd/util.c ${WRKSRC}/cmd/wmii/client.c post-install: .for f in wmii wmii9menu wmiir @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${f} .endfor .include Index: head/x11-wm/wmii/files/patch-cmd_util.c =================================================================== --- head/x11-wm/wmii/files/patch-cmd_util.c (nonexistent) +++ head/x11-wm/wmii/files/patch-cmd_util.c (revision 553912) @@ -0,0 +1,13 @@ +--- cmd/util.c.orig 2007-11-16 13:59:15 UTC ++++ cmd/util.c +@@ -9,6 +9,10 @@ + #include + #include + ++char *argv0; ++void *__p; ++int __i; ++ + typedef struct VFmt VFmt; + struct VFmt { + const char *fmt; Property changes on: head/x11-wm/wmii/files/patch-cmd_util.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-wm/wmii/files/patch-cmd_wmii_area.c =================================================================== --- head/x11-wm/wmii/files/patch-cmd_wmii_area.c (nonexistent) +++ head/x11-wm/wmii/files/patch-cmd_wmii_area.c (revision 553912) @@ -0,0 +1,33 @@ +--- cmd/wmii/area.c.orig 2007-11-16 13:59:15 UTC ++++ cmd/wmii/area.c +@@ -10,6 +10,30 @@ + #include + #include "fns.h" + ++Display *display; ++Screen scr; ++struct Global def; ++WMScreen *screens, *screen; ++Client *client; ++View *view; ++Key *key; ++Divide *divs; ++Client c_magic; ++Client c_root; ++char buffer[8092]; ++IxpServer srv; ++uint num_screens; ++uint valid_mask; ++uint num_lock_mask; ++Bool sel_screen; ++Image xor; ++Cursor cursor[CurLast]; ++Image *broken; ++Bool starting; ++Bool verbose; ++char *user; ++char *execstr; ++ + static void place_frame(Frame *f); + + Client * Property changes on: head/x11-wm/wmii/files/patch-cmd_wmii_area.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-wm/wmii/files/patch-cmd_wmii_dat.h =================================================================== --- head/x11-wm/wmii/files/patch-cmd_wmii_dat.h (nonexistent) +++ head/x11-wm/wmii/files/patch-cmd_wmii_dat.h (revision 553912) @@ -0,0 +1,97 @@ +--- cmd/wmii/dat.h.orig 2007-11-16 13:59:15 UTC ++++ cmd/wmii/dat.h +@@ -2,7 +2,6 @@ + * See LICENSE file for license details. + */ + +-#define _XOPEN_SOURCE 600 + #define IXP_P9_STRUCTS + #define IXP_NO_P9_ + #include +@@ -194,7 +193,7 @@ struct Ruleset { + }; + + /* global variables */ +-struct { ++struct Global { + CTuple focuscolor; + CTuple normcolor; + Font *font; +@@ -207,8 +206,10 @@ struct { + char grabmod[5]; + ulong mod; + int colmode; +-} def; ++}; + ++extern struct Global def; ++ + enum { + BarLeft, BarRight + }; +@@ -223,40 +224,42 @@ struct WMScreen { + + Rectangle r; + Rectangle brect; +-} *screens, *screen; ++}; + +-Client *client; +-View *view; +-Key *key; +-Divide *divs; +-Client c_magic; +-Client c_root; ++extern WMScreen *screens, *screen; + +-Handlers framehandler; ++extern Client *client; ++extern View *view; ++extern Key *key; ++extern Divide *divs; ++extern Client c_magic; ++extern Client c_root; + +-char buffer[8092]; ++extern Handlers framehandler; + ++extern char buffer[8092]; ++ + /* IXP */ +-IxpServer srv; +-Ixp9Srv p9srv; ++extern IxpServer srv; ++extern Ixp9Srv p9srv; + + /* X11 */ +-uint num_screens; +-uint valid_mask; +-uint num_lock_mask; +-Bool sel_screen; ++extern uint num_screens; ++extern uint valid_mask; ++extern uint num_lock_mask; ++extern Bool sel_screen; + +-Image xor; ++extern Image xor; + +-Cursor cursor[CurLast]; +-void (*handler[LASTEvent]) (XEvent *); ++extern Cursor cursor[CurLast]; ++extern void (*handler[LASTEvent]) (XEvent *); + + /* Misc */ +-Image *broken; +-Bool starting; +-Bool verbose; +-char *user; +-char *execstr; ++extern Image *broken; ++extern Bool starting; ++extern Bool verbose; ++extern char *user; ++extern char *execstr; + + #define Debug if(verbose) + #define Dprint(...) do{ Debug fprint(2, __VA_ARGS__); }while(0) Property changes on: head/x11-wm/wmii/files/patch-cmd_wmii_dat.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-wm/wmii/files/patch-cmd_wmii_x11.h =================================================================== --- head/x11-wm/wmii/files/patch-cmd_wmii_x11.h (nonexistent) +++ head/x11-wm/wmii/files/patch-cmd_wmii_x11.h (revision 553912) @@ -0,0 +1,13 @@ +--- cmd/wmii/x11.h.orig 2020-10-17 20:50:09 UTC ++++ cmd/wmii/x11.h +@@ -94,8 +94,8 @@ struct Font { + char *name; + }; + +-Display *display; +-Screen scr; ++extern Display *display; ++extern Screen scr; + + extern Point ZP; + extern Rectangle ZR; Property changes on: head/x11-wm/wmii/files/patch-cmd_wmii_x11.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-wm/wmii/files/patch-include_util.h =================================================================== --- head/x11-wm/wmii/files/patch-include_util.h (nonexistent) +++ head/x11-wm/wmii/files/patch-include_util.h (revision 553912) @@ -0,0 +1,15 @@ +--- include/util.h.orig 2007-11-16 13:59:15 UTC ++++ include/util.h +@@ -37,9 +37,9 @@ char *str_nil(char *s); + int utflcpy(char *to, const char *from, int l); + uint strlcat(char *dst, const char *src, unsigned int siz); + +-char *argv0; +-void *__p; +-int __i; ++extern char *argv0; ++extern void *__p; ++extern int __i; + #undef ARGBEGIN + #undef ARGEND + #undef ARGF Property changes on: head/x11-wm/wmii/files/patch-include_util.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property