Makefile 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # $OpenBSD: Makefile,v 1.12 2017/05/27 19:57:06 ajacoutot Exp $
  2. COMMENT-main = model railroad control daemon
  3. COMMENT-gui = model railroad control daemon client
  4. VERSION = 2.0
  5. REV = 2585
  6. DISTNAME = Rocrail-2585
  7. PKGNAME-main = rocrail-${VERSION}.${REV}
  8. PKGNAME-gui = rocview-${VERSION}.${REV}
  9. CATEGORIES = misc x11
  10. REVISION-main = 4
  11. REVISION-gui = 3
  12. HOMEPAGE = http://www.rocrail.net/
  13. MAINTAINER = Sebastian Reitenbach <sebastia@openbsd.org>
  14. # GPLv2
  15. PERMIT_PACKAGE_CDROM = Yes
  16. MASTER_SITES = http://bugs.launchpad.net/rocrail/sunrise/2.0/+download/
  17. MULTI_PACKAGES = -main -gui
  18. WANTLIB += c pthread
  19. WANTLIB-gui += ${WANTLIB} m ${LIBCXX}
  20. WANTLIB-gui += wx_base wx_base_net wx_base_odbc wx_base_xml wx_gtk2_adv
  21. WANTLIB-gui += wx_gtk2_aui wx_gtk2_core wx_gtk2_dbgrid wx_gtk2_html
  22. WANTLIB-gui += wx_gtk2_qa wx_gtk2_richtext wx_gtk2_xrc
  23. LIB_DEPENDS-gui += x11/wxWidgets
  24. RUN_DEPENDS-gui += ${PKGPATH},-main
  25. USE_GMAKE = Yes
  26. CONFIGURE_STYLE = none
  27. MAKE_FILE = makefile
  28. MAKE_FLAGS = PLATFORM=OPENBSD CC="${CC}" CPP="${CC}" LNK="${CC}"
  29. ALL_TARGET = fromtar
  30. WRKDIST = ${WRKDIR}/Rocrail
  31. THEMES1 = Basic \
  32. DB \
  33. ILTIS \
  34. SBB-RHB \
  35. SpDrS60
  36. THEMES2 = Accessories \
  37. NL \
  38. NMBS-SNCB \
  39. Roads \
  40. SpDrS60/alt
  41. post-extract:
  42. mkdir ${WRKDIST}/unxgen
  43. cd ${WRKDIST}/unxgen && tar zxf ${WRKDIST}/rocs/rocs-gen.tar.gz
  44. do-install:
  45. ${INSTALL_DATA_DIR} ${PREFIX}/lib/rocrail
  46. ${INSTALL_DATA_DIR} ${PREFIX}/share/rocrail
  47. ${INSTALL_DATA_DIR} ${PREFIX}/share/rocrail/icons
  48. ${INSTALL_DATA_DIR} ${PREFIX}/share/rocrail/symbols
  49. ${INSTALL_DATA_DIR} ${PREFIX}/share/rocrail/symbols/control
  50. ${INSTALL_DATA_DIR} ${PREFIX}/share/rocrail/svg/themes
  51. ${INSTALL_DATA_DIR} ${PREFIX}/share/rocrail/images
  52. ${INSTALL_DATA_DIR} ${PREFIX}/share/rocrail/stylesheets
  53. ${INSTALL_PROGRAM} ${WRKBUILD}/unxbin/rocrail ${PREFIX}/bin
  54. ${INSTALL_PROGRAM} ${WRKBUILD}/unxbin/rocview ${PREFIX}/bin
  55. ${INSTALL_DATA} ${WRKBUILD}/unxbin/*.so ${PREFIX}/lib/rocrail
  56. ${INSTALL_DATA} ${WRKBUILD}/rocrail/rocraild.png ${PREFIX}/share/rocrail
  57. ${INSTALL_DATA} ${WRKBUILD}/rocrail/package/rocrail.xpm ${PREFIX}/share/rocrail
  58. ${INSTALL_DATA} ${WRKBUILD}/rocview/icons/* ${PREFIX}/share/rocrail/icons
  59. .for i in ${THEMES1}
  60. ${INSTALL_DATA_DIR} ${PREFIX}/share/rocrail/svg/themes/${i}
  61. ${INSTALL_DATA} ${WRKBUILD}/rocview/svg/themes/${i}/properties.xml \
  62. ${PREFIX}/share/rocrail/svg/themes/${i}/
  63. ${INSTALL_DATA} ${WRKBUILD}/rocview/svg/themes/${i}/*.svg \
  64. ${PREFIX}/share/rocrail/svg/themes/${i}/
  65. .endfor
  66. .for i in ${THEMES2}
  67. ${INSTALL_DATA_DIR} ${PREFIX}/share/rocrail/svg/themes/${i} \
  68. ${PREFIX}/share/rocrail/svg/themes/${i}
  69. ${INSTALL_DATA} ${WRKBUILD}/rocview/svg/themes/${i}/*.svg \
  70. ${PREFIX}/share/rocrail/svg/themes/${i}
  71. .endfor
  72. ${INSTALL_DATA} ${WRKBUILD}/rocrail/symbols/*.{png,gif,db,dbencryptable} ${PREFIX}/share/rocrail/symbols
  73. ${INSTALL_DATA} ${WRKBUILD}/rocrail/symbols/control/* ${PREFIX}/share/rocrail/symbols/control
  74. ${INSTALL_DATA} ${WRKBUILD}/stylesheets/* ${PREFIX}/share/rocrail/stylesheets
  75. ${INSTALL_DATA} ${WRKBUILD}/rocrail/package/images/* ${PREFIX}/share/rocrail/images
  76. ${SUBST_PROGRAM} ${FILESDIR}/rocview.sh ${PREFIX}/bin/rocview.sh
  77. .include <bsd.port.mk>