diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-02-14 21:49:52 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-02-14 21:49:52 +0000 |
commit | d37990d39c06d67687e37aabd50a4eb43eff59a2 (patch) | |
tree | 608aa5fa04f49214bc7be08c71bdce080a274f94 /x11-wm | |
parent | - Clarify LICENSE (diff) |
- Switch to options helpers
- Simplify wrksrc and plist handling
Notes
Notes:
svn path=/head/; revision=408901
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/swm/Makefile | 62 | ||||
-rw-r--r-- | x11-wm/swm/pkg-plist | 16 |
2 files changed, 45 insertions, 33 deletions
diff --git a/x11-wm/swm/Makefile b/x11-wm/swm/Makefile index 087fdad8411d..3999885e97fd 100644 --- a/x11-wm/swm/Makefile +++ b/x11-wm/swm/Makefile @@ -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 -.endfor -.for f in ${SCRIPTS} - ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin +.for f in swm swmbg swmswitch + ${INSTALL_PROGRAM} ${WRKSRC}/src/${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 <bsd.port.mk> diff --git a/x11-wm/swm/pkg-plist b/x11-wm/swm/pkg-plist new file mode 100644 index 000000000000..ab612bc68a10 --- /dev/null +++ b/x11-wm/swm/pkg-plist @@ -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 |