summaryrefslogtreecommitdiffstats
path: root/misc/shared-mime-info/Makefile
blob: 519dbd22d67987cf0f15678f39f1d840f473631a (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
# New ports collection makefile for:    shared-mime-info
# Date created:        31 May 2002
# Whom:                olgeni@FreeBSD.org
#
# $FreeBSD$
#   $MCom: ports/misc/shared-mime-info/Makefile,v 1.15 2009/10/10 15:52:41 marcus Exp $
#

PORTNAME=   shared-mime-info
PORTVERSION=    0.70
CATEGORIES= misc gnome
MASTER_SITES=   http://people.freedesktop.org/~hadess/

MAINTAINER= gnome@FreeBSD.org
COMMENT=    A MIME type database from the FreeDesktop project

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
USE_GETTEXT=    yes
USE_GMAKE=  yes
USE_GNOME=  glib20 libxml2 intltool gnomehack intlhack
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

MAN1=       update-mime-database.1

PKGINSTALL= ${WRKDIR}/pkg-install

MIMEDIRS=   ${LOCALBASE}/share/mime \
        ${PREFIX}/share/mime
MIMESUBDIRS=    application audio image inode message model multipart \
        packages text video x-epoc x-content

post-patch:
    @${REINPLACE_CMD} -e 's|%%MIMEDIRS%%|${MIMEDIRS}|g' \
        ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
        ${WRKSRC}/update-mime-database.c

post-install:
    @${SED} -e 's|%%PREFIX%%|${PREFIX}| ; \
        s|%%MIMEDIRS%%|${MIMEDIRS}|' \
        < ${FILESDIR}/pkg-install.in > ${PKGINSTALL}

.include <bsd.port.mk>