aboutsummaryrefslogtreecommitdiffstats
path: root/x11/deforaos-panel/Makefile
blob: fb2143b83c1896c09be55e30dfe83704ef0e4bed (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
# Created by: Olivier Cochard-Labbe <olivier@cochard.me>
# $FreeBSD$

PORTNAME=   deforaos-panel
PORTVERSION=    0.3.1
CATEGORIES= x11
MASTER_SITES=   http://www.defora.org/os/download/download/4338/
DISTNAME=   Panel-${PORTVERSION}

MAINTAINER= olivier@cochard.me
COMMENT=    DeforaOS desktop panel

LICENSE=    GPLv3

LIB_DEPENDS=    libSystem.so:${PORTSDIR}/devel/deforaos-libsystem \
        libDesktop.so:${PORTSDIR}/x11/deforaos-libdesktop
BUILD_DEPENDS=  browser:${PORTSDIR}/x11-fm/deforaos-browser \
        ${LOCALBASE}/include/Desktop/Keyboard.h:${PORTSDIR}/x11/deforaos-keyboard \
        ${LOCALBASE}/include/Desktop/Player.h:${PORTSDIR}/multimedia/deforaos-player \
        xsltproc:${PORTSDIR}/textproc/libxslt \
        docbook-xsl>=0:${PORTSDIR}/textproc/docbook-xsl
RUN_DEPENDS=    keyboard:${PORTSDIR}/x11/deforaos-keyboard \
        ${LOCALBASE}/libdata/pkgconfig/gnome-icon-theme.pc:${PORTSDIR}/misc/gnome-icon-theme \
        sudo:${PORTSDIR}/security/sudo

USE_GNOME=  gtk20
USES=       gettext pkgconfig
INSTALLS_ICONS= yes
MAKE_ARGS+= PREFIX=${PREFIX}
USE_LDCONFIG=   yes

MAKE_ENV+=  MANDIR=${STAGEDIR}${MANPREFIX}/man

post-patch:
    ${REINPLACE_CMD} -e 's|/lib/|/libdata/|g' \
        ${WRKSRC}/data/pkgconfig.sh
    ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${PREFIX}|g' \
        ${WRKSRC}/src/panel.c

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* \
        ${STAGEDIR}${PREFIX}/lib/Panel/applets/* \
        ${STAGEDIR}${PREFIX}/lib/libPanel.so.0.0

.include <bsd.port.mk>