PageRenderTime 45ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/x11/libfm/Makefile

https://github.com/johnnywalker/freebsd-ports
Makefile | 52 lines | 37 code | 9 blank | 6 comment | 1 complexity | 86b204a52b8cbadfbd668646a9418d2d MD5 | raw file
  1. # New ports collection makefile for: x11-fm/libfm
  2. # Date created: 23 Sept 2010
  3. # Whom: Kris Moore <kmoore@freebsd.org>
  4. #
  5. # $FreeBSD$
  6. #
  7. PORTNAME= libfm
  8. PORTVERSION= 0.1.16
  9. PORTREVISION= 1
  10. CATEGORIES= x11
  11. MASTER_SITES= SF/pcmanfm/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/libfm%20%28required%20by%20PCManFM%29/
  12. MAINTAINER= kmoore@FreeBSD.org
  13. COMMENT= The libFM backend library to PCManFM
  14. LIB_DEPENDS= startup-notification-1:${PORTSDIR}/x11/startup-notification \
  15. menu-cache.1:${PORTSDIR}/x11/menu-cache
  16. USE_GNOME= gnomehack gtk20 pkgconfig
  17. USE_AUTOTOOLS= libtool
  18. USE_GMAKE= yes
  19. USE_FAM= yes
  20. USE_LDCONFIG= yes
  21. CPPFLAGS+= -I${LOCALBASE}/include
  22. LDFLAGS+= -L${LOCALBASE}/lib
  23. CONFIGURE_ARGS+=--prefix=${LOCALBASE} --sysconfdir=${LOCALBASE}/etc
  24. .if !defined(WITHOUT_NLS)
  25. USE_GETTEXT= yes
  26. PLIST_SUB+= NLS=""
  27. .else
  28. CONFIGURE_ARGS+=--disable-nls
  29. PLIST_SUB+= NLS="@comment "
  30. .endif
  31. .include <bsd.port.pre.mk>
  32. post-patch:
  33. @${REINPLACE_CMD} -e 's|-DG_DISABLE_DEPRECATED||g' \
  34. ${WRKSRC}/src/Makefile.in
  35. @${REINPLACE_CMD} -e 's|docs/Makefile||g' \
  36. ${WRKSRC}/configure
  37. @${REINPLACE_CMD} -e 's|docs/reference/Makefile||g' \
  38. ${WRKSRC}/configure
  39. @${REINPLACE_CMD} -e 's|docs/reference/libfm/Makefile||g' \
  40. ${WRKSRC}/configure
  41. pre-install:
  42. cd ${WRKDIR}/libfm-${PORTVERSION} && ${CHMOD} 755 install-sh
  43. .include <bsd.port.post.mk>