Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # $OpenBSD: Makefile,v 1.10 2017/04/10 11:46:21 sthen Exp $
  2. COMMENT = extensible drawing editor
  3. V = 7.1.2
  4. SUBST_VARS += V
  5. DISTNAME = ipe-${V}-src
  6. PKGNAME = ipe-${V}
  7. REVISION = 4
  8. # their libraries would be installed as libxxx.so.${V}, overide this.
  9. SHLIB_VERSION = 0.0
  10. SHARED_LIBS += ipe ${SHLIB_VERSION}
  11. SHARED_LIBS += ipecairo ${SHLIB_VERSION}
  12. SHARED_LIBS += ipecanvas ${SHLIB_VERSION}
  13. SHARED_LIBS += ipelua ${SHLIB_VERSION}
  14. SHARED_LIBS += ipeui ${SHLIB_VERSION}
  15. CATEGORIES = graphics math
  16. HOMEPAGE = http://ipe7.sourceforge.net/
  17. MAINTAINER = Edd Barrett <edd@openbsd.org>
  18. # GPLv3+
  19. PERMIT_PACKAGE_CDROM = Yes
  20. WANTLIB += GL QtGui X11 Xrender c cairo expat fontconfig freetype
  21. WANTLIB += glib-2.0 gobject-2.0 ${MODLUA_WANTLIB} m pixman-1 png
  22. WANTLIB += pthread pthread-stubs ${LIBCXX} xcb xcb-render xcb-shm
  23. WANTLIB += z
  24. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=ipe7/}
  25. # Dependencies
  26. MODULES = lang/lua \
  27. x11/qt4 \
  28. devel/gettext
  29. LIB_DEPENDS = ${MODLUA_LIB_DEPENDS} \
  30. ${MODQT4_LIB_DEPENDS}
  31. RUN_DEPENDS = print/texlive/base \
  32. x11/xvkbd
  33. MAKE_FLAGS += CXX="${CXX}" \
  34. IPEPREFIX=${PREFIX} \
  35. IPE_USE_ICONV=-DIPE_USE_ICONV \
  36. ICONV_CFLAGS=-I${LOCALBASE}/include \
  37. ICONV_LIBS="-L${LOCALBASE}/lib -liconv" \
  38. SHLIB_VERSION=${SHLIB_VERSION}
  39. MAKE_ENV += PKG_CONFIG_PATH=${LOCALBASE}/lib/qt4/pkgconfig
  40. FAKE_FLAGS += INSTALL_ROOT=${WRKINST} \
  41. SHLIB_VERSION=${SHLIB_VERSION} \
  42. IPEMANDIR=${PREFIX}/man/man1 \
  43. IPEDOCDIR=${PREFIX}/share/doc/ipe
  44. USE_GMAKE = Yes
  45. NO_TEST = Yes
  46. WRKDIST = ${WRKDIR}/${PKGNAME}
  47. WRKSRC = ${WRKDIST}/src
  48. post-install:
  49. sed -i "s,/usr/share/,${LOCALBASE}/share/," \
  50. ${WRKDIST}/fontmaps/texlive-fontmap.xml
  51. ${INSTALL_DATA} -c ${WRKDIST}/fontmaps/texlive-fontmap.xml \
  52. ${PREFIX}/share/ipe/7.1.2/fontmap.xml
  53. .include <bsd.port.mk>