aboutsummaryrefslogtreecommitdiffstats
path: root/misc/kde4-shared-mime-info/Makefile
blob: 0456b53e3d4401c6e2440e8645b702004cc92c54 (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
# New ports collection makefile for:    kde4-shared-mime-info
# Date created:     2008-07-07
# Whom:         Max Brazhnikov <makc@issp.ac.ru>
#
# $FreeBSD$
#

PORTNAME=   shared-mime-info
PORTVERSION=    1.2
CATEGORIES= misc kde
MASTER_SITES=   # none
PKGNAMEPREFIX=  kde4-
DISTNAME=   # none
EXTRACT_SUFX=   # none

MAINTAINER= kde@FreeBSD.org
COMMENT=    Handles shared MIME database under $${KDE4_PREFIX}

RUN_DEPENDS=    update-mime-database:${PORTSDIR}/misc/shared-mime-info

USE_KDE4=   kdeprefix kdehier

NO_BUILD=   yes
NO_WRKSUBDIR=   yes

MIMESUBDIRS=    application audio image inode message model multipart \
        packages text video x-epoc x-content

.include <bsd.port.pre.mk>

.if ${KDE4_PREFIX} != ${LOCALBASE}
PLIST_SUB+= HACK=""
.else
PLIST_SUB+= HACK="@comment "
.endif

do-install:
.if ${KDE4_PREFIX} != ${LOCALBASE}
.for dir in ${MIMESUBDIRS}
    ${MKDIR} ${KDE4_PREFIX}/share/mime/${dir}
    ${TOUCH} ${KDE4_PREFIX}/share/mime/${dir}/.keep_me
.endfor
    @-update-mime-database ${KDE4_PREFIX}/share/mime
.else
    ${DO_NADA}
.endif

.include <bsd.port.post.mk>