Makefile 896 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # $OpenBSD: Makefile,v 1.13 2015/07/18 14:57:48 jasper Exp $
  2. COMMENT= convert between GB and BIG-5 codes
  3. DISTNAME= zh-hc-3.0
  4. CATEGORIES= chinese
  5. REVISION = 0
  6. # Fairly restrictive licence
  7. PERMIT_PACKAGE_CDROM= No
  8. PERMIT_PACKAGE_FTP= Yes
  9. WANTLIB= c
  10. MASTER_SITES= ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/convert/
  11. DISTFILES= hc-30.tar.gz hc-supp.tab
  12. EXTRACT_ONLY= hc-30.tar.gz
  13. WRKDIST= ${WRKDIR}/hc3
  14. ALL_TARGET= hc b2g g2b
  15. NO_TEST= Yes
  16. pre-patch:
  17. sed -i 's|malloc.h|stdlib.h|' ${WRKSRC}/hclib.c
  18. do-install:
  19. ${INSTALL_DATA_DIR} ${PREFIX}/share/hc
  20. ${INSTALL_PROGRAM} ${WRKSRC}/hc ${PREFIX}/bin
  21. ${INSTALL_SCRIPT} ${WRKSRC}/b2g ${PREFIX}/bin
  22. ${INSTALL_SCRIPT} ${WRKSRC}/g2b ${PREFIX}/bin
  23. ${INSTALL_DATA} ${WRKSRC}/hc.tab ${PREFIX}/share/hc
  24. ${INSTALL_DATA} ${FULLDISTDIR}/hc-supp.tab ${PREFIX}/share/hc
  25. ${INSTALL_MAN} ${WRKSRC}/hc.1 ${PREFIX}/man/man1
  26. .include <bsd.port.mk>