summaryrefslogtreecommitdiffstats
path: root/editors/glimmer/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'editors/glimmer/Makefile')
-rw-r--r--editors/glimmer/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/editors/glimmer/Makefile b/editors/glimmer/Makefile
new file mode 100644
index 000000000..bc357052a
--- /dev/null
+++ b/editors/glimmer/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: glimmer
+# Date created: 1 August 2000
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= glimmer
+PORTVERSION= 1.2.1
+PORTREVISION= 5
+CATEGORIES= editors gnome python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= A full featured code editor for GNOME with many advanced features
+
+BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-1.2/_gtkmodule.so:${PORTSDIR}/x11-toolkits/py-gtk
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-1.2/_gtkmodule.so:${PORTSDIR}/x11-toolkits/py-gtk
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+USE_X_PREFIX= yes
+USE_PYTHON= yes
+USE_GMAKE= yes
+USE_GNOME= gnomeprefix gnomehack gnomelibs gnomeprint gnomevfs \
+ gnomeprefix
+USE_GETTEXT= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --enable-regex
+.if exists(/usr/lib/libcrypto.a)
+PYTHON_LIBS= -lssl -lcrypto
+.endif
+PYTHON_LIBS+= -lutil -lreadline -lcrypt -lpython
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 502104
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I/usr/include/gnu" \
+ LIBS="-L${LOCALBASE}/lib -lgnuregex"
+.else
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -D_REGEX_H_ -D_REGEX_H" \
+ LIBS="-L${LOCALBASE}/lib -lgnuregex"
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpython|${PYTHON_LIBS}|g' ${WRKSRC}/configure
+.if ${OSVERSION} >= 502104
+ @${REINPLACE_CMD} -e 's|gnuregex\.h|regex.h|' \
+ ${WRKSRC}/src/gtkextext/gtkextext.h
+.endif
+
+.include <bsd.port.post.mk>