1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/x11-wm/jewel/Makefile
2007-05-27 03:03:31 +00:00

60 lines
1.4 KiB
Makefile

# New ports collection makefile for: jewel
# Date created: 2002-05-26
# Whom: trevor
# based in part on the aewm++ port by ijliao
#
# $FreeBSD$
#
PORTNAME= jewel
PORTVERSION= 0.12.41
PORTREVISION= 1
CATEGORIES= x11-wm
MASTER_SITES= http://mjr.towers.org.uk/comp/
MAINTAINER= ports@FreeBSD.org
COMMENT= Window manager based on aewm++
ALL_TARGET= jewel
DOCDIR= share/doc/${PORTNAME}
DOCS= Changelog Changelog.DLR Changelog.jewel INSTALL LICENSE README
MAN1= jewel.1x
PLIST= ${WRKDIR}/pkg-plist
USE_X_PREFIX= yes
USE_GMAKE= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 700042
BROKEN= Broken with gcc 4.2
.endif
post-patch:
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig
@${SED} -e "s,^CC,#CC,g ; s,^CFLAGS,#CFLAGS,g ; \
s,^prefix,#prefix,g ; s,prefix,PREFIX,g ; \
s,/usr/X11R6,${X11BASE},g ; \
s,CC,CXX,g ; s,CFLAGS,CXXFLAGS,g" < ${WRKSRC}/Makefile.orig \
> ${WRKSRC}/Makefile
pre-install:
${ECHO_CMD} bin/jewel > ${PLIST}
.if !defined(NOPORTDOCS)
.for ii in ${DOCS}
${ECHO_CMD} ${DOCDIR}/${ii} >> ${PLIST}
.endfor
${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/jewel ${PREFIX}/bin/jewel
${INSTALL_MAN} ${WRKSRC}/jewel.1x ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/${DOCDIR}
.for ii in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${ii} ${PREFIX}/${DOCDIR}
.endfor
.endif
.include <bsd.port.post.mk>