aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/ede/Makefile
blob: 5995cbe4bcf895b81d28b59703ab1aac12ac0b40 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Created by: Sergey Matveychuk <sem@ciam.ru>
# $FreeBSD$

PORTNAME=   ede
PORTVERSION=    2.0
PORTREVISION=   2
CATEGORIES= x11-wm
MASTER_SITES=   SF \
        SF/${PORTNAME}/${PORTNAME}lib/${PORTVERSION}:edelib
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} \
        ${EDELIB_DISTFILE}:edelib

MAINTAINER= ports@FreeBSD.org
COMMENT=    Equinox Desktop Environment

LICENSE=    GPLv2 LGPL20
LICENSE_COMB=   multi

BUILD_DEPENDS=  python:${PORTSDIR}/lang/python \
        doxygen:${PORTSDIR}/devel/doxygen \
        jam:${PORTSDIR}/devel/jam \
        update-mime-database:${PORTSDIR}/misc/shared-mime-info
LIB_DEPENDS=    dbus-1.3:${PORTSDIR}/devel/dbus \
        curl:${PORTSDIR}/ftp/curl \
        startup-notification-1.0:${PORTSDIR}/x11/startup-notification \
        fltk.1:${PORTSDIR}/x11-toolkits/fltk
RUN_DEPENDS=    update-mime-database:${PORTSDIR}/misc/shared-mime-info

OPTIONS_DEFINE= HAL
HAL_DESC=   Enable HAL support

USE_XORG=   xcomposite xft xinerama xpm xrandr
USES=       fam gettext pathfix pkgconfig
USE_PYTHON= yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-edelib_path=${EDELIB_WRKSRC} \
        --with-fltk-path=${LOCALBASE}
INSTALL_ICONS=  yes
MAKE_JOBS_UNSAFE=   yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

CONFLICTS_INSTALL=  pekwm-[0-9]*

EDELIB_NAME=    edelib
EDELIB_VERSION= ${PORTVERSION}
EDELIB_DISTNAME=${EDELIB_NAME}-${EDELIB_VERSION}
EDELIB_DISTFILE=${EDELIB_DISTNAME}${EXTRACT_SUFX}
EDELIB_WRKSRC=  ${WRKDIR}/${EDELIB_DISTNAME}

HAL_LIB_DEPENDS=    libhal.so.1:${PORTSDIR}/sysutils/hal
HAL_CONFIGURE_OFF=  --disable-hal

# use multiple make jobs
_make_jobs= -j${MAKE_JOBS_NUMBER}

NO_STAGE=   yes
post-patch:
    @${REINPLACE_CMD} -e \
        's|/usr/local/share|${LOCALBASE}/share| ; \
         /OPTIM_FLAGS=/s|-O2|-fPIC| ; \
         s|_daylight=yes|_daylight=no|' ${EDELIB_WRKSRC}/configure

pre-configure:
    @(cd ${EDELIB_WRKSRC} \
        && ${SETENV} ${CONFIGURE_ENV} ./configure \
        --prefix=${WRKDIR}/fakeroot \
        --with-fltk-path=${LOCALBASE} \
        --build=${CONFIGURE_TARGET} \
        CC="${CC}" CXX="${CXX}" \
        CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
        CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}")

pre-build:
    @(cd ${EDELIB_WRKSRC} \
        && ${LOCALBASE}/bin/jam ${_make_jobs} \
        && ${LOCALBASE}/bin/jam ${INSTALL_TARGET})

do-build:
    @(cd ${BUILD_WRKSRC} && ${LOCALBASE}/bin/jam ${_make_jobs})

do-install:
    @(cd ${INSTALL_WRKSRC} && ${LOCALBASE}/bin/jam ${INSTALL_TARGET})
    @-update-mime-database ${PREFIX}/share/mime

.include <bsd.port.mk>