aboutsummaryrefslogtreecommitdiffstats
path: root/palm/synce-trayicon/Makefile
blob: e381f8759755d176c6d005cd8ab290ab5119e56a (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
# New ports collection makefile for:   synce-trayicon
# Date created:                28 August 2003
# Whom:                        Sam Lawrance <boris@brooknet.com.au>
#
# $FreeBSD$

PORTNAME=   synce-trayicon
PORTVERSION=    0.14
PORTREVISION=   4
CATEGORIES= palm
MASTER_SITES=   SF/synce/SynCE-GNOME/${PORTVERSION}

MAINTAINER= avl@FreeBSD.org
COMMENT=    GNOME system tray app for monitoring connected WinCE based devices

LIB_DEPENDS=    rra.0:${PORTSDIR}/palm/synce-librra \
        gtop-2.0.7:${PORTSDIR}/devel/libgtop \
        unshield.0:${PORTSDIR}/archivers/unshield \
        orange.0:${PORTSDIR}/archivers/liborange \
        notify.4:${PORTSDIR}/devel/libnotify
RUN_DEPENDS=    ${LOCALBASE}/libexec/gvfsd-synce:${PORTSDIR}/palm/synce-gvfs \
        ${LOCALBASE}/libexec/notification-daemon:${PORTSDIR}/deskutils/notification-daemon

MAKE_JOBS_SAFE= yes

GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_GETTEXT=    yes
USE_GNOME=  gnomeprefix gnomehack libgnomeui desktopfileutils
INSTALLS_ICONS= yes
GCONF_SCHEMAS=  ${PORTNAME}.schemas
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CFLAGS+=    -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
SUB_FILES=  pkg-message

MAN1=       ${PORTNAME}.1

.include <bsd.port.pre.mk>

pre-configure:
    @if [ -z "`${GREP} libsynce ${LOCALBASE}/libdata/pkgconfig/liborange.pc`" ]; then \
        ${ECHO_MSG} ; \
        ${ECHO_MSG} "${PKGNAME} requires archivers/liborange built with LIBSYNCE option ON" ; \
        ${ECHO_MSG} ; \
        ${FALSE}; \
    fi
    @if [ -z "`${GREP} libunshield ${LOCALBASE}/libdata/pkgconfig/liborange.pc`" ]; then \
        ${ECHO_MSG} ; \
        ${ECHO_MSG} "${PKGNAME} requires archivers/liborange built with LIBUNSHIELD option ON" ; \
        ${ECHO_MSG} ; \
        ${FALSE}; \
    fi

post-install:
    @-update-desktop-database
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>