Makefile 1000 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # $OpenBSD: Makefile,v 1.25 2017/04/10 11:45:27 sthen Exp $
  2. COMMENT= flexible and small GTK+ editor
  3. VERSION= 3.5.2
  4. DISTNAME= scite${VERSION:S/.//g}
  5. PKGNAME= scite-${VERSION}
  6. CATEGORIES= editors x11
  7. HOMEPAGE= http://www.scintilla.org/SciTE.html
  8. # old Python license
  9. PERMIT_PACKAGE_CDROM= may not sell
  10. PERMIT_PACKAGE_FTP= Yes
  11. WANTLIB += c cairo gdk-3 gdk_pixbuf-2.0 glib-2.0 gobject-2.0 gtk-3
  12. WANTLIB += pango-1.0 pangocairo-1.0 pthread scintilla scintilla_lexers ${LIBCXX}
  13. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scintilla/}
  14. EXTRACT_SUFX= .tgz
  15. LIB_DEPENDS= x11/gtk+3 \
  16. editors/scintilla
  17. USE_GMAKE= Yes
  18. NO_TEST= Yes
  19. WRKDIST= ${WRKDIR}/scite
  20. WRKSRC= ${WRKDIST}/gtk
  21. MAKE_FILE= makefile
  22. MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
  23. CC="${CC}" CFLAGS="${CFLAGS}" GTK3=1
  24. post-extract:
  25. perl -pi -e 's|\x0d||' ${WRKSRC}/*.cxx ${WRKDIST}/src/*.cxx
  26. pre-build:
  27. perl -pi -e 's|__DOCDIR__|${LOCALBASE}/share/doc/scite|' \
  28. ${WRKDIST}/src/*.properties
  29. .include <bsd.port.mk>