1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/x11-wm/wmfs/Makefile

53 lines
1.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: wmfs
# Date created: 08 December 2008
# Whom: Dennis Herrmann <adox@mcx2.org>
#
# $FreeBSD$
#
PORTNAME= wmfs
DISTVERSION= 201001
CATEGORIES= x11-wm
MASTER_SITES= http://www.wmfs.info/static/dl/
MAINTAINER= dhn@FreeBSD.org
COMMENT= A floating and tiling Window Manager From Scratch
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
USE_GNOME= pkgconfig
USE_CMAKE= yes
USE_XORG= x11 xft xpm
MAN1= ${PORTNAME}.1
MANCOMPRESSED= yes
PLIST_FILES= bin/wmfs \
etc/xdg/wmfs/wmfsrc \
share/xsessions/wmfs.desktop \
%%DOCSDIR%%/TODO \
%%DOCSDIR%%/README \
%%DOCSDIR%%/wmfsrc
PLIST_DIRS= %%DOCSDIR%% etc/xdg/wmfs etc/xdg share/xsessions
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|share/$${PROJECT_NAME})|${DOCSDIR})|g' \
-e 's|$${PREFIX}/share/man|/$${PREFIX}/man|g' \
-e 's|$${SYSCONFDIR}/xdg|${PREFIX}/etc/xdg|g' ${WRKSRC}/CMakeLists.txt
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/wmfs ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}/TODO
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
${INSTALL_DATA} ${WRKSRC}/wmfsrc ${DOCSDIR}/wmfsrc
.endif
@${CAT} ${PKGMESSAGE} | ${SED} "s|PREFIX|${PREFIX}|g" \
${PKGDIR}/pkg-message
.include <bsd.port.post.mk>