freebsd-ports/x11-toolkits/scintilla/Makefile

62 lines
1.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: scintilla
# Date created: 27 November 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
# $MCom: ports/x11-toolkits/scintilla/Makefile,v 1.3 2006/09/17 21:58:56 marcus Exp $
PORTNAME= scintilla
PORTVERSION= 1.74
CATEGORIES= x11-toolkits
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.scintilla.org/
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= scite${PORTVERSION:S/.//g}
EXTRACT_SUFX= .tgz
MAINTAINER= cyberbotx@cyberbotx.com
COMMENT= A full-featured free source code editing component for GTK+
WRKSRC= ${WRKDIR}/${PORTNAME}/gtk
USE_XLIB= yes
USE_GMAKE= yes
2006-01-26 05:25:54 +01:00
USE_ICONV= yes
MAKEFILE= makefile
USE_LDCONFIG= yes
.if defined(WITH_GTK2)
USE_GNOME= gtk20
PKGNAMESUFFIX:= -gtk2
PLIST_SUB+= GTK2="" GTK1="@comment "
.else
USE_GNOME= gtk12
MAKE_ARGS+= GTK1=yes
PLIST_SUB+= GTK2="@comment " GTK1=""
.endif
2004-04-12 06:26:27 +02:00
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
MAKE_ARGS+= PICFLAGS=-DPIC
.else
MAKE_ARGS+= PICFLAGS="-DPIC -fPIC -fpic"
2004-04-12 06:26:27 +02:00
.endif
do-install:
${MKDIR} ${PREFIX}/include/scintilla
${INSTALL_DATA} ${WRKSRC}/../include/*.h ${PREFIX}/include/scintilla
${INSTALL_PROGRAM} ${WRKSRC}/../bin/libscintilla.so.1 ${PREFIX}/lib
${LN} -sf ${PREFIX}/lib/libscintilla.so.1 ${PREFIX}/lib/libscintilla.so
${INSTALL_PROGRAM} ${WRKSRC}/../bin/libscintilla_lexers.so.1 ${PREFIX}/lib
${LN} -sf ${PREFIX}/lib/libscintilla_lexers.so.1 ${PREFIX}/lib/libscintilla_lexers.so
post-install:
.if defined(WITH_GTK2)
${TOUCH} ${PREFIX}/include/scintilla/.scintilla-gtk2
.else
${TOUCH} ${PREFIX}/include/scintilla/.scintilla-gtk1
.endif
2004-04-12 06:26:27 +02:00
.include <bsd.port.post.mk>