Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $OpenBSD: Makefile,v 1.55 2016/12/06 08:51:35 ajacoutot Exp $
  2. COMMENT= shared mime database for desktops
  3. DISTNAME= shared-mime-info-1.8
  4. CATEGORIES= misc
  5. HOMEPAGE= http://www.freedesktop.org/wiki/Software/shared-mime-info
  6. MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
  7. # GPLv2
  8. PERMIT_PACKAGE_CDROM= Yes
  9. WANTLIB += c glib-2.0 intl xml2
  10. MASTER_SITES= http://people.freedesktop.org/~hadess/
  11. EXTRACT_SUFX= .tar.xz
  12. MODULES= textproc/intltool
  13. LIB_DEPENDS= devel/glib2 \
  14. textproc/libxml
  15. USE_GMAKE= Yes
  16. CONFIGURE_STYLE= gnu
  17. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  18. LDFLAGS="-L${LOCALBASE}/lib"
  19. pre-configure:
  20. sed -i 's|/usr/local|${PREFIX}|g' \
  21. ${WRKSRC}/update-mime-database.c \
  22. ${WRKSRC}/shared-mime-info-spec.xml
  23. # Hack to get a minimal set of files and directories. We could just
  24. # configure with `--disable-update-mimedb' but then we don't get
  25. # the (mostly empty) bookkeeping files.
  26. post-install:
  27. cd ${PREFIX}/share/mime && \
  28. mv packages/freedesktop.org.xml{,~} && \
  29. ${PREFIX}/bin/update-mime-database $$(pwd) && \
  30. mv packages/freedesktop.org.xml{~,}
  31. .include <bsd.port.mk>