Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # $OpenBSD: Makefile,v 1.22 2017/05/02 20:48:21 fcambus Exp $
  2. COMMENT= source code editing component for GTK+
  3. VERSION= 3.5.2
  4. DISTNAME= scintilla${VERSION:S/.//g}
  5. PKGNAME= scintilla-${VERSION}
  6. CATEGORIES= editors x11
  7. REVISION= 1
  8. SHARED_LIBS= scintilla 9.0 \
  9. scintilla_lexers 9.0
  10. HOMEPAGE= http://www.scintilla.org/
  11. # old Python license
  12. PERMIT_PACKAGE_CDROM= may not sell
  13. PERMIT_PACKAGE_FTP= Yes
  14. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scintilla/}
  15. EXTRACT_SUFX= .tgz
  16. PATCHORIG= .orig.port
  17. USE_GMAKE= Yes
  18. NO_TEST= Yes
  19. MAKE_FILE= makefile
  20. MAKE_ENV= CXX='${CXX}' CXXFLAGS='${CXXFLAGS}' \
  21. CC='${CC}' GTK3=1
  22. WANTLIB= m ${LIBCXX}
  23. # Not LIB_DEPENDS as it's only shared libraries that don't link directly
  24. # to gtk+3
  25. BUILD_DEPENDS= x11/gtk+3
  26. RUN_DEPENDS= x11/gtk+3
  27. .for n v in ${SHARED_LIBS}
  28. MAKE_ENV+= LIB$n_VERSION=${LIB$n_VERSION}
  29. .endfor
  30. WRKDIST= ${WRKDIR}/scintilla
  31. WRKSRC= ${WRKDIST}/gtk
  32. post-extract:
  33. perl -pi -e 's|\x0d||' ${WRKDIST}/include/*.h ${WRKDIST}/gtk/*.cxx \
  34. ${WRKDIST}/src/*.cxx
  35. pre-build:
  36. perl -pi -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/${MAKE_FILE}
  37. .include <bsd.port.mk>