2005-06-02 11:27:59 +00:00
|
|
|
# New ports collection makefile for: Window Manager Improved 2
|
|
|
|
# Date created: 02 Jun 2005
|
|
|
|
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= wmii
|
2008-01-29 12:49:32 +00:00
|
|
|
DISTVERSION= 3.6
|
2009-09-11 12:03:26 +00:00
|
|
|
PORTREVISION= 3
|
2005-06-02 11:27:59 +00:00
|
|
|
CATEGORIES= x11-wm
|
2009-09-08 12:51:53 +00:00
|
|
|
MASTER_SITES= http://dl.suckless.org/wmii/
|
2005-06-02 11:27:59 +00:00
|
|
|
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
2006-06-28 13:17:16 +00:00
|
|
|
COMMENT= A dynamic, minimalist window manager for X11
|
2005-06-02 11:27:59 +00:00
|
|
|
|
2008-01-29 12:49:32 +00:00
|
|
|
LIB_DEPENDS= ixp.1:${PORTSDIR}/devel/libixp
|
2009-09-11 12:03:26 +00:00
|
|
|
RUN_DEPENDS= dmenu:${PORTSDIR}/x11/dmenu
|
2007-06-05 20:15:32 +00:00
|
|
|
|
2010-02-25 12:46:56 +00:00
|
|
|
CONFLICTS= wmii-3.9*
|
2009-09-08 12:51:53 +00:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_XORG= x11 xextproto xt xext
|
2007-06-08 17:47:08 +00:00
|
|
|
|
2008-01-29 12:49:32 +00:00
|
|
|
MAKE_ARGS= PREFIX="${PREFIX}" INCLUDE="${LOCALBASE}/include" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
INCX11="-I${LOCALBASE}/include" LIBX11="-L${LOCALBASE}/lib" \
|
2008-01-29 12:49:32 +00:00
|
|
|
CC="${CC} -c" LD="${CC}" LIBIXP="-lixp" STATIC="" \
|
2009-09-11 12:03:26 +00:00
|
|
|
MAN="${MANPREFIX}/man"
|
2005-06-02 11:27:59 +00:00
|
|
|
|
2008-01-29 12:49:32 +00:00
|
|
|
MAN1= wmii.1 wmiiloop.1 wmiir.1
|
2005-06-02 11:27:59 +00:00
|
|
|
|
2009-09-11 12:03:26 +00:00
|
|
|
OPTIONS= SLIM_LAYOUT_BOX "Build with slim layout boxes" off \
|
|
|
|
UTF8_TEXT "Work with UTF-8 instead of user locale" on
|
2009-09-10 18:44:27 +00:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2009-09-11 12:03:26 +00:00
|
|
|
.if defined(WITH_UTF8_TEXT)
|
|
|
|
USE_ICONV= yes
|
|
|
|
MAKE_ARGS+= LIBICONV="-liconv"
|
|
|
|
.else
|
|
|
|
MAKE_ARGS+= -DNO_UTF8
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SLIM_LAYOUT_BOX)
|
2010-02-25 10:05:21 +00:00
|
|
|
EXTRA_PATCHES= ${FILESDIR}/extra-patch-slim-layout-boxes
|
2009-09-11 12:03:26 +00:00
|
|
|
.endif
|
|
|
|
|
2007-06-05 20:15:32 +00:00
|
|
|
post-patch: .SILENT
|
2008-01-29 12:49:32 +00:00
|
|
|
${REINPLACE_CMD} -e 's|-lfmt -lutf|$${LIBX11} & -lX11|' \
|
|
|
|
${WRKSRC}/cmd/Makefile
|
2009-09-11 12:03:26 +00:00
|
|
|
${REINPLACE_CMD} -e '/_XOPEN_SOURCE/d' ${WRKSRC}/cmd/wmii/dat.h
|
2008-01-29 12:49:32 +00:00
|
|
|
# Strip debug build options
|
|
|
|
${REINPLACE_CMD} -E 's| -g( -O0)?||' ${WRKSRC}/config.mk
|
2009-03-07 21:07:27 +00:00
|
|
|
${REINPLACE_CMD} -e 's|CFLAGS += -DIXPlint|& -DIXP_NEEDAPI=89|' \
|
2009-06-29 07:44:56 +00:00
|
|
|
${WRKSRC}/config.mk
|
2009-09-08 12:51:53 +00:00
|
|
|
# Make actual compile/link commands appear in the build log
|
2009-09-10 18:44:27 +00:00
|
|
|
${REINPLACE_CMD} -e 's|^COMPILE=|& noisycc=yes| ; \
|
|
|
|
s|^LINK=|& noisycc=yes|' ${WRKSRC}/mk/hdr.mk
|
2010-02-25 10:05:21 +00:00
|
|
|
# Fix brain-damaged piece of code; otherwise it breaks on archs 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
|
2005-06-02 11:27:59 +00:00
|
|
|
|
2010-02-25 10:05:21 +00:00
|
|
|
.include <bsd.port.mk>
|