2001-01-26 04:34:34 +01:00
|
|
|
# New ports collection makefile for: qlwm
|
|
|
|
# Date created: 2000-01-24
|
|
|
|
# Whom: trevor
|
|
|
|
# based on the OpenBSD port by Marc Espie <espie@openbsd.org>
|
|
|
|
#
|
|
|
|
# $OpenBSD: Makefile,v 1.2 2000/10/20 12:27:06 espie Exp $
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= qlwm
|
2002-09-04 15:56:52 +02:00
|
|
|
PORTVERSION= 3.0
|
2001-01-26 04:34:34 +01:00
|
|
|
CATEGORIES= x11-wm
|
|
|
|
MASTER_SITES= http://www.netcologne.de/~nc-lindenal/qlwm/
|
|
|
|
|
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
2003-03-01 15:34:33 +01:00
|
|
|
COMMENT= Qt-based window manager
|
2001-01-26 04:34:34 +01:00
|
|
|
|
2001-08-28 00:37:52 +02:00
|
|
|
DOCDIR= share/doc/${PORTNAME}
|
2001-01-26 04:34:34 +01:00
|
|
|
DOCS= CHANGES README
|
2001-08-28 00:37:52 +02:00
|
|
|
LIBDIR= lib/${PORTNAME}
|
2001-01-26 04:34:34 +01:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
MAN1= qlwm.1
|
2002-09-04 15:56:52 +02:00
|
|
|
USE_QT_VER= 3
|
2001-01-26 04:34:34 +01:00
|
|
|
USE_X_PREFIX= yes
|
2002-09-04 15:56:52 +02:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
REINPLACE_ARGS= -i'' -E
|
2001-01-26 04:34:34 +01:00
|
|
|
|
2001-08-28 00:37:52 +02:00
|
|
|
MAKE_ENV= DEST="${PREFIX}/${LIBDIR}" INCPATH="${QTCPPFLAGS}" \
|
2002-09-04 15:56:52 +02:00
|
|
|
LIBS="${QTCFGLIBS} -lqt-mt -pthread" LINK="${CXX}" MOC="${MOC}"
|
2001-01-26 04:34:34 +01:00
|
|
|
|
2003-06-05 00:43:38 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 500113
|
|
|
|
BROKEN= "Fails to link"
|
|
|
|
.endif
|
|
|
|
|
2001-01-26 04:34:34 +01:00
|
|
|
post-patch:
|
2002-09-04 15:56:52 +02:00
|
|
|
find ${WRKSRC} -name "Makefile" | xargs ${REINPLACE_CMD} \
|
|
|
|
's|/usr/local/qlwm|${PREFIX}/${LIBDIR}|g ; \
|
2001-08-28 00:37:52 +02:00
|
|
|
s|^CXX|#CXX|g ; \
|
|
|
|
s|^INCPATH|#INCPATH|g ; \
|
|
|
|
s|^LFLAGS|#LFLAGS|g ; \
|
|
|
|
s|^LIBS|#LIBS|g ; \
|
|
|
|
s|^LINK|#LINK|g ; \
|
|
|
|
s|^MOC|#MOC|g'
|
2001-01-26 04:34:34 +01:00
|
|
|
|
|
|
|
pre-install:
|
2002-01-29 13:14:18 +01:00
|
|
|
${ECHO_CMD} bin/qlwm > ${PLIST}
|
2001-01-26 04:34:34 +01:00
|
|
|
.for i in biff dclock qlwm
|
2002-01-29 13:14:18 +01:00
|
|
|
${ECHO_CMD} ${LIBDIR}/$i >> ${PLIST}
|
2001-01-26 04:34:34 +01:00
|
|
|
.endfor
|
2002-01-29 13:14:18 +01:00
|
|
|
for i in `cd ${WRKSRC}/files; ${ECHO_CMD} *`; do \
|
|
|
|
${ECHO_CMD} ${LIBDIR}/files/$$i >> ${PLIST}; \
|
2001-01-26 04:34:34 +01:00
|
|
|
done
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.for i in ${DOCS}
|
2002-01-29 13:14:18 +01:00
|
|
|
${ECHO_CMD} ${DOCDIR}/$i >> ${PLIST}
|
2001-01-26 04:34:34 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
.for i in ${LIBDIR}/files ${LIBDIR}
|
2002-01-29 13:14:18 +01:00
|
|
|
${ECHO_CMD} @dirrm $i >> ${PLIST}
|
2001-01-26 04:34:34 +01:00
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-01-29 13:14:18 +01:00
|
|
|
${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}
|
2001-01-26 04:34:34 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
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}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/${DOCDIR}
|
|
|
|
.for i in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/${DOCDIR}
|
|
|
|
.endfor
|
|
|
|
.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
|
|
|
|
|
2003-05-18 13:50:46 +02:00
|
|
|
.include <bsd.port.post.mk>
|