Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # $OpenBSD: Makefile,v 1.55 2017/05/31 12:34:52 benoit Exp $
  2. BROKEN-hppa = SIGILL during build
  3. BROKEN-arm = gmake: *** [makefile:279: ../bin/make7] Bus error (core dumped)
  4. COMMENT = high-level, extensible programming language
  5. V = 20170530
  6. DISTNAME = seed7_05_${V}
  7. PKGNAME = seed7-${V}
  8. CATEGORIES = lang
  9. HOMEPAGE = http://seed7.sourceforge.net/
  10. # Interpreter and example programs: GPLv2+
  11. # Runtime libraries: LGPLv2.1
  12. PERMIT_PACKAGE_CDROM = Yes
  13. WANTLIB += X11 c m ncurses
  14. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=seed7/}
  15. EXTRACT_SUFX = .tgz
  16. USE_GMAKE = Yes
  17. MAKE_FLAGS = CC="${CC}" LDFLAGS="-L${X11BASE}/lib" \
  18. SYSTEM_LIBS="-lm"
  19. MAKE_ENV += S7_LIB_DIR=${TRUEPREFIX}/lib/seed7/bin \
  20. SEED7_LIBRARY=${TRUEPREFIX}/lib/seed7/lib
  21. MAKE_FILE = makefile
  22. ALL_TARGET = depend s7 s7c make7
  23. CFLAGS += -I${X11BASE}/include
  24. WRKDIST = ${WRKDIR}/seed7
  25. WRKSRC = ${WRKDIST}/src
  26. post-patch:
  27. perl -pi -e "s,-O2,${CFLAGS},g" ${WRKSRC}/makefile
  28. perl -pi -e "s,/usr,${TRUEPREFIX},g" ${WRKDIST}/doc/s7{,c}.1
  29. do-install:
  30. ${INSTALL_PROGRAM} ${WRKDIST}/bin/s7{,c} ${PREFIX}/bin
  31. ${INSTALL_PROGRAM} ${WRKDIST}/bin/make7 ${PREFIX}/bin
  32. ${INSTALL_DATA_DIR} ${PREFIX}/lib/seed7/bin
  33. ${INSTALL_DATA} ${WRKDIST}/bin/*.a ${PREFIX}/lib/seed7/bin
  34. ${INSTALL_DATA_DIR} ${PREFIX}/lib/seed7/lib
  35. ${INSTALL_DATA} ${WRKDIST}/lib/*.s7i ${PREFIX}/lib/seed7/lib
  36. ${INSTALL_DATA_DIR} ${PREFIX}/lib/seed7/lib/comp
  37. ${INSTALL_DATA} ${WRKDIST}/lib/comp/*.s7i ${PREFIX}/lib/seed7/lib/comp
  38. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/seed7
  39. ${INSTALL_DATA} ${WRKDIST}/prg/*.{dna,sd7,dat,s7i} ${PREFIX}/share/examples/seed7
  40. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/seed7
  41. ${INSTALL_DATA} ${WRKDIST}/{COPYING,LGPL} ${PREFIX}/share/doc/seed7
  42. ${INSTALL_DATA} ${WRKDIST}/doc/*.{txt,htm,css,rc,syn,uew} ${PREFIX}/share/doc/seed7
  43. ${INSTALL_MAN} ${WRKDIST}/doc/*.1 ${PREFIX}/man/man1
  44. # chkexc fails with our make; use gmake
  45. do-test:
  46. cd ${WRKSRC} && ${MAKE_PROGRAM} ${TEST_TARGET}
  47. .include <bsd.port.mk>