Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Created by: Douglas Thrift <douglas@douglasthrift.net>
  2. # $FreeBSD$
  3. PORTNAME= anyterm
  4. PORTVERSION= 1.1.29
  5. PORTREVISION= 19
  6. CATEGORIES= www
  7. MASTER_SITES= http://anyterm.org/download/ \
  8. http://dl1.douglasthrift.net/${PORTNAME}/ \
  9. http://dl2.douglasthrift.net/${PORTNAME}/
  10. MAINTAINER= douglas@douglasthrift.net
  11. COMMENT= Terminal emulator on a Web page
  12. LICENSE= GPLv2+
  13. LICENSE_FILE= ${WRKSRC}/LICENSE
  14. LIB_DEPENDS= libboost_system.so:devel/boost-libs
  15. BROKEN_aarch64= does not build: libstdc++.so: undefined reference to __floatunditf@GCC_4.2.0
  16. BROKEN_armv6= does not build: libstdc++.so: undefined reference to __aeabi_idiv@GCC_3.5
  17. BROKEN_armv7= does not build: libstdc++.so: undefined reference to __aeabi_idiv@GCC_3.5
  18. BROKEN_powerpc64= Does not build: ld: cannot find -lboost_system
  19. USE_RC_SUBR= anytermd
  20. USES= gmake iconv localbase tar:tbz2
  21. USE_GCC= any
  22. ALL_TARGET= default_target
  23. PLIST_FILES= man/man1/anytermd.1.gz \
  24. sbin/anytermd
  25. # Force the use of an older C++ standard; anyterm 1.1.29 is not compatible with
  26. # C++11.
  27. USE_CXXSTD= gnu++98
  28. post-patch:
  29. @${REINPLACE_CMD} -e 's|/private/etc/apache2|${FILESDIR}|' \
  30. ${WRKSRC}/scripts/mimetype.sh
  31. @${REINPLACE_CMD} \
  32. -e 's|$$(CPP_FLAGS)|& ${CPPFLAGS} |' \
  33. -e '/^COMPILE_FLAGS=/s|$$| ${CXXFLAGS}|' \
  34. -e 's|$${OPTIMISE_FLAGS}||' \
  35. -e 's|$$(LINK_FLAGS)|& -L${ICONV_PREFIX}/lib ${ICONV_LIB} |' \
  36. ${WRKSRC}/common.mk
  37. @${REINPLACE_CMD} \
  38. -e '/^COMPILE_FLAGS=/s|$$| ${CXXFLAGS}|' \
  39. -e 's|$$(INC_FLAGS)|& ${CPPFLAGS} |' \
  40. -e 's|$$(CXXFLAGS)||' -e 's|$$(OPTIMISE_FLAGS)||' \
  41. ${WRKSRC}/libpbe/common.mk
  42. do-install:
  43. ${INSTALL_PROGRAM} ${WRKSRC}/anytermd ${STAGEDIR}${PREFIX}/sbin/anytermd
  44. ${INSTALL_MAN} ${WRKSRC}/anytermd.1 ${STAGEDIR}${MANPREFIX}/man/man1/anytermd.1
  45. .include <bsd.port.mk>