aboutsummaryrefslogtreecommitdiffstats
path: root/misc/lxde-common/Makefile
blob: 54794a9a17d48e1c116f19ce5e9027f99b372065 (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
46
47
48
49
50
# Created by: sahne
# $FreeBSD$

PORTNAME=   lxde-common
PORTVERSION=    0.5.5
PORTREVISION=   4
CATEGORIES= misc
MASTER_SITES=   SF/lxde/${PORTNAME}%20%28default%20config%29/LXDE%20Common%20${PORTVERSION}/

MAINTAINER= nemysis@gmx.ch
COMMENT=    LXDE Common files

LICENSE=    GPLv2

USES=       iconv
USE_GNOME=  gtk20
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --prefix=${PREFIX} \
        CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib" \
        GMSGFMT="${LOCALBASE}/bin/msgfmt" \
        --with-xsession-path=${PREFIX}/share/xsessions \
        --with-xdg-path=${PREFIX}/share/applications
USE_GMAKE=  yes

DATADIR=    ${PREFIX}/share/lxde
INSTALLS_ICONS= YES

MAN1=       startlxde.1 lxde-logout.1 openbox-lxde.1

PORTDOCS=   AUTHORS README

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

post-install:
    ${INSTALL_DATA} ${WRKSRC}/desktop.conf ${PREFIX}/etc/xdg/lxsession/LXDE/desktop.conf.sample
    ${INSTALL_DATA} ${WRKSRC}/pcmanfm/pcmanfm.conf ${PREFIX}/etc/xdg/pcmanfm/LXDE/pcmanfm.conf.sample
    @[ -f ${PREFIX}/etc/xdg/lxsession/LXDE/desktop.conf ] || \
        ${INSTALL_DATA} ${WRKSRC}/desktop.conf ${PREFIX}/etc/xdg/lxsession/LXDE/desktop.conf
    @[ -f ${PREFIX}/etc/xdg/pcmanfm/LXDE/pcmanfm.conf ] || \
        ${INSTALL_DATA} ${WRKSRC}/pcmanfm/pcmanfm.conf ${PREFIX}/etc/xdg/pcmanfm/LXDE/pcmanfm.conf

.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

.include <bsd.port.mk>