Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # $OpenBSD: Makefile,v 1.33 2013/10/11 21:20:57 naddy Exp $
  2. COMMENT-canna= X input method for Japanese, canna support
  3. COMMENT-canna-wnn= X input method for Japanese, canna and wnn support
  4. COMMENT-wnn= X input method for Japanese, wnn support
  5. DISTNAME= kinput2-v3
  6. PKGNAME= ja-kinput2-3.0
  7. REVISION= 7
  8. MASTER_SITES= ftp://ftp.sra.co.jp/pub/x11/kinput2/
  9. CATEGORIES= japanese x11
  10. # License: NOFEE
  11. PERMIT_PACKAGE_CDROM= Yes
  12. WANTLIB= ICE SM X11 Xau Xaw Xdmcp Xext Xmu Xpm Xt c
  13. MAINTAINER= SUZUKI Hitoshi <sigh@kuzirabekon.econ.nagasaki-u.ac.jp>
  14. CONFIGURE_STYLE=imake
  15. FLAVORS= canna wnn
  16. FLAVOR?= wnn
  17. .if ${FLAVOR:Mwnn}
  18. BUILD_DEPENDS+= japanese/Wnn
  19. .endif
  20. .if ${FLAVOR:Mcanna}
  21. PERMIT_PACKAGE_CDROM= Canna prevents it
  22. PERMIT_PACKAGE_FTP = Yes
  23. WANTLIB += canna16
  24. LIB_DEPENDS= japanese/canna
  25. .endif
  26. PORT_DOCDIR=${PREFIX}/share/doc/kinput2
  27. pre-configure:
  28. mv -f ${WRKSRC}/Kinput2.conf ${WRKSRC}/Kinput2.conf.org
  29. cp ${FILESDIR}/Kinput2.conf ${WRKSRC}/Kinput2.conf
  30. .if ${FLAVOR:Mwnn}
  31. echo "#define UseWnn" >>${WRKSRC}/Kinput2.conf
  32. .endif
  33. .if ${FLAVOR:Mcanna}
  34. echo "#define UseCanna" >>${WRKSRC}/Kinput2.conf
  35. .endif
  36. NO_TEST= Yes
  37. post-install:
  38. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/kinput2
  39. cp ${WRKSRC}/README ${PORT_DOCDIR}
  40. cp ${WRKSRC}/NEWS ${PORT_DOCDIR}
  41. @(cd ${WRKSRC}/doc; tar -cf - . | \
  42. (cd ${PORT_DOCDIR}; tar -xf -))
  43. @chown -R ${SHAREOWN}:${SHAREGRP} ${PORT_DOCDIR}
  44. .include <bsd.port.mk>