From 3f53246e24f51802de39dfb8dcbf30009e27edd6 Mon Sep 17 00:00:00 2001 From: miwi Date: Tue, 26 Feb 2008 13:32:41 +0000 Subject: - Update to version 4.2 PR: 121092 Submitted by: Ports Fury --- x11-wm/qlwm/Makefile | 88 ++++++++++++++++++++--------------------------- x11-wm/qlwm/distinfo | 6 ++-- x11-wm/qlwm/files/qlwm | 10 ------ x11-wm/qlwm/files/qlwm.in | 10 ++++++ 4 files changed, 50 insertions(+), 64 deletions(-) delete mode 100644 x11-wm/qlwm/files/qlwm create mode 100644 x11-wm/qlwm/files/qlwm.in (limited to 'x11-wm/qlwm') diff --git a/x11-wm/qlwm/Makefile b/x11-wm/qlwm/Makefile index 185d8242733b..96754dba716e 100644 --- a/x11-wm/qlwm/Makefile +++ b/x11-wm/qlwm/Makefile @@ -8,69 +8,55 @@ # PORTNAME= qlwm -PORTVERSION= 3.1 -PORTREVISION= 1 +PORTVERSION= 4.2 CATEGORIES= x11-wm MASTER_SITES= http://www.alinden.mynetcologne.de/qlwm/ MAINTAINER= ports@FreeBSD.org COMMENT= Qt-based window manager -DOCDIR= share/doc/${PORTNAME} -DOCS= CHANGES README -LIBDIR= lib/${PORTNAME} -PLIST= ${WRKDIR}/pkg-plist -MAN1= qlwm.1 -USE_QT_VER= 3 -USE_X_PREFIX= yes -REINPLACE_ARGS= -i'' -E +USE_QT_VER= 4 +QT_COMPONENTS= corelib gui moc_build qmake_build -MAKE_ENV= DEST="${PREFIX}/${LIBDIR}" INCPATH="${QTCPPFLAGS}" \ - LIBS="${QTCFGLIBS} -lqt-mt -pthread" LINK="${CXX}" MOC="${MOC}" +MAN1= qlwm.1 +PORTDOCS= CHANGES README +PLIST_FILES= bin/qlwm \ + lib/qlwm/biff \ + lib/qlwm/dclock \ + lib/qlwm/files/appdefaults \ + lib/qlwm/files/button_left.xpm \ + lib/qlwm/files/button_right.xpm \ + lib/qlwm/files/defaults \ + lib/qlwm/files/menu.xpm \ + lib/qlwm/files/menuconfig \ + lib/qlwm/files/tiled.xpm \ + lib/qlwm/files/winlist.xpm \ + lib/qlwm/qlwm +PLIST_DIRS= lib/qlwm/files \ + lib/qlwm + +SUB_FILES= qlwm post-patch: - ${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} \ - 's|/usr/local/qlwm|${PREFIX}/${LIBDIR}|g ; \ - s|^CXX|#CXX|g ; \ - s|^INCPATH|#INCPATH|g ; \ - s|^LFLAGS|#LFLAGS|g ; \ - s|^LIBS|#LIBS|g ; \ - s|^LINK|#LINK|g ; \ - s|^MOC|#MOC|g' - -pre-install: - ${ECHO_CMD} bin/qlwm > ${PLIST} -.for i in biff dclock qlwm - ${ECHO_CMD} ${LIBDIR}/$i >> ${PLIST} -.endfor - for i in `cd ${WRKSRC}/files; ${ECHO_CMD} *`; do \ - ${ECHO_CMD} ${LIBDIR}/files/$$i >> ${PLIST}; \ - done -.if !defined(NOPORTDOCS) -.for i in ${DOCS} - ${ECHO_CMD} ${DOCDIR}/$i >> ${PLIST} -.endfor -.endif -.for i in ${LIBDIR}/files ${LIBDIR} - ${ECHO_CMD} @dirrm $i >> ${PLIST} -.endfor -.if !defined(NOPORTDOCS) - ${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST} -.endif + @${REINPLACE_CMD} -e 's|/usr/local/qlwm|${PREFIX}/lib/qlwm|g ; \ + s|/usr/local/man|${MANPREFIX}/man|g' ${WRKSRC}/Makefile do-install: - ${MKDIR} ${PREFIX}/${LIBDIR}/files - ${INSTALL_DATA} ${WRKSRC}/files/* ${PREFIX}/${LIBDIR}/files - ${INSTALL_PROGRAM} ${WRKSRC}/src/qlwm ${WRKSRC}/dclock/dclock \ - ${WRKSRC}/mail/biff ${PREFIX}/${LIBDIR} + ${INSTALL_SCRIPT} ${WRKDIR}/qlwm ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/qlwm.1 ${MANPREFIX}/man/man1 + @${MKDIR} ${PREFIX}/lib/qlwm + ${INSTALL_PROGRAM} ${WRKSRC}/dclock/dclock ${PREFIX}/lib/qlwm + ${INSTALL_PROGRAM} ${WRKSRC}/mail/biff ${PREFIX}/lib/qlwm + ${INSTALL_PROGRAM} ${WRKSRC}/src/qlwm ${PREFIX}/lib/qlwm + @${MKDIR} ${PREFIX}/lib/qlwm/files + ${INSTALL_DATA} ${WRKSRC}/files/*.xpm ${PREFIX}/lib/qlwm/files + ${INSTALL_DATA} ${WRKSRC}/files/appdefaults ${PREFIX}/lib/qlwm/files + ${INSTALL_DATA} ${WRKSRC}/files/defaults ${PREFIX}/lib/qlwm/files + ${INSTALL_DATA} ${WRKSRC}/files/menuconfig ${PREFIX}/lib/qlwm/files .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/${DOCDIR} -.for i in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/${DOCDIR} -.endfor + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif - ${INSTALL_MAN} ${WRKSRC}/qlwm.1 ${PREFIX}/man/man1 - ${SED} -e s,%PREFIX%,${PREFIX},g <${FILESDIR}/qlwm >${WRKSRC}/qlwm - ${INSTALL_SCRIPT} ${WRKSRC}/qlwm ${PREFIX}/bin .include diff --git a/x11-wm/qlwm/distinfo b/x11-wm/qlwm/distinfo index a241f4e43722..4d8efcea6494 100644 --- a/x11-wm/qlwm/distinfo +++ b/x11-wm/qlwm/distinfo @@ -1,3 +1,3 @@ -MD5 (qlwm-3.1.tar.gz) = 722a08ee0a0382c4123c05d760aed4be -SHA256 (qlwm-3.1.tar.gz) = 4c9676dd35de562bd79b74b52d92e2b563069bc9fe97afc4a07aadfc7ddb923c -SIZE (qlwm-3.1.tar.gz) = 50668 +MD5 (qlwm-4.2.tar.gz) = 15742a71e1d7a39bbe99fe3717d0e656 +SHA256 (qlwm-4.2.tar.gz) = c7248f64fcefe26421acca7bfa474b48e7aa9e04743c48bb93d816d49eb5cd17 +SIZE (qlwm-4.2.tar.gz) = 50323 diff --git a/x11-wm/qlwm/files/qlwm b/x11-wm/qlwm/files/qlwm deleted file mode 100644 index 6a63dac6adf0..000000000000 --- a/x11-wm/qlwm/files/qlwm +++ /dev/null @@ -1,10 +0,0 @@ -#! /bin/sh -PREFIX=%PREFIX% -if ! test -e $HOME/.qlwm -then - mkdir -p $HOME/.qlwm - for i in defaults appdefaults menuconfig; \ - do cp -v ${PREFIX}/lib/qlwm/files/$i $HOME/.qlwm; \ - done -fi -exec ${PREFIX}/lib/qlwm/qlwm "$@" diff --git a/x11-wm/qlwm/files/qlwm.in b/x11-wm/qlwm/files/qlwm.in new file mode 100644 index 000000000000..6a63dac6adf0 --- /dev/null +++ b/x11-wm/qlwm/files/qlwm.in @@ -0,0 +1,10 @@ +#! /bin/sh +PREFIX=%PREFIX% +if ! test -e $HOME/.qlwm +then + mkdir -p $HOME/.qlwm + for i in defaults appdefaults menuconfig; \ + do cp -v ${PREFIX}/lib/qlwm/files/$i $HOME/.qlwm; \ + done +fi +exec ${PREFIX}/lib/qlwm/qlwm "$@" -- cgit