freebsd-ports/x11-toolkits/scintilla/Makefile
Guido Falsi a684ab843e - Update to 3.3.9
- Convert to staging

PR:		ports/186175
Submitted by:	me
Approved by:	Naram Qashat <cyberbotx@cyberbotx.com> (maintainer)
2014-03-05 01:23:16 +00:00

52 lines
1.3 KiB
Makefile

# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= scintilla
PORTVERSION= 3.3.9
CATEGORIES= x11-toolkits
MASTER_SITES= SF/scintilla/SciTE/${PORTVERSION}
DISTNAME= scite${PORTVERSION:S/.//g}
EXTRACT_SUFX= .tgz
MAINTAINER= cyberbotx@cyberbotx.com
COMMENT= Full-featured free source code editing component for GTK+
WRKSRC= ${WRKDIR}/${PORTNAME}/gtk
USES= gmake iconv pkgconfig
MAKEFILE= makefile
USE_LDCONFIG= yes
USE_GNOME= gtk20
MAKE_ENV+= LDFLAGS="${LDFLAGS}"
CFLAGS+= -DPIC ${PICFLAG}
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
PICFLAG?= -fPIC
.else
PICFLAG?= -fpic
.endif
CCISCLANG!= ${CC} --version
.if empty(CCISCLANG:M*clang*)
CPPSTDRE= -e 's|--std=c++0x||'
.else
CPPSTDRE=
.endif
post-patch:
@${REINPLACE_CMD} -e 's|[(]CC[)]|(CXX)|g ; s|[(]CCOMP[)]|(CC)|g' \
${CPPSTDRE} \
${WRKSRC}/makefile
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/scintilla
${INSTALL_DATA} ${WRKSRC}/../include/*.h ${STAGEDIR}${PREFIX}/include/scintilla
${INSTALL_PROGRAM} ${WRKSRC}/../bin/libscintilla.so.2 ${STAGEDIR}${PREFIX}/lib
(cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf libscintilla.so.2 libscintilla.so)
${INSTALL_PROGRAM} ${WRKSRC}/../bin/libscintilla_lexers.so.2 ${STAGEDIR}${PREFIX}/lib
(cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf libscintilla_lexers.so.2 libscintilla_lexers.so)
.include <bsd.port.post.mk>