Index: head/x11-wm/swm/files/patch-Makefile-xpm =================================================================== --- head/x11-wm/swm/files/patch-Makefile-xpm (revision 276318) +++ head/x11-wm/swm/files/patch-Makefile-xpm (nonexistent) @@ -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 -+ Property changes on: head/x11-wm/swm/files/patch-Makefile-xpm ___________________________________________________________________ Deleted: cvs2svn:cvs-rev ## -1 +0,0 ## -1.2 \ No newline at end of property Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Index: head/x11-wm/swm/files/patch-swm.conf =================================================================== --- head/x11-wm/swm/files/patch-swm.conf (revision 276318) +++ head/x11-wm/swm/files/patch-swm.conf (nonexistent) @@ -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" Property changes on: head/x11-wm/swm/files/patch-swm.conf ___________________________________________________________________ Deleted: cvs2svn:cvs-rev ## -1 +0,0 ## -1.1 \ No newline at end of property Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Index: head/x11-wm/swm/Makefile =================================================================== --- head/x11-wm/swm/Makefile (revision 276318) +++ head/x11-wm/swm/Makefile (revision 276319) @@ -1,81 +1,76 @@ # New ports collection makefile for: swm # Date created: 2000-12-16 # Whom: trevor # # $FreeBSD$ # 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 + 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 - 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 - ${MKDIR} ${DATADIR}/pixmaps - cd ${WRKSRC}/../share/swm/pixmaps && ${PAX} -r -w * ${DATADIR}/pixmaps +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + @cd ${WRKSRC}/../examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR} +.endif .include Property changes on: head/x11-wm/swm/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.23 \ No newline at end of property +1.24 \ No newline at end of property Index: head/x11-wm/swm/pkg-descr =================================================================== --- head/x11-wm/swm/pkg-descr (revision 276318) +++ head/x11-wm/swm/pkg-descr (revision 276319) @@ -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/ Property changes on: head/x11-wm/swm/pkg-descr ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property