2000-11-27 14:38:24 +01:00
|
|
|
# New ports collection makefile for: scintilla
|
|
|
|
# Date created: 27 November 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2006-10-14 10:54:54 +02:00
|
|
|
# $MCom: ports/x11-toolkits/scintilla/Makefile,v 1.3 2006/09/17 21:58:56 marcus Exp $
|
2000-11-27 14:38:24 +01:00
|
|
|
|
|
|
|
PORTNAME= scintilla
|
2007-08-10 22:11:43 +02:00
|
|
|
PORTVERSION= 1.74
|
2000-11-27 14:38:24 +01:00
|
|
|
CATEGORIES= x11-toolkits
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
|
|
http://www.scintilla.org/
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2000-11-27 17:55:35 +01:00
|
|
|
DISTNAME= scite${PORTVERSION:S/.//g}
|
2000-11-27 14:38:24 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2007-08-10 22:11:43 +02:00
|
|
|
MAINTAINER= cyberbotx@cyberbotx.com
|
2003-02-25 05:45:35 +01:00
|
|
|
COMMENT= A full-featured free source code editing component for GTK+
|
2000-11-27 14:38:24 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}/gtk
|
|
|
|
|
2006-10-14 10:54:54 +02:00
|
|
|
USE_XLIB= yes
|
2000-11-27 14:38:24 +01:00
|
|
|
USE_GMAKE= yes
|
2006-01-26 05:25:54 +01:00
|
|
|
USE_ICONV= yes
|
2000-11-27 14:38:24 +01:00
|
|
|
MAKEFILE= makefile
|
2006-09-18 00:06:47 +02:00
|
|
|
USE_LDCONFIG= yes
|
2003-09-29 21:48:33 +02:00
|
|
|
|
|
|
|
.if defined(WITH_GTK2)
|
|
|
|
USE_GNOME= gtk20
|
2006-09-18 00:06:47 +02:00
|
|
|
PKGNAMESUFFIX:= -gtk2
|
2007-08-10 22:11:43 +02:00
|
|
|
PLIST_SUB+= GTK2="" GTK1="@comment "
|
2003-09-29 21:48:33 +02:00
|
|
|
.else
|
|
|
|
USE_GNOME= gtk12
|
2005-02-03 21:05:48 +01:00
|
|
|
MAKE_ARGS+= GTK1=yes
|
2007-08-10 22:11:43 +02:00
|
|
|
PLIST_SUB+= GTK2="@comment " GTK1=""
|
2003-09-29 21:48:33 +02:00
|
|
|
.endif
|
|
|
|
|
2004-04-12 06:26:27 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
2005-02-03 21:05:48 +01:00
|
|
|
MAKE_ARGS+= PICFLAGS=-DPIC
|
|
|
|
.else
|
2005-10-16 08:45:04 +02:00
|
|
|
MAKE_ARGS+= PICFLAGS="-DPIC -fPIC -fpic"
|
2004-04-12 06:26:27 +02:00
|
|
|
.endif
|
|
|
|
|
2000-11-27 14:38:24 +01:00
|
|
|
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
|
|
|
|
|
2007-08-10 22:11:43 +02:00
|
|
|
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>
|