Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # $OpenBSD: Makefile,v 1.8 2015/07/18 21:54:37 jasper Exp $
  2. COMMENT= convert Big5/GB encoded files to postscript
  3. DISTNAME= bg5ps-1.3.0
  4. PKGNAME= zh-${DISTNAME}
  5. REVISION= 11
  6. CATEGORIES= fonts chinese x11
  7. # GPL
  8. PERMIT_PACKAGE_CDROM= Yes
  9. WANTLIB= c m ttf
  10. MODULES= lang/python
  11. RUN_DEPENDS= fonts/zh-arphicttf
  12. LIB_DEPENDS= print/freetype
  13. # python.port.mk overrides various targets when CONFIGURE_STYLE is empty
  14. CONFIGURE_STYLE=none
  15. NO_TEST= Yes
  16. pre-configure:
  17. sed -i "s|/usr/local/bin/python.*|${MODPY_BIN}|" ${WRKSRC}/bg5ps
  18. ${SUBST_CMD} ${WRKSRC}/bg5ps.conf
  19. MAKE_FLAGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include/freetype1" \
  20. LDFLAGS=-L${LOCALBASE}/lib \
  21. CC=${CC}
  22. do-install:
  23. ${INSTALL_PROGRAM} ${WRKBUILD}/bg5ps ${PREFIX}/bin
  24. ${INSTALL_PROGRAM} ${WRKBUILD}/ttf2psm ${PREFIX}/bin
  25. ${INSTALL_DATA_DIR} ${PREFIX}/lib/bg5ps
  26. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bg5ps
  27. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bg5ps
  28. ${INSTALL_DATA} ${WRKSRC}/bg5ps.conf ${PREFIX}/lib/bg5ps
  29. cp -R ${WRKSRC}/doc/* ${PREFIX}/share/doc/bg5ps
  30. cp -R ${WRKSRC}/examples/* ${PREFIX}/share/examples/bg5ps
  31. .include <bsd.port.mk>