Makefile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # $OpenBSD: Makefile,v 1.61 2017/05/31 08:08:16 espie Exp $
  2. COMMENT = SVG vector drawing application
  3. DISTNAME = inkscape-0.92.1
  4. CATEGORIES = graphics
  5. MASTER_SITES = https://media.inkscape.org/dl/resources/file/
  6. HOMEPAGE = https://www.inkscape.org/
  7. EXTRACT_SUFX = .tar.bz2
  8. DISTFILES = ${DISTNAME}${EXTRACT_SUFX}{${DISTNAME}.tar_XlpI7qT.bz2}
  9. MAINTAINER = Rafael Sadowski <rafael@sizeofvoid.org>
  10. # GPLv2 and LGPLv2.1
  11. PERMIT_PACKAGE_CDROM = Yes
  12. WANTLIB += ICE Magick++-6.Q16 MagickCore-6.Q16 MagickWand-6.Q16
  13. WANTLIB += SM X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
  14. WANTLIB += Xrandr Xrender Xt aspell atk-1.0 atkmm-1.6 bz2 c cairo
  15. WANTLIB += cairomm-1.0 djvulibre enchant exif expat ffi fftw3
  16. WANTLIB += fontconfig freetype gc gdk-x11-2.0 gdk_pixbuf-2.0 gdkmm-2.4
  17. WANTLIB += gio-2.0 giomm-2.4 glib-2.0 glibmm-2.4 gmodule-2.0 gobject-2.0
  18. WANTLIB += graphite2 gsl gslcblas gthread-2.0 gtk-x11-2.0 gtkmm-2.4
  19. WANTLIB += gtkspell harfbuzz iconv intl jbig jpeg lcms2 lzma m
  20. WANTLIB += openjp2 pango-1.0 pangocairo-1.0 pangoft2-1.0 pangomm-1.4
  21. WANTLIB += pcre pixman-1 png poppler poppler-glib popt potrace
  22. WANTLIB += pthread pthread-stubs sigc-2.0 ${LIBCXX} tiff webp xcb
  23. WANTLIB += xcb-render xcb-shm xml2 xslt ${LIBECXX}
  24. MODULES= textproc/intltool \
  25. lang/python \
  26. lang/ruby
  27. COMPILER = gcc
  28. # We are just substituting paths at build time
  29. MODPY_BUILDDEP = No
  30. MODRUBY_BUILDDEP = No
  31. # There are no (enabled) ruby extensions yet, but users may like
  32. # to write their own extensions. Add Ruby as a soft dependency.
  33. # Note that Python is already pulled in indirectly by py-lxml.
  34. MODRUBY_RUNDEP = No
  35. BUILD_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS} \
  36. ${MODGNU_AUTOMAKE_DEPENDS} \
  37. devel/libtool \
  38. devel/boost
  39. LIB_DEPENDS = devel/boehm-gc \
  40. devel/gsl \
  41. devel/popt \
  42. devel/pango \
  43. graphics/ImageMagick \
  44. graphics/lcms2 \
  45. graphics/libexif \
  46. graphics/png \
  47. graphics/potrace \
  48. print/poppler \
  49. textproc/aspell/core \
  50. textproc/gtkspell \
  51. textproc/libxslt \
  52. x11/gtk2mm>=2.24.4
  53. RUN_DEPENDS = devel/desktop-file-utils \
  54. textproc/py-lxml \
  55. x11/gtk+3,-guic
  56. USE_GMAKE = Yes
  57. CONFIGURE_STYLE = gnu
  58. AUTOCONF_VERSION = 2.69
  59. AUTOMAKE_VERSION = 1.11
  60. CONFIGURE_ARGS = -without-gnome-vfs
  61. CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include/ImageMagick \
  62. -I${LOCALBASE}/include -I${X11BASE}/include" \
  63. LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
  64. # XXX todo
  65. NO_TEST = Yes
  66. # As discussed on the ports mailing list, remove internationalised manual
  67. # pages, as our mandoc implementation does not yet deal with them properly.
  68. RM_MANS = man/el man/fr man/ja man/man1/inkscape.*.1 \
  69. man/sk man/zh_TW man/de
  70. SUBST_VARS += RUBY MODRUBY_REV
  71. pre-configure:
  72. find ${WRKDIST} -name i18n.py \
  73. -exec sed -i 's,python,${MODPY_BIN},' {} +;
  74. ${SUBST_CMD} ${WRKSRC}/src/extension/implementation/script.cpp \
  75. ${WRKSRC}/src/main.cpp
  76. cd ${WRKSRC} && AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
  77. AUTOCONF_VERSION=${AUTOCONF_VERSION} ./autogen.sh
  78. post-install:
  79. .for i in ${RM_MANS}
  80. rm -Rf ${PREFIX}/${i}
  81. .endfor
  82. .include <bsd.port.mk>