freebsd-ports/misc/shared-mime-info/Makefile

52 lines
1.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: shared-mime-info
# Date created: 31 May 2002
# Whom: olgeni@FreeBSD.org
#
# $FreeBSD$
PORTNAME= shared-mime-info
2005-04-02 18:50:27 +02:00
PORTVERSION= 0.16
PORTREVISION= 2
CATEGORIES= misc gnome
MASTER_SITES= http://www.marcuscom.com/downloads/ \
2005-04-02 18:50:27 +02:00
http://freedesktop.org/~jrb/
DISTNAME= shared-mime-info-${PORTVERSION}
MAINTAINER= gnome@FreeBSD.org
2003-02-23 11:51:29 +01:00
COMMENT= A MIME type database from the FreeDesktop project
GNU_CONFIGURE= yes
2004-02-18 03:51:54 +01:00
USE_REINPLACE= yes
2004-03-24 23:29:35 +01:00
USE_GNOME= glib20 libxml2 intltool gnomehack
2003-01-08 16:25:24 +01:00
MAN1= update-mime-database.1
PKGINSTALL= ${WRKDIR}/pkg-install
MIMEDIRS= ${X11BASE}/share/gnome/mime \
${LOCALBASE}/share/gnome/mime \
${X11BASE}/share/mime \
${LOCALBASE}/share/mime \
/usr/share/mime
MIMESUBDIRS= audio image inode message model multipart \
packages text video
2004-02-18 03:51:54 +01:00
post-patch:
@${REINPLACE_CMD} -e 's|%%MIMEDIRS%%|${MIMEDIRS}|g' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g ; \
s|%%X11BASE%%|${X11BASE}|g' \
2004-02-18 03:51:54 +01:00
${WRKSRC}/update-mime-database.c
pre-su-install:
.for subdir in ${MIMESUBDIRS}
${MKDIR} ${X11BASE}/share/mime/${subdir}
.endfor
post-install:
@${SED} -e 's|%%PREFIX%%|${PREFIX}| ; \
s|%%MIMEDIRS%%|${MIMEDIRS}|' \
< ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
.include <bsd.port.mk>