2011-11-15 14:13:39 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.16 2011/11/15 19:13:39 jeremy Exp $
|
2003-08-14 14:24:30 -04:00
|
|
|
|
2007-09-15 20:44:00 -04:00
|
|
|
COMMENT= source code editing component for GTK+
|
2003-08-14 14:24:30 -04:00
|
|
|
|
2011-11-15 14:13:39 -05:00
|
|
|
VERSION= 3.0.0
|
|
|
|
DISTNAME= scintilla${VERSION:S/.//g}
|
2007-01-18 05:56:27 -05:00
|
|
|
PKGNAME= scintilla-${VERSION}
|
2003-08-14 14:24:30 -04:00
|
|
|
CATEGORIES= editors x11
|
|
|
|
|
2011-11-15 14:13:39 -05:00
|
|
|
SHARED_LIBS= scintilla 8.0 \
|
|
|
|
scintilla_lexers 8.0
|
2005-12-27 07:36:50 -05:00
|
|
|
|
2003-08-14 14:24:30 -04:00
|
|
|
HOMEPAGE= http://www.scintilla.org/
|
|
|
|
|
2010-10-03 14:09:01 -04:00
|
|
|
MAINTAINER= Jeremy Evans <jeremy@openbsd.org>
|
2007-01-18 05:56:27 -05:00
|
|
|
|
2003-08-14 14:24:30 -04:00
|
|
|
# old Python license
|
2007-09-15 20:44:00 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= may not sell
|
2003-08-14 14:24:30 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2007-09-15 20:44:00 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= may not sell
|
2003-08-14 14:24:30 -04:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scintilla/}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
MAKE_FILE= makefile
|
|
|
|
MAKE_ENV= CXX='${CXX}' CXXFLAGS='${CXXFLAGS}' \
|
2011-11-15 14:13:39 -05:00
|
|
|
NO_SHARED_LIBS='${NO_SHARED_LIBS:L}' \
|
|
|
|
CC='${CC}' GTK3=1
|
2003-08-14 14:24:30 -04:00
|
|
|
|
2011-11-15 14:13:39 -05:00
|
|
|
WANTLIB= m stdc++
|
|
|
|
|
|
|
|
# Not LIB_DEPENDS as it's only shared libraries that don't link directly
|
|
|
|
# to gtk+3
|
|
|
|
BUILD_DEPENDS= x11/gtk+3
|
|
|
|
RUN_DEPENDS= x11/gtk+3
|
2007-01-18 05:56:27 -05:00
|
|
|
|
2005-12-27 07:36:50 -05:00
|
|
|
.for n v in ${SHARED_LIBS}
|
|
|
|
MAKE_ENV+= LIB$n_VERSION=${LIB$n_VERSION}
|
|
|
|
.endfor
|
|
|
|
|
2003-08-14 14:24:30 -04:00
|
|
|
WRKDIST= ${WRKDIR}/scintilla
|
|
|
|
WRKSRC= ${WRKDIST}/gtk
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
perl -pi -e 's|\x0d||' ${WRKDIST}/include/*.h ${WRKDIST}/gtk/*.cxx \
|
|
|
|
${WRKDIST}/src/*.cxx
|
|
|
|
|
2007-01-18 05:56:27 -05:00
|
|
|
pre-build:
|
|
|
|
perl -pi -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/${MAKE_FILE}
|
|
|
|
|
2003-08-14 14:24:30 -04:00
|
|
|
.include <bsd.port.mk>
|