diff options
author | miwi <miwi@FreeBSD.org> | 2011-06-25 15:21:44 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2011-06-25 15:21:44 +0800 |
commit | 4ecb538d8022b04fd0da51fbfcb600d5d28b129e (patch) | |
tree | e54c63c4e6d4a9557f7a6e0f3de516e1d8ba6779 /x11-wm | |
parent | 4d9cfb3715b8b08ff29c1e77eb9c0d1516db38eb (diff) | |
download | freebsd-ports-graphics-4ecb538d8022b04fd0da51fbfcb600d5d28b129e.tar.gz freebsd-ports-graphics-4ecb538d8022b04fd0da51fbfcb600d5d28b129e.tar.zst freebsd-ports-graphics-4ecb538d8022b04fd0da51fbfcb600d5d28b129e.zip |
- Update to 1.3.4
PR: 155856
Submitted by: Ports Fury
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/swm/Makefile | 105 | ||||
-rw-r--r-- | x11-wm/swm/files/patch-Makefile-xpm | 30 | ||||
-rw-r--r-- | x11-wm/swm/files/patch-swm.conf | 20 | ||||
-rw-r--r-- | x11-wm/swm/pkg-descr | 15 |
4 files changed, 55 insertions, 115 deletions
diff --git a/x11-wm/swm/Makefile b/x11-wm/swm/Makefile index c59ff5bc80f..61d689de516 100644 --- a/x11-wm/swm/Makefile +++ b/x11-wm/swm/Makefile @@ -6,76 +6,71 @@ # PORTNAME= swm -PORTVERSION= 1.3.4 -PORTREVISION= 4 +PORTVERSION= 1.3.4c CATEGORIES= x11-wm MASTER_SITES= http://www.small-window-manager.de/ -EXTRACT_SUFX= c-src.tgz +EXTRACT_SUFX= -src.tgz MAINTAINER= ports@FreeBSD.org COMMENT= Window manager for low-memory systems, with title bars and shading -BINS= swm swmbg swmswitch -DOCDIR= share/doc/${PORTNAME} -MAN1= swm.1 swmbg.1 +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/../doc/COPYING + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S,c,,}/src + +USE_XORG= xpm +USE_GMAKE= yes MAKEFILE= Makefile-xpm -PLIST= ${WRKDIR}/pkg-plist -PLIST_DIRS= share/swm/pixmaps share/swm +MAKE_ARGS= CFLAGS="${CFLAGS}" LDFLAGS="" CC="${CC}" XROOT="${LOCALBASE}" + +MANLANG= "" de +MAN1= swm.1 swmbg.1 swmswitch.1 +PORTDOCS= * +PORTEXAMPLES= * .swm +PLIST_FILES= ${BINS:S,^,bin/,} ${SCRIPTS:S,^,bin/,} \ + ${DATA:S,^,%%DATADIR%%/pixmaps/,} +PLIST_DIRS= %%DATADIR%%/pixmaps %%DATADIR%% +PLIST_DIRSTRY= man/de/man1 man/de + +BINS= swm swmbg swmswitch SCRIPTS= startswm -USE_GMAKE= yes -USE_XORG= x11 xext xpm -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src +DATA= background.xpm closebox.xpm maxbox.xpm stickybox.xpm \ + swm.colors unstickybox.xpm post-patch: -.for ii in init.c swm.conf - ${MV} ${WRKSRC}/${ii} ${WRKSRC}/${ii}.orig - ${SED} -e "s:PREFIX:${PREFIX}:g" \ - < ${WRKSRC}/${ii}.orig > ${WRKSRC}/${ii} -.endfor + @${REINPLACE_CMD} -e 's|monotype|fixed|g ; \ + s|/usr/share/swm|${DATADIR}|g' ${WRKSRC}/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 - -pre-install: - ${RM} -f ${PLIST} - for i in ${BINS} ${SCRIPTS}; \ - do ${ECHO_CMD} bin/$${i} >> ${PLIST}; \ - done - cd ${WRKSRC}/../share/swm/pixmaps && \ - ${FIND} -s . -type f | ${CUT} -c3-999 | \ - ${SED} -e 's:^:share/swm/pixmaps/:' >> ${PLIST} -.if !defined(NOPORTDOCS) - for i in ${DOCS}; \ - do ${ECHO_CMD} ${DOCDIR}/$${i} >> ${PLIST}; \ - done - cd ${WRKSRC}/../doc && ${FIND} -s . -type f | cut -c3-999 \ - | ${SED} -e 's:^:${DOCDIR}/:' >> ${PLIST} - cd ${WRKSRC}/../ && ${FIND} -s examples -type f \ - | ${SED} -e 's:^examples:share/examples/swm:' >> ${PLIST} - cd ${WRKSRC}/../ && ${FIND} -d examples -type d | \ - ${SED} -e 's:^examples:@dirrm share/examples/swm:' >> ${PLIST} - ${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST} -.endif + 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 do-install: - for i in ${BINS}; \ - do ${INSTALL_PROGRAM} ${WRKSRC}/$${i} ${PREFIX}/bin; \ - done - ${INSTALL_SCRIPT} ${WRKSRC}/${SCRIPTS} ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/swm.1x ${PREFIX}/man/man1/swm.1 - ${INSTALL_MAN} ${WRKSRC}/../swmbg/swmbg.1x ${PREFIX}/man/man1/swmbg.1 -# ${INSTALL_MAN} ${WRKSRC}/swm-de.1x \ -# ${PREFIX}/man/de_DE.ISO_8859-1/man1/swm.1x +.for file in ${BINS} + ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin +.endfor +.for file in ${SCRIPTS} + ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin +.endfor + ${INSTALL_MAN} ${WRKSRC}/swm.1x ${MANPREFIX}/man/man1/swm.1 + ${INSTALL_MAN} ${WRKSRC}/../swmbg/swmbg.1x ${MANPREFIX}/man/man1/swmbg.1 + ${INSTALL_MAN} ${WRKSRC}/../swmswitch/swmswitch.1x ${MANPREFIX}/man/man1/swmswitch.1 + @${MKDIR} ${MANPREFIX}/man/de/man1 + ${INSTALL_MAN} ${WRKSRC}/swm-de.1x ${MANPREFIX}/man/de/man1/swm.1 + ${INSTALL_MAN} ${WRKSRC}/../swmbg/swmbg-de.1x ${MANPREFIX}/man/de/man1/swmbg.1 + ${INSTALL_MAN} ${WRKSRC}/../swmswitch/swmswitch-de.1x ${MANPREFIX}/man/de/man1/swmswitch.1 + @${MKDIR} ${DATADIR} + @cd ${WRKSRC}/../share/swm && ${COPYTREE_SHARE} pixmaps ${DATADIR} .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/${DOCDIR} ${EXAMPLESDIR} - cd ${WRKSRC}/../ && ${CHMOD} -R 755 doc examples - cd ${WRKSRC}/../doc && ${PAX} -r -w * ${DOCSDIR} - cd ${WRKSRC}/../examples && ${PAX} -r -w * .swm ${EXAMPLESDIR} + @${MKDIR} ${DOCSDIR} + @cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} . ${DOCSDIR} +.endif +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + @cd ${WRKSRC}/../examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR} .endif - ${MKDIR} ${DATADIR}/pixmaps - cd ${WRKSRC}/../share/swm/pixmaps && ${PAX} -r -w * ${DATADIR}/pixmaps .include <bsd.port.mk> diff --git a/x11-wm/swm/files/patch-Makefile-xpm b/x11-wm/swm/files/patch-Makefile-xpm deleted file mode 100644 index 96ec2be6ea5..00000000000 --- a/x11-wm/swm/files/patch-Makefile-xpm +++ /dev/null @@ -1,30 +0,0 @@ ---- Makefile-xpm.orig Fri Nov 24 17:15:55 2006 -+++ Makefile-xpm Fri Nov 24 17:16:17 2006 -@@ -2,7 +2,7 @@ - # CFLAGS = -O0 -Wall -g3 -ggdb -p - # LDFLAGS = -O0 -Wall -g3 -ggdb -p - #for production use --CFLAGS = -O3 -+#CFLAGS = -O3 - LDFLAGS = -s -pipe - - # if you want swm to be installed somewhere else: -@@ -10,9 +10,9 @@ - - # There should be nothing to edit below this line - # ----------------------------------------------------------------------------- --CC = gcc -+#CC = gcc - --XROOT = /usr/X11R6 -+XROOT = $(LOCALBASE) - INCLPATH = -I$(XROOT)/include - LDPATH = -L$(XROOT)/lib - -@@ -92,4 +92,4 @@ - mrproper: - rm -f *~ swm core *.o $(OBJS) - cp -f Makefile.org Makefile -- -\ No newline at end of file -+ diff --git a/x11-wm/swm/files/patch-swm.conf b/x11-wm/swm/files/patch-swm.conf deleted file mode 100644 index 8c98619d3d6..00000000000 --- a/x11-wm/swm/files/patch-swm.conf +++ /dev/null @@ -1,20 +0,0 @@ ---- swm.conf.orig Mon Feb 4 05:08:58 2002 -+++ swm.conf Mon Apr 1 17:21:36 2002 -@@ -19,7 +19,7 @@ - #define STD_IO - #define NUMBEROFDESKTOPS 4 - #define FONTS --#define TITLEBARFONT "*monotype-*-12*" -+#define TITLEBARFONT "*fixed-*-12*" - #define LAYERS - #define MAXIMIZE - #define SHADE -@@ -27,7 +27,7 @@ - #define CENTERNEW - #define FOCUSNEW - #define PIXMAPS --#define PIXMAPDIR "/usr/share/swm" -+#define PIXMAPDIR "PREFIX/share/swm" - #define CONFDIR "$HOME" - #define FOREGROUND "gold" - #define BACKGROUND "blue" diff --git a/x11-wm/swm/pkg-descr b/x11-wm/swm/pkg-descr index 9b0de14e42d..485f2022305 100644 --- a/x11-wm/swm/pkg-descr +++ b/x11-wm/swm/pkg-descr @@ -1,11 +1,6 @@ -from the Web page: +sWM was written for small computer system with very little amount of +memory and small screen sizes. It was written to speed up working with +laptops or even PDA's. You need a minimum of about 12k of diskspace +(minimal mode). It uses even less memory than a rxvt. - SWM was written for small computer systems with very little - memory and small screen sizes. It was written to speed up - working with laptops or even PDAs. You need a minimum of - about 20 kB of diskspace. It uses even less memory than - rxvt. - -The swmswitch command crashes, so it is not installed. - -WWW: http://www.small-window-manager.de/ +WWW: http://www.small-window-manager.de/ |