2012-03-19 06:28:48 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.41 2012/03/19 10:28:48 ajacoutot Exp $
|
2002-11-14 09:26:57 -05:00
|
|
|
|
2007-09-13 13:56:23 -04:00
|
|
|
COMMENT= shared mime database for desktops
|
2002-11-14 09:26:57 -05:00
|
|
|
|
2012-02-16 17:22:44 -05:00
|
|
|
DISTNAME= shared-mime-info-1.0
|
2002-11-14 09:26:57 -05:00
|
|
|
CATEGORIES= misc
|
2012-03-19 06:28:48 -04:00
|
|
|
REVISION= 0
|
2002-11-14 09:26:57 -05:00
|
|
|
|
2006-07-19 11:11:53 -04:00
|
|
|
HOMEPAGE= http://www.freedesktop.org/wiki/Software/shared-mime-info
|
2002-11-14 09:26:57 -05:00
|
|
|
|
2011-03-03 08:47:09 -05:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
2008-06-03 03:54:51 -04:00
|
|
|
# GPLv2
|
2002-11-14 09:26:57 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2008-01-25 13:56:52 -05:00
|
|
|
|
2011-10-16 02:41:07 -04:00
|
|
|
WANTLIB += c glib-2.0 xml2
|
2002-11-14 09:26:57 -05:00
|
|
|
|
2008-03-15 05:15:31 -04:00
|
|
|
MASTER_SITES= http://people.freedesktop.org/~hadess/
|
2011-10-16 02:41:07 -04:00
|
|
|
EXTRACT_SUFX= .tar.xz
|
2007-04-22 16:41:13 -04:00
|
|
|
|
2008-01-25 13:56:52 -05:00
|
|
|
MODULES= devel/gettext \
|
|
|
|
textproc/intltool
|
2002-11-14 09:26:57 -05:00
|
|
|
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS= devel/glib2 \
|
|
|
|
textproc/libxml
|
2002-11-14 09:26:57 -05:00
|
|
|
|
2007-09-13 13:56:23 -04:00
|
|
|
USE_GMAKE= Yes
|
2011-10-16 02:41:07 -04:00
|
|
|
USE_GROFF= Yes
|
2002-11-14 09:26:57 -05:00
|
|
|
CONFIGURE_STYLE= gnu
|
2007-09-13 13:56:23 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
pre-configure:
|
2008-06-05 06:47:48 -04:00
|
|
|
@perl -pi -e 's|/usr/local|${PREFIX}|g' \
|
2007-09-13 13:56:23 -04:00
|
|
|
${WRKSRC}/update-mime-database.c \
|
|
|
|
${WRKSRC}/shared-mime-info-spec.xml
|
2002-11-14 09:26:57 -05:00
|
|
|
|
2009-07-19 06:44:59 -04:00
|
|
|
# Hack to get a minimal set of files and directories. We could just
|
|
|
|
# configure with `--disable-update-mimedb' but then we don't get
|
|
|
|
# the (mostly empty) bookkeeping files.
|
|
|
|
post-install:
|
|
|
|
cd ${PREFIX}/share/mime && \
|
|
|
|
mv packages/freedesktop.org.xml{,~} && \
|
|
|
|
${PREFIX}/bin/update-mime-database $$(pwd) && \
|
|
|
|
mv packages/freedesktop.org.xml{~,}
|
|
|
|
|
2002-11-14 09:26:57 -05:00
|
|
|
.include <bsd.port.mk>
|