summaryrefslogtreecommitdiffstats
path: root/graphics/gtk-update-icon-cache/Makefile
blob: 49a9b406dff045495a148962b119a20268ba87ae (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
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/trunk/graphics/gtk-update-icon-cache/Makefile 17268 2013-04-01 05:13:11Z marcus $

PORTNAME=   gtk-update-icon-cache
PORTVERSION=    2.24.17
CATEGORIES= graphics
MASTER_SITES=   GNOME
MASTER_SITE_SUBDIR= sources/gtk+/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
DISTNAME=   gtk+-${PORTVERSION}
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Gtk-update-icon-cache utility from the Gtk+ toolkit

LICENSE=    LGPL20
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS+= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
RUN_DEPENDS+=   ${LOCALBASE}/share/mime/magic:${PORTSDIR}/misc/shared-mime-info \
        ${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme

USE_XZ=     yes
USE_GMAKE=  yes
USE_PERL5_BUILD=yes
MAKE_JOBS_UNSAFE=   yes
USE_LDCONFIG=   yes
USE_AUTOTOOLS=  libtool
USE_GNOME=  atk pango gdkpixbuf2 ltverhack
USES=       gettext pathfix pkgconfig
USE_XORG=   xext xrender x11 xinerama xi xrandr xcursor xfixes xdamage \
        xcomposite
PATCHDIR=   ${.CURDIR}/../../x11-toolkits/gtk20/files
CONFIGURE_ARGS= --enable-static --with-xinput=yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
PLIST_FILES=    bin/gtk-update-icon-cache

MAN1=       gtk-update-icon-cache.1

.include <bsd.port.pre.mk>

pre-configure:
.if !exists(${LOCALBASE}/libdata/pkgconfig/cairo-xlib.pc)
    @${ECHO_CMD} "${PKGNAME}: Needs cairo with X11 support enabled."
    @${FALSE}
.endif

do-build:
    @cd ${WRKSRC}/gtk && ${GMAKE} gtk-update-icon-cache

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/gtk/gtk-update-icon-cache \
        ${PREFIX}/bin/
    @${INSTALL_MAN} ${WRKSRC}/docs/reference/gtk/gtk-update-icon-cache.1 \
        ${PREFIX}/man/man1/

.include <bsd.port.post.mk>