2000-12-17 05:28:59 +01:00
|
|
|
# New ports collection makefile for: swm
|
|
|
|
# Date created: 2000-12-16
|
|
|
|
# Whom: trevor
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= swm
|
2002-04-02 05:02:42 +02:00
|
|
|
PORTVERSION= 1.3.4
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
PORTREVISION= 4
|
2000-12-17 05:28:59 +01:00
|
|
|
CATEGORIES= x11-wm
|
2006-04-01 19:31:12 +02:00
|
|
|
MASTER_SITES= http://www2.informatik.hu-berlin.de/~sperling/prog/
|
|
|
|
EXTRACT_SUFX= c-src.tgz
|
2000-12-17 05:28:59 +01:00
|
|
|
|
2006-02-11 22:03:14 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
COMMENT= Window manager for low-memory systems, with title bars and shading
|
2000-12-17 05:28:59 +01:00
|
|
|
|
2002-04-02 05:02:42 +02:00
|
|
|
BINS= swm swmbg swmswitch
|
2000-12-17 05:28:59 +01:00
|
|
|
DOCDIR= share/doc/${PORTNAME}
|
2001-02-02 16:10:52 +01:00
|
|
|
MAN1= swm.1 swmbg.1
|
2002-04-02 05:02:42 +02:00
|
|
|
MAKEFILE= Makefile-xpm
|
2000-12-17 05:28:59 +01:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2005-01-19 02:02:12 +01:00
|
|
|
PLIST_DIRS= share/swm/pixmaps share/swm
|
2001-05-02 03:57:55 +02:00
|
|
|
SCRIPTS= startswm
|
2000-12-17 05:28:59 +01:00
|
|
|
USE_GMAKE= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11 xext xpm
|
2002-04-02 05:02:42 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
|
|
|
|
|
|
|
|
post-patch:
|
2003-11-21 04:20:21 +01:00
|
|
|
.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
|
2002-04-02 05:02:42 +02:00
|
|
|
|
|
|
|
post-build:
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
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
|
2000-12-17 05:28:59 +01:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${RM} -f ${PLIST}
|
|
|
|
for i in ${BINS} ${SCRIPTS}; \
|
2002-01-29 13:14:18 +01:00
|
|
|
do ${ECHO_CMD} bin/$${i} >> ${PLIST}; \
|
2000-12-17 05:28:59 +01:00
|
|
|
done
|
2002-04-02 05:02:42 +02:00
|
|
|
cd ${WRKSRC}/../share/swm/pixmaps && \
|
2004-02-17 10:45:18 +01:00
|
|
|
${FIND} -s . -type f | ${CUT} -c3-999 | \
|
2002-04-02 05:02:42 +02:00
|
|
|
${SED} -e 's:^:share/swm/pixmaps/:' >> ${PLIST}
|
2000-12-17 05:28:59 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
for i in ${DOCS}; \
|
2002-01-29 13:14:18 +01:00
|
|
|
do ${ECHO_CMD} ${DOCDIR}/$${i} >> ${PLIST}; \
|
2000-12-17 05:28:59 +01:00
|
|
|
done
|
2002-04-02 05:02:42 +02:00
|
|
|
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}
|
2002-01-29 13:14:18 +01:00
|
|
|
${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}
|
2000-12-17 05:28:59 +01:00
|
|
|
.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
|
2002-04-02 05:02:42 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/../swmbg/swmbg.1x ${PREFIX}/man/man1/swmbg.1
|
2001-02-02 16:10:52 +01:00
|
|
|
# ${INSTALL_MAN} ${WRKSRC}/swm-de.1x \
|
|
|
|
# ${PREFIX}/man/de_DE.ISO_8859-1/man1/swm.1x
|
2000-12-17 05:28:59 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-04-02 05:02:42 +02:00
|
|
|
${MKDIR} ${PREFIX}/${DOCDIR} ${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/../ && ${CHMOD} -R 755 doc examples
|
2004-01-22 09:05:25 +01:00
|
|
|
cd ${WRKSRC}/../doc && ${PAX} -r -w * ${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/../examples && ${PAX} -r -w * .swm ${EXAMPLESDIR}
|
2000-12-17 05:28:59 +01:00
|
|
|
.endif
|
2002-04-02 05:02:42 +02:00
|
|
|
${MKDIR} ${DATADIR}/pixmaps
|
2004-01-22 09:05:25 +01:00
|
|
|
cd ${WRKSRC}/../share/swm/pixmaps && ${PAX} -r -w * ${DATADIR}/pixmaps
|
2000-12-17 05:28:59 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|