summaryrefslogtreecommitdiffstats
path: root/misc/shared-mime-info/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'misc/shared-mime-info/Makefile')
-rw-r--r--misc/shared-mime-info/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/misc/shared-mime-info/Makefile b/misc/shared-mime-info/Makefile
new file mode 100644
index 000000000..3fa1b85da
--- /dev/null
+++ b/misc/shared-mime-info/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: shared-mime-info
+# Date created: 31 May 2002
+# Whom: olgeni@FreeBSD.org
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= shared-mime-info
+PORTVERSION= 0.90
+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 pkgconfig
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+MAKE_JOBS_UNSAFE= yes
+
+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>