summaryrefslogtreecommitdiff
path: root/editors/scite
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-10-02 10:13:58 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-10-02 10:13:58 +0000
commitae7f3ab0fca7644fca2b33cbfea3a44f37c58647 (patch)
tree0e60bdfbd2636dbf0a27928e257c46bf0bd3d103 /editors/scite
parent- Update to version 9.2 (diff)
- Fix build on -current
PR: 57458 Submitted by: Rui Lopes <rui@ruilopes.om>
Notes
Notes: svn path=/head/; revision=90028
Diffstat (limited to 'editors/scite')
-rw-r--r--editors/scite/Makefile20
-rw-r--r--editors/scite/pkg-plist2
2 files changed, 21 insertions, 1 deletions
diff --git a/editors/scite/Makefile b/editors/scite/Makefile
index 97ca23dd82cb..18119ddbbada 100644
--- a/editors/scite/Makefile
+++ b/editors/scite/Makefile
@@ -24,20 +24,38 @@ WRKSRC= ${WRKDIR}/${PORTNAME}/gtk
USE_X_PREFIX= yes
USE_GMAKE= yes
MAKEFILE= makefile
+USE_REINPLACE= yes
+PLIST_SUB= GNOME_COMMENT=${GNOME_COMMENT}
-.if defined(WITH_GTK2)
+.if defined(WITH_GNOME)
+USE_GNOME= gtk20 gnomeprefix
+PKGNAMESUFFIX= -gnome
+GNOME_COMMENT= ''
+.elif defined(WITH_GTK2)
USE_GNOME= gtk20
PKGNAMESUFFIX= -gtk2
.else
USE_GNOME= gtk12
MAKE_ARGS= GTK1=yes
.endif
+GNOME_COMMENT?= '@comment '
+
+post-patch:
+ @${REINPLACE_CMD} -e 's,$$(CC),$$(CXX),g' ${WRKSRC}/makefile
+.if defined(WITH_GNOME)
+ @${TR} -d "\r" < ${WRKSRC}/SciTE.desktop > ${WRKDIR}/SciTE.desktop
+ @${ECHO_CMD} 'Categories=Application;Development;' >> ${WRKDIR}/SciTE.desktop
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/../bin/SciTE ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/../doc/scite.1 ${MANPREFIX}/man/man1
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/../src/*.properties ${DATADIR}
+.if defined(WITH_GNOME)
+ ${INSTALL_DATA} ${WRKDIR}/SciTE.desktop ${PREFIX}/share/gnome/applications
+ ${INSTALL_DATA} ${WRKSRC}/Sci48M.png ${PREFIX}/share/gnome/pixmaps
+.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/../doc/*.html ${DOCSDIR}
diff --git a/editors/scite/pkg-plist b/editors/scite/pkg-plist
index 4c29ba12bae2..1459d96ba257 100644
--- a/editors/scite/pkg-plist
+++ b/editors/scite/pkg-plist
@@ -1,4 +1,6 @@
bin/SciTE
+%%GNOME_COMMENT%%share/gnome/applications/SciTE.desktop
+%%GNOME_COMMENT%%share/gnome/pixmaps/Sci48M.png
%%PORTDOCS%%%%DOCSDIR%%/PrintHi.png
%%PORTDOCS%%%%DOCSDIR%%/SciBreak2.jpg
%%PORTDOCS%%%%DOCSDIR%%/SciTE.html