Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # $OpenBSD: Makefile,v 1.58 2017/04/10 11:46:33 sthen Exp $
  2. COMMENT= DTP program
  3. DISTNAME= scribus-1.4.5
  4. CATEGORIES= print
  5. HOMEPAGE= http://www.scribus.net/
  6. # GPLv2+
  7. PERMIT_PACKAGE_CDROM= Yes
  8. WANTLIB += QtGui QtNetwork QtXml c cairo cups execinfo
  9. WANTLIB += fontconfig freetype hyphen jpeg lcms2 m podofo pthread
  10. WANTLIB += ${LIBCXX} tiff util xml2 z ${MODPY_WANTLIB}
  11. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scribus/}
  12. EXTRACT_SUFX= .tar.bz2
  13. MODULES= x11/qt4 \
  14. devel/cmake \
  15. lang/python
  16. MODPY_RUNDEP= No
  17. BUILD_DEPENDS= devel/boost
  18. RUN_DEPENDS= devel/desktop-file-utils \
  19. graphics/py-Pillow \
  20. print/ghostscript/gnu \
  21. textproc/antiword \
  22. misc/shared-mime-info \
  23. ${MODPY_TKINTER_DEPENDS}
  24. LIB_DEPENDS= devel/libexecinfo \
  25. graphics/lcms2 \
  26. graphics/tiff \
  27. print/cups,-libs \
  28. textproc/hyphen \
  29. textproc/libxml \
  30. textproc/podofo \
  31. graphics/jpeg \
  32. ${MODPY_LIB_DEPENDS}
  33. FLAVORS= debug
  34. FLAVOR?=
  35. CONFIGURE_ARGS += -DCMAKE_SKIP_RPATH:BOOL=1 \
  36. -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
  37. -DCMAKE_C_FLAGS="${CFLAGS}"
  38. .if ${FLAVOR:Mdebug}
  39. CONFIGURE_ARGS+=-DWANT_DEBUG=1
  40. .endif
  41. post-install:
  42. @${INSTALL_DATA_DIR} ${PREFIX}/share/applications
  43. @${INSTALL_DATA} ${WRKSRC}/scribus.desktop \
  44. ${PREFIX}/share/applications/scribus.desktop
  45. .include <bsd.port.mk>