123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- # $OpenBSD: Makefile,v 1.55 2016/12/06 08:51:35 ajacoutot Exp $
- COMMENT= shared mime database for desktops
- DISTNAME= shared-mime-info-1.8
- CATEGORIES= misc
- HOMEPAGE= http://www.freedesktop.org/wiki/Software/shared-mime-info
- MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
- # GPLv2
- PERMIT_PACKAGE_CDROM= Yes
- WANTLIB += c glib-2.0 intl xml2
- MASTER_SITES= http://people.freedesktop.org/~hadess/
- EXTRACT_SUFX= .tar.xz
- MODULES= textproc/intltool
- LIB_DEPENDS= devel/glib2 \
- textproc/libxml
- USE_GMAKE= Yes
- CONFIGURE_STYLE= gnu
- CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib"
- pre-configure:
- sed -i '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>
|