blob: f2c87d59f47c73a123844c063ebad9a4bdfbf9fc (
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
|
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
PORTNAME= mate-applets
PORTVERSION= 1.6.1
PORTREVISION= 3
CATEGORIES= x11 mate
MASTER_SITES= MATE
DIST_SUBDIR= mate
MAINTAINER= gnome@FreeBSD.org
COMMENT= Applets components for the MATE Desktop Environment
LIB_DEPENDS= libgtop-2.0.so:${PORTSDIR}/devel/libgtop \
libxklavier.so:${PORTSDIR}/x11/libxklavier \
libdbus-1.so:${PORTSDIR}/devel/dbus \
libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
libpolkit-gobject-1.so:${PORTSDIR}/sysutils/polkit \
libhal.so:${PORTSDIR}/sysutils/hal \
libupower-glib.so:${PORTSDIR}/sysutils/upower \
libnotify.so:${PORTSDIR}/devel/libnotify
PORTSCOUT= limitw:1,even
USES= libtool gettext gmake pathfix pkgconfig tar:xz
USE_MATE= autogen common:build desktop docutils icontheme intlhack \
libmateweather libmatewnck mucharmap panel \
polkit settingsdaemon
USE_XORG= x11
USE_GNOME= gdkpixbuf2 glib20 gnomehier gtk20 introspection:build \
libxml2 libxslt pygobject pygtk2
USE_PYTHON= yes
USE_LDCONFIG= yes
INSTALLS_OMF= yes
USE_AUTOTOOLS= aclocal:env autoconf:env automake:env libtoolize:env
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
CONFIGURE_ARGS= --enable-mixer-applet \
--disable-networkmanager
CONFIGURE_ENV= OS_SYS="/usr/include"
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
PATHFIX_MAKEFILEIN= Makefile.*
GLIB_SCHEMAS= org.mate.panel.applet.charpick.gschema.xml \
org.mate.panel.applet.geyes.gschema.xml \
org.mate.panel.applet.multiload.gschema.xml \
org.mate.stickynotes.gschema.xml
FIX_APPLETS= accessx-status battstat charpick drivemount geyes \
invest-applet/data multiload stickynotes trashapplet
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386" && ${ARCH} != "amd64"
CFLAGS+= -fPIC
PLIST_SUB+= BATTERY="@comment "
.else
GLIB_SCHEMAS+= org.mate.panel.applet.battstat.gschema.xml
PLIST_SUB+= BATTERY=""
.endif
.if ${ARCH} != "i386" && ${ARCH} != "amd64"
PLIST_SUB+= CPUFREQ="@comment "
.else
PLIST_SUB+= CPUFREQ=""
GLIB_SCHEMAS+= org.mate.panel.applet.cpufreq.gschema.xml
.endif
post-patch:
@${FIND} ${WRKSRC} -name Makefile.am | ${XARGS} ${REINPLACE_CMD} -e \
's|" == "|" = "|g'
${MV} ${WRKSRC}/invest-applet/invest/invest-applet.py \
${WRKSRC}/invest-applet/invest/mate-invest-applet.py
.for dir in ${FIX_APPLETS}
@${REINPLACE_CMD} -e 's|@LIBEXECDIR@/|@LIBEXECDIR@/mate-|g' \
${WRKSRC}/${dir}/org.mate.*
.endfor
.include <bsd.port.post.mk>
|