aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/sapphire/Makefile
blob: 309f0d9ae33c2bdd17c5b95fc5c00be48a3e2ed9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# New ports collection makefile for:    sapphire
# Date created:     26 Jan 2000
# Whom:         Trevor Johnson
#
# $FreeBSD$
#

PORTNAME=   sapphire
PORTVERSION=    0.15.8
PORTREVISION=   1
CATEGORIES= x11-wm
MASTER_SITES=   SF

MAINTAINER= tabthorpe@FreeBSD.org
COMMENT=    Small window manager

USE_XORG=   x11 xext
USE_GMAKE=  yes
REINPLACE_ARGS= -i '' -e
MAKE_ENV=   CC="${CXX}"

post-extract:

post-patch:
    ${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/data.inst
.for ii in data/menu/default windowmanager.cc
    ${REINPLACE_CMD} "s|/usr|${PREFIX}|g" ${WRKSRC}/${ii}
.endfor
    ${CP} ${WRKSRC}/data.inst ${WRKSRC}/sapphire.inst

post-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/sapphire.inst ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/share/sapphire/menu
    ${INSTALL_DATA} ${WRKSRC}/data/menu/default ${PREFIX}/share/sapphire/menu
    # so the sapphire-themes port can restore the original menu when the
    # themes are de-installed
    ${INSTALL_DATA} ${WRKSRC}/data/menu/default ${PREFIX}/share/sapphire/menu/default.orig
    @${MKDIR} ${PREFIX}/share/sapphire/themes
    ${INSTALL_DATA} ${WRKSRC}/data/themes/*.theme ${PREFIX}/share/sapphire/themes
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
.endif

.include <bsd.port.mk>