992ff5cebf
libscintilla no longer links directly against GTK, switch from LIB_DEPENDS to BUILD_DEPENDS (for includes) and RUN_DEPENDS (since anything linking against scintilla also needs to link against GTK+3), thanks to ajacoutot@ for pointing that out. Respect CC environment variable when building. OK ajacoutot@ on an earlier version
56 lines
1.2 KiB
Makefile
56 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.16 2011/11/15 19:13:39 jeremy Exp $
|
|
|
|
COMMENT= source code editing component for GTK+
|
|
|
|
VERSION= 3.0.0
|
|
DISTNAME= scintilla${VERSION:S/.//g}
|
|
PKGNAME= scintilla-${VERSION}
|
|
CATEGORIES= editors x11
|
|
|
|
SHARED_LIBS= scintilla 8.0 \
|
|
scintilla_lexers 8.0
|
|
|
|
HOMEPAGE= http://www.scintilla.org/
|
|
|
|
MAINTAINER= Jeremy Evans <jeremy@openbsd.org>
|
|
|
|
# old Python license
|
|
PERMIT_PACKAGE_CDROM= may not sell
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= may not sell
|
|
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}' \
|
|
NO_SHARED_LIBS='${NO_SHARED_LIBS:L}' \
|
|
CC='${CC}' GTK3=1
|
|
|
|
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
|
|
|
|
.for n v in ${SHARED_LIBS}
|
|
MAKE_ENV+= LIB$n_VERSION=${LIB$n_VERSION}
|
|
.endfor
|
|
|
|
WRKDIST= ${WRKDIR}/scintilla
|
|
WRKSRC= ${WRKDIST}/gtk
|
|
|
|
post-extract:
|
|
perl -pi -e 's|\x0d||' ${WRKDIST}/include/*.h ${WRKDIST}/gtk/*.cxx \
|
|
${WRKDIST}/src/*.cxx
|
|
|
|
pre-build:
|
|
perl -pi -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/${MAKE_FILE}
|
|
|
|
.include <bsd.port.mk>
|