aboutsummaryrefslogtreecommitdiffstats
path: root/x11-themes/gtk-equinox-engine/Makefile
blob: 9568734ffc978d0ec0868b9b7ea91a471e591444 (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
# Created by: Deni Shaposhnikov <dsh@bamus.cz>
# $FreeBSD$

PORTNAME=   equinox
PORTVERSION=    1.50
PORTREVISION=   2
CATEGORIES= x11-themes
MASTER_SITES=   http://gnome-look.org/CONTENT/content-files/
PKGNAMEPREFIX=  gtk-
PKGNAMESUFFIX=  -engine
DISTFILES=  121881-${PORTNAME}-${PORTVERSION}.tar.gz \
        140449-${PORTNAME}-themes-${PORTVERSION}.tar.gz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Equinox GTK+ 2.x engine and themes

BUILD_DEPENDS=  ${LOCALBASE}/libdata/pkgconfig/gtk-engines-2.pc:${PORTSDIR}/x11-themes/gtk-engines2
RUN_DEPENDS=    ${LOCALBASE}/libdata/pkgconfig/gtk-engines-2.pc:${PORTSDIR}/x11-themes/gtk-engines2 \
        ${LOCALBASE}/share/icons/Faenza/index.theme:${PORTSDIR}/x11-themes/gnome-icons-faenza

USES=       pkgconfig
USE_GNOME=  gtk20
GNU_CONFIGURE=  yes
WRKSRC=     ${WRKDIR}/equinox-${PORTVERSION}

DATADIR=    ${PREFIX}/share/themes

SUBDIRS=    "Equinox Evolution" "Equinox Evolution Dawn" \
        "Equinox Evolution Dawn" "Equinox Evolution Dusk" \
        "Equinox Evolution Light" "Equinox Evolution Midnight" \
        "Equinox Evolution Rounded" "Equinox Evolution Squared"
EXAMPLES=   "Equinox Evolution.crx" "Equinox Evolution Dawn.crx" \
        "Equinox Evolution Dusk.crx" "Equinox Evolution Midnight.crx"

OPTIONS_DEFINE= ANIMATION EXAMPLES DOCS
OPTIONS_DEFAULT=    ANIMATION
ANIMATION_DESC= Enable animation support

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MANIMATION}
CONFIGURE_ARGS+=    --enable-animation
.endif

post-patch:
    @${FIND} ${WRKDIR} -name 'gtkrc' -exec \
        ${REINPLACE_CMD} -e 's!^include "apps/nautilus\.rc"!#&!' {} +
    @${FIND} ${WRKDIR} -type f -name 'gtkrc.bak' -exec ${RM} -f {} +
    @${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
        ${WRKSRC}/src/animation.c

post-install:
    @${MKDIR} ${DATADIR}
.for i in ${SUBDIRS}
    ${CP} -R ${WRKDIR}/${i} ${DATADIR}
    ${FIND} ${DATADIR}/${i} -type d -exec ${CHMOD} 755 {} +
    ${FIND} ${DATADIR}/${i} -type f -exec ${CHMOD} ${SHAREMODE} {} +
.endfor
.if ${PORT_OPTIONS:MEXAMPLES}
    ${MKDIR} ${EXAMPLESDIR}
.for i in ${EXAMPLES}
    ${INSTALL_DATA} ${WRKDIR}/$i ${EXAMPLESDIR}
.endfor
.endif
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>