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

51 lines
1.2 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.41 2012/03/19 10:28:48 ajacoutot Exp $
COMMENT= shared mime database for desktops
2012-02-16 17:22:44 -05:00
DISTNAME= shared-mime-info-1.0
CATEGORIES= misc
REVISION= 0
HOMEPAGE= http://www.freedesktop.org/wiki/Software/shared-mime-info
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c glib-2.0 xml2
2008-03-15 05:15:31 -04:00
MASTER_SITES= http://people.freedesktop.org/~hadess/
EXTRACT_SUFX= .tar.xz
MODULES= devel/gettext \
textproc/intltool
2010-11-19 02:23:05 -05:00
LIB_DEPENDS= devel/glib2 \
textproc/libxml
USE_GMAKE= Yes
USE_GROFF= Yes
CONFIGURE_STYLE= gnu
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' \
${WRKSRC}/update-mime-database.c \
${WRKSRC}/shared-mime-info-spec.xml
# 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{~,}
.include <bsd.port.mk>