Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Mar 2014 08:38:59 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r348394 - in head/x11-wm/wmii: . files
Message-ID:  <201403160838.s2G8cxJw059280@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Sun Mar 16 08:38:59 2014
New Revision: 348394
URL: http://svnweb.freebsd.org/changeset/ports/348394
QAT: https://qat.redports.org/buildarchive/r348394/

Log:
  Stagify; renew LIB_DEPENDS; use OPTIONS helpers; wrap an overly long line.

Added:
  head/x11-wm/wmii/files/patch-mk-common.mk   (contents, props changed)
  head/x11-wm/wmii/files/patch-mk-hdr.mk   (contents, props changed)
Modified:
  head/x11-wm/wmii/Makefile
  head/x11-wm/wmii/pkg-plist

Modified: head/x11-wm/wmii/Makefile
==============================================================================
--- head/x11-wm/wmii/Makefile	Sun Mar 16 07:03:44 2014	(r348393)
+++ head/x11-wm/wmii/Makefile	Sun Mar 16 08:38:59 2014	(r348394)
@@ -10,37 +10,30 @@ MASTER_SITES=	http://dl.suckless.org/wmi
 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>
+UTF8_USES=	iconv
+UTF8_MAKE_ARGS=	LIBICONV="${ICONV_LIB}"
+UTF8_MAKE_ARGS_OFF=	-DNO_UTF8
 
-.if ${PORT_OPTIONS:MUTF8}
-USES+=		iconv
-MAKE_ARGS+=	LIBICONV="${ICONV_LIB}"
-.else
-MAKE_ARGS+=	-DNO_UTF8
-.endif
-
-.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

Added: head/x11-wm/wmii/files/patch-mk-common.mk
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-wm/wmii/files/patch-mk-common.mk	Sun Mar 16 08:38:59 2014	(r348394)
@@ -0,0 +1,15 @@
+--- mk/common.mk.orig	2007-11-16 21:59:15 +0800
++++ mk/common.mk
+@@ -4,9 +4,9 @@ install: all
+ 
+ MANDIRS=${MAN}/man1
+ mkdirs:
+-	for i in ${BIN} ${ETC} ${LIBDIR} ${MANDIRS} ${INCLUDE} ${DIRS}; do \
+-		test -d $$i || echo MKDIR $$i; \
+-		mkdir -pm 0755 $$i; \
++	for i in ${BIN} ${ETC} ${LIBDIR} ${MANDIRS} ${INCLUDE}; do \
++		test -d ${DESTDIR}$$i || echo MKDIR ${DESTDIR}$$i; \
++		mkdir -pm 0755 ${DESTDIR}$$i; \
+ 	done
+ 
+ cleandep:

Added: head/x11-wm/wmii/files/patch-mk-hdr.mk
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-wm/wmii/files/patch-mk-hdr.mk	Sun Mar 16 08:38:59 2014	(r348394)
@@ -0,0 +1,54 @@
+--- mk/hdr.mk.orig	2007-11-16 21:59:15 +0800
++++ mk/hdr.mk
+@@ -26,32 +26,32 @@ all:
+ 
+ .O.install:
+ 	echo INSTALL ${BASE}$*
+-	cp -f $< ${BIN}/$*
+-	chmod 0755 ${BIN}/$* 
++	cp -f $< ${DESTDIR}${BIN}/$*
++	chmod 0755 ${DESTDIR}${BIN}/$* 
+ .O.uninstall:
+ 	echo UNINSTALL ${BASE}$*
+ 	rm -f ${BIN}/$* 
+ 
+ .a.install:
+ 	echo INSTALL ${BASE}$<
+-	cp -f $< ${LIBDIR}/$<
+-	chmod 0644 ${LIBDIR}/$<
++	cp -f $< ${DESTDIR}${LIBDIR}/$<
++	chmod 0644 ${DESTDIR}${LIBDIR}/$<
+ .a.uninstall:
+ 	echo UNINSTALL ${BASE}$<
+ 	rm -f ${LIBDIR}/$<
+ 
+ .h.install:
+ 	echo INSTALL ${BASE}$<
+-	cp -f $< ${INCLUDE}/$<
+-	chmod 0644 ${INCLUDE}/$<
++	cp -f $< ${DESTDIR}${INCLUDE}/$<
++	chmod 0644 ${DESTDIR}${INCLUDE}/$<
+ .h.uninstall:
+ 	echo UNINSTALL ${BASE}$<
+ 	rm -f ${INCLUDE}/$<
+ 
+ .1.install:
+ 	echo INSTALL man $*'(1)'
+-	${FILTER} $< >${MAN}/man1/$<
+-	chmod 0644 ${MAN}/man1/$<
++	${FILTER} $< >${DESTDIR}${MAN}/man1/$<
++	chmod 0644 ${DESTDIR}${MAN}/man1/$<
+ .1.uninstall:
+ 	echo UNINSTALL man $*'(1)'
+ 	rm -f ${MAN}/man1/$<
+@@ -69,8 +69,8 @@ install: printinstall mkdirs
+ depend: cleandep
+ 
+ FILTER = cat
+-COMPILE= CC="${CC}" CFLAGS="${CFLAGS}" ${ROOT}/util/compile
+-LINK= LD="${LD}" LDFLAGS="${LDFLAGS}" ${ROOT}/util/link
++COMPILE= noisycc=yes CC="${CC}" CFLAGS="${CFLAGS}" ${ROOT}/util/compile
++LINK= noisycc=yes LD="${LD}" LDFLAGS="${LDFLAGS}" ${ROOT}/util/link
+ 
+ include ${ROOT}/config.mk
+ CFLAGS += -I$$(echo ${INCPATH}|sed 's/:/ -I/g')

Modified: head/x11-wm/wmii/pkg-plist
==============================================================================
--- head/x11-wm/wmii/pkg-plist	Sun Mar 16 07:03:44 2014	(r348393)
+++ head/x11-wm/wmii/pkg-plist	Sun Mar 16 08:38:59 2014	(r348394)
@@ -7,4 +7,7 @@ bin/wmiistartrc
 etc/wmii-3.5/rc.wmii
 etc/wmii-3.5/welcome
 etc/wmii-3.5/wmiirc
+man/man1/wmii.1.gz
+man/man1/wmiiloop.1.gz
+man/man1/wmiir.1.gz
 @dirrm etc/wmii-3.5



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403160838.s2G8cxJw059280>