mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
3de6bd722e
PR: ports/173082, ports/173083 Submitted by: Naram Qashat <cyberbotx@cyberbotx.com> (maintainer) Feature safe: yes
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= scintilla
|
|
PORTVERSION= 3.2.3
|
|
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
|
|
|
|
USE_GMAKE= yes
|
|
USE_ICONV= yes
|
|
MAKEFILE= makefile
|
|
USE_LDCONFIG= yes
|
|
USE_GNOME= gtk20
|
|
MAKE_JOBS_SAFE= yes
|
|
MAKE_ENV+= LDFLAGS="${LDFLAGS}"
|
|
CFLAGS+= -DPIC ${PICFLAG}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
PICFLAG?= -fPIC
|
|
.else
|
|
PICFLAG?= -fpic
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|[(]CC[)]|(CXX)|g ; s|[(]CCOMP[)]|(CC)|g' \
|
|
${WRKSRC}/makefile
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/include/scintilla
|
|
${INSTALL_DATA} ${WRKSRC}/../include/*.h ${PREFIX}/include/scintilla
|
|
${INSTALL_PROGRAM} ${WRKSRC}/../bin/libscintilla.so.2 ${PREFIX}/lib
|
|
${LN} -sf ${PREFIX}/lib/libscintilla.so.2 ${PREFIX}/lib/libscintilla.so
|
|
${INSTALL_PROGRAM} ${WRKSRC}/../bin/libscintilla_lexers.so.2 ${PREFIX}/lib
|
|
${LN} -sf ${PREFIX}/lib/libscintilla_lexers.so.2 ${PREFIX}/lib/libscintilla_lexers.so
|
|
|
|
.include <bsd.port.post.mk>
|