aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/wmii/Makefile
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2014-03-16 08:38:59 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2014-03-16 08:38:59 +0000
commit62a5ecfd3ac9106afac829f229f79a1bf36f2a69 (patch)
tree61a7c43ae3cd1410abed38e9a7cc06e84aa76e2b /x11-wm/wmii/Makefile
parentd58cc9fcfa81ff099783ae388a7ea957bdf4fd7d (diff)
downloadports-62a5ecfd3ac9106afac829f229f79a1bf36f2a69.tar.gz
ports-62a5ecfd3ac9106afac829f229f79a1bf36f2a69.zip
Notes
Diffstat (limited to 'x11-wm/wmii/Makefile')
-rw-r--r--x11-wm/wmii/Makefile36
1 files changed, 13 insertions, 23 deletions
diff --git a/x11-wm/wmii/Makefile b/x11-wm/wmii/Makefile
index 6b2a38716adc..8d5480b9ee8e 100644
--- a/x11-wm/wmii/Makefile
+++ b/x11-wm/wmii/Makefile
@@ -10,37 +10,30 @@ MASTER_SITES= http://dl.suckless.org/wmii/
MAINTAINER= ports@FreeBSD.org
COMMENT= Dynamic, minimalist window manager for X11
-LIB_DEPENDS= ixp:${PORTSDIR}/devel/libixp
+LIB_DEPENDS= libixp.so:${PORTSDIR}/devel/libixp
RUN_DEPENDS= dmenu:${PORTSDIR}/x11/dmenu
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
CONFLICTS= wmii-3.9*
USE_XORG= x11 xextproto xt xext
-MAKE_ARGS= PREFIX="${PREFIX}" INCLUDE="${LOCALBASE}/include" \
- INCX11="-I${LOCALBASE}/include" LIBX11="-L${LOCALBASE}/lib -lX11 -lixp" \
- CC="${CC} -c" LD="${CC}" LIBIXP="" STATIC="" \
- MAN="${MANPREFIX}/man"
-
-MAN1= wmii.1 wmiiloop.1 wmiir.1
+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
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MUTF8}
-USES+= iconv
-MAKE_ARGS+= LIBICONV="${ICONV_LIB}"
-.else
-MAKE_ARGS+= -DNO_UTF8
-.endif
+UTF8_USES= iconv
+UTF8_MAKE_ARGS= LIBICONV="${ICONV_LIB}"
+UTF8_MAKE_ARGS_OFF= -DNO_UTF8
-.if ${PORT_OPTIONS:MSLIM_LAYOUT_BOX}
-EXTRA_PATCHES= ${FILESDIR}/extra-patch-slim-layout-boxes
-.endif
+SLIM_LAYOUT_BOX_EXTRA_PATCHES= ${FILESDIR}/extra-patch-slim-layout-boxes
post-patch: .SILENT
${REINPLACE_CMD} -e 's|-lfmt -lutf|$${LIBX11} & -lX11|' \
@@ -50,9 +43,6 @@ post-patch: .SILENT
${REINPLACE_CMD} -E 's| -g( -O0)?||' ${WRKSRC}/config.mk
${REINPLACE_CMD} -e 's|CFLAGS += -DIXPlint|& -DIXP_NEEDAPI=89|' \
${WRKSRC}/config.mk
-# Make actual compile/link commands appear in the build log
- ${REINPLACE_CMD} -e 's|^COMPILE=|& noisycc=yes| ; \
- s|^LINK=|& noisycc=yes|' ${WRKSRC}/mk/hdr.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