Makefile 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # $OpenBSD: Makefile,v 1.28 2014/12/12 19:50:16 naddy Exp $
  2. # crashes & hangs on anything but i386
  3. ONLY_FOR_ARCHS= i386
  4. COMMENT= programming language with generators, X11 graphics and more
  5. CATEGORIES= lang
  6. DISTNAME= unicon-10.0beta
  7. REVISION= 1
  8. DISTFILES= uni.zip
  9. HOMEPAGE= http://unicon.sourceforge.net/
  10. MASTER_SITES= http://icon.cs.unlv.edu/v9/
  11. MAINTAINER= Marc Espie <espie@openbsd.org>
  12. # GPL
  13. PERMIT_PACKAGE_CDROM= Yes
  14. WANTLIB= X11 Xpm c gdbm m pthread-stubs xcb
  15. WRKDIST= ${WRKDIR}
  16. LIB_DEPENDS= databases/gdbm
  17. MAKE_ENV= ARCH="${MACHINE_ARCH}"
  18. CONF_DIR= ${WRKSRC}/config/unix/openbsd
  19. ALL_TARGET= Unicon
  20. CONFIGURE_TARGET=X-Configure
  21. TEST_TARGET= Test
  22. pre-configure:
  23. cp -R ${FILESDIR}/openbsd ${WRKSRC}/config/unix
  24. if [ -f ${CONF_DIR}/${ARCH}_rswitch.c ] ; then \
  25. ln -f ${CONF_DIR}/${ARCH}_rswitch.c ${CONF_DIR}/rswitch.c ;\
  26. else \
  27. touch ${CONF_DIR}/rswitch.c ;\
  28. echo "#define NoCoexpr" \
  29. >>${WRKSRC}/config/unix/openbsd/define.h;\
  30. fi
  31. do-configure:
  32. cd ${WRKSRC} && make ${CONFIGURE_TARGET} name=openbsd
  33. # We put a wrapper around icont for finding the library files when
  34. # they're installed
  35. # The icon manpage is available separately... I've included it along
  36. # with the package. Ludicrous to get through a ftp connexion for such
  37. # a small file...
  38. pre-install:
  39. .for i in unicon ivib
  40. -cd ${WRKBUILD}/bin && mv $i $i.bak && \
  41. sed -e s,`pwd -P`,${TRUEPREFIX}/bin, <$i.bak >$i
  42. .endfor
  43. do-install:
  44. perl ${FILESDIR}/mk_icont ${TRUEPREFIX} >${WRKBUILD}/icont
  45. ${INSTALL_PROGRAM} ${WRKBUILD}/bin/icont ${PREFIX}/lib
  46. ${INSTALL_PROGRAM} ${WRKBUILD}/bin/iconx ${PREFIX}/bin
  47. ${INSTALL_PROGRAM} ${WRKBUILD}/bin/miconx ${PREFIX}/bin
  48. ${INSTALL_PROGRAM} ${WRKBUILD}/bin/rtt ${PREFIX}/bin
  49. ${INSTALL_SCRIPT} ${WRKBUILD}/icont ${PREFIX}/bin
  50. ${INSTALL_MAN} ${FILESDIR}/icon.1 ${PREFIX}/man/man1/icont.1
  51. cd ${PREFIX}/man/man1 && ln -f icont.1 iconx.1
  52. ${INSTALL_DATA} ${WRKBUILD}/bin/rt.h ${PREFIX}/include
  53. cd ${PREFIX}/bin && ${WRKBUILD}/bin/patchstr ${PREFIX}/lib/icont ${TRUEPREFIX}/bin/iconx
  54. ${INSTALL_SCRIPT} ${WRKBUILD}/bin/unicon ${PREFIX}/bin
  55. -${INSTALL_SCRIPT} ${WRKBUILD}/bin/ivib ${PREFIX}/bin
  56. ${INSTALL_DATA_DIR} ${PREFIX}/share/ipl/lib
  57. ${INSTALL_DATA_DIR} ${PREFIX}/share/ipl/include
  58. for i in ${WRKBUILD}/ipl/lib/*.u; do \
  59. ${INSTALL_DATA} $$i ${PREFIX}/share/ipl/lib; \
  60. done
  61. for i in ${WRKBUILD}/ipl/{incl,gincl}/*.icn; do \
  62. ${INSTALL_DATA} $$i ${PREFIX}/share/ipl/include; \
  63. done
  64. .include <bsd.port.mk>