From owner-svn-ports-head@freebsd.org Sun Feb 14 21:49:54 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5DF82AA92EF; Sun, 14 Feb 2016 21:49:54 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 21DBFE70; Sun, 14 Feb 2016 21:49:54 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u1ELnrV5006581; Sun, 14 Feb 2016 21:49:53 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1ELnrw6006579; Sun, 14 Feb 2016 21:49:53 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201602142149.u1ELnrw6006579@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Sun, 14 Feb 2016 21:49:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r408901 - head/x11-wm/swm X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 21:49:54 -0000 Author: amdmi3 Date: Sun Feb 14 21:49:52 2016 New Revision: 408901 URL: https://svnweb.freebsd.org/changeset/ports/408901 Log: - Switch to options helpers - Simplify wrksrc and plist handling Added: head/x11-wm/swm/pkg-plist (contents, props changed) Modified: head/x11-wm/swm/Makefile Modified: head/x11-wm/swm/Makefile ============================================================================== --- head/x11-wm/swm/Makefile Sun Feb 14 21:47:29 2016 (r408900) +++ head/x11-wm/swm/Makefile Sun Feb 14 21:49:52 2016 (r408901) @@ -3,6 +3,7 @@ PORTNAME= swm PORTVERSION= 1.3.4c +PORTREVISION= 1 CATEGORIES= x11-wm MASTER_SITES= http://www.small-window-manager.de/ EXTRACT_SUFX= -src.tgz @@ -11,60 +12,55 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Window manager for low-memory systems, with title bars and shading LICENSE= GPLv2 -LICENSE_FILE= ${WRKSRC}/../doc/COPYING +LICENSE_FILE= ${WRKSRC}/doc/COPYING -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S,c,,}/src +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S,c,,} +BUILD_WRKSRC= ${WRKSRC}/src USE_XORG= xpm USES= gmake MAKEFILE= Makefile-xpm MAKE_ARGS= CFLAGS="${CFLAGS}" LDFLAGS="" CC="${CC}" XROOT="${LOCALBASE}" -OPTIONS_DEFINE= DOCS EXAMPLES - PORTDOCS= * -PORTEXAMPLES= * .swm -PLIST_FILES= ${BINS:S,^,bin/,} ${SCRIPTS:S,^,bin/,} \ - ${DATA:S,^,%%DATADIR%%/pixmaps/,} \ - man/man1/swm.1.gz man/man1/swmbg.1.gz man/man1/swmswitch.1.gz \ - man/de/man1/swm.1.gz man/de/man1/swmbg.1.gz man/de/man1/swmswitch.1.gz - -BINS= swm swmbg swmswitch -SCRIPTS= startswm -DATA= background.xpm closebox.xpm maxbox.xpm stickybox.xpm \ - swm.colors unstickybox.xpm +PORTEXAMPLES= * MAKE_JOBS_UNSAFE= yes +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: @${REINPLACE_CMD} -e 's|monotype|fixed|g ; \ - s|/usr/share/swm|${DATADIR}|g' ${WRKSRC}/swm.conf + s|/usr/share/swm|${DATADIR}|g' ${WRKSRC}/src/swm.conf post-build: - cd ${WRKSRC}/../swmbg && ${CC} ${CFLAGS} -I${LOCALBASE}/include \ - *.c -o ${WRKSRC}/swmbg -lX11 -lXext -lXpm -L${LOCALBASE}/lib - cd ${WRKSRC}/../swmswitch && ${CC} ${CFLAGS} -I${LOCALBASE}/include \ - *.c -o ${WRKSRC}/swmswitch -lX11 -L${LOCALBASE}/lib + cd ${WRKSRC}/swmbg && ${CC} ${CFLAGS} -I${LOCALBASE}/include \ + *.c -o ${WRKSRC}/src/swmbg -lX11 -lXext -lXpm -L${LOCALBASE}/lib + cd ${WRKSRC}/swmswitch && ${CC} ${CFLAGS} -I${LOCALBASE}/include \ + *.c -o ${WRKSRC}/src/swmswitch -lX11 -L${LOCALBASE}/lib do-install: -.for f in ${BINS} - ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin +.for f in swm swmbg swmswitch + ${INSTALL_PROGRAM} ${WRKSRC}/src/${f} ${STAGEDIR}${PREFIX}/bin .endfor -.for f in ${SCRIPTS} - ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin -.endfor - ${INSTALL_MAN} ${WRKSRC}/swm.1x ${STAGEDIR}${MANPREFIX}/man/man1/swm.1 - ${INSTALL_MAN} ${WRKSRC}/../swmbg/swmbg.1x ${STAGEDIR}${MANPREFIX}/man/man1/swmbg.1 - ${INSTALL_MAN} ${WRKSRC}/../swmswitch/swmswitch.1x ${STAGEDIR}${MANPREFIX}/man/man1/swmswitch.1 + ${INSTALL_SCRIPT} ${WRKSRC}/src/startswm ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/src/swm.1x ${STAGEDIR}${MANPREFIX}/man/man1/swm.1 + ${INSTALL_MAN} ${WRKSRC}/swmbg/swmbg.1x ${STAGEDIR}${MANPREFIX}/man/man1/swmbg.1 + ${INSTALL_MAN} ${WRKSRC}/swmswitch/swmswitch.1x ${STAGEDIR}${MANPREFIX}/man/man1/swmswitch.1 @${MKDIR} ${STAGEDIR}${MANPREFIX}/man/de/man1 - ${INSTALL_MAN} ${WRKSRC}/swm-de.1x ${STAGEDIR}${MANPREFIX}/man/de/man1/swm.1 - ${INSTALL_MAN} ${WRKSRC}/../swmbg/swmbg-de.1x ${STAGEDIR}${MANPREFIX}/man/de/man1/swmbg.1 - ${INSTALL_MAN} ${WRKSRC}/../swmswitch/swmswitch-de.1x ${STAGEDIR}${MANPREFIX}/man/de/man1/swmswitch.1 + ${INSTALL_MAN} ${WRKSRC}/src/swm-de.1x ${STAGEDIR}${MANPREFIX}/man/de/man1/swm.1 + ${INSTALL_MAN} ${WRKSRC}/swmbg/swmbg-de.1x ${STAGEDIR}${MANPREFIX}/man/de/man1/swmbg.1 + ${INSTALL_MAN} ${WRKSRC}/swmswitch/swmswitch-de.1x ${STAGEDIR}${MANPREFIX}/man/de/man1/swmswitch.1 @${MKDIR} ${STAGEDIR}${DATADIR} - cd ${WRKSRC}/../share/swm && ${COPYTREE_SHARE} pixmaps ${STAGEDIR}${DATADIR} + cd ${WRKSRC}/share/swm && ${COPYTREE_SHARE} pixmaps ${STAGEDIR}${DATADIR} + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} + +do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - cd ${WRKSRC}/../examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} + cd ${STAGEDIR}${EXAMPLESDIR} && ${MV} .swm dot.swm .include Added: head/x11-wm/swm/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/swm/pkg-plist Sun Feb 14 21:49:52 2016 (r408901) @@ -0,0 +1,16 @@ +bin/startswm +bin/swm +bin/swmbg +bin/swmswitch +man/de/man1/swm.1.gz +man/de/man1/swmbg.1.gz +man/de/man1/swmswitch.1.gz +man/man1/swm.1.gz +man/man1/swmbg.1.gz +man/man1/swmswitch.1.gz +%%DATADIR%%/pixmaps/background.xpm +%%DATADIR%%/pixmaps/closebox.xpm +%%DATADIR%%/pixmaps/maxbox.xpm +%%DATADIR%%/pixmaps/stickybox.xpm +%%DATADIR%%/pixmaps/swm.colors +%%DATADIR%%/pixmaps/unstickybox.xpm