1ae97179d7
doesn't appear to use gettext, so remove the gettext module. Respect CC and CFLAGS when building. OK ajacoutot@ on an earlier version
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.22 2011/11/15 19:17:09 jeremy Exp $
|
|
|
|
COMMENT= flexible and small GTK+ editor
|
|
|
|
VERSION= 3.0.0
|
|
DISTNAME= scite${VERSION:S/.//g}
|
|
PKGNAME= scite-${VERSION}
|
|
CATEGORIES= editors x11
|
|
|
|
HOMEPAGE= http://www.scintilla.org/SciTE.html
|
|
|
|
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
|
|
|
|
WANTLIB += c cairo gdk-3 gdk_pixbuf-2.0 glib-2.0 gobject-2.0 gthread-2.0
|
|
WANTLIB += gtk-3 pthread scintilla scintilla_lexers stdc++
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scintilla/}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
LIB_DEPENDS= x11/gtk+3 \
|
|
editors/scintilla
|
|
|
|
USE_GMAKE= Yes
|
|
NO_REGRESS= Yes
|
|
WRKDIST= ${WRKDIR}/scite
|
|
WRKSRC= ${WRKDIST}/gtk
|
|
MAKE_FILE= makefile
|
|
MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
|
CC="${CC}" CFLAGS="${CFLAGS}" GTK3=1
|
|
|
|
post-extract:
|
|
perl -pi -e 's|\x0d||' ${WRKSRC}/*.cxx ${WRKDIST}/src/*.cxx
|
|
|
|
pre-build:
|
|
perl -pi -e 's|__DOCDIR__|${LOCALBASE}/share/doc/scite|' \
|
|
${WRKDIST}/src/*.properties
|
|
|
|
.include <bsd.port.mk>
|