Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # $OpenBSD: Makefile,v 1.27 2017/04/19 09:13:28 benoit Exp $
  2. COMMENT = file editor/viewer/analyzer for executables
  3. DISTNAME = ht-2.1.0
  4. CATEGORIES = editors
  5. REVISION = 1
  6. HOMEPAGE = http://hte.sourceforge.net/
  7. MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
  8. # GPLv2
  9. PERMIT_PACKAGE_CDROM = Yes
  10. WANTLIB = c m ncurses ${LIBCXX}
  11. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=hte/}
  12. EXTRACT_SUFX = .tar.bz2
  13. CONFIGURE_STYLE = gnu
  14. USE_GMAKE = Yes
  15. FLAVORS = no_x11
  16. FLAVOR ?=
  17. LIB_DEPENDS = archivers/lzo2
  18. WANTLIB += lzo2
  19. CONFIGURE_ENV = CFLAGS="-I${LOCALBASE}/include" \
  20. LDFLAGS="-L${LOCALBASE}/lib"
  21. CONFIGURE_ARGS = --program-transform-name='s/ht/hte/'
  22. .if ${FLAVOR:Mno_x11}
  23. CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include"
  24. CONFIGURE_ARGS += --disable-x11-textmode
  25. .else
  26. CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
  27. X11BASE=${X11BASE}
  28. CONFIGURE_ARGS += --enable-x11-textmode
  29. WANTLIB += X11
  30. .endif
  31. do-install:
  32. chmod +x ${WRKSRC}/install-sh
  33. post-install:
  34. ${INSTALL_PROGRAM} ${WRKBUILD}/ht ${PREFIX}/bin/hte
  35. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ht
  36. ${INSTALL_DATA} ${WRKSRC}/doc/{README,ht.html} ${PREFIX}/share/doc/ht
  37. .include <bsd.port.mk>