diff options
author | oliver <oliver@FreeBSD.org> | 2003-10-04 14:29:18 +0000 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2003-10-04 14:29:18 +0000 |
commit | 6224c801c6b20153ea7e2f16dc8b8d27645a6307 (patch) | |
tree | d33fd2109bf0ee2373af21087cd034e108609fe0 /editors/scite | |
parent | 556a54a61d39d9ca97384f1b0937067461110ac3 (diff) | |
download | FreeBSD-ports-6224c801c6b20153ea7e2f16dc8b8d27645a6307.zip FreeBSD-ports-6224c801c6b20153ea7e2f16dc8b8d27645a6307.tar.gz |
use USE_GNOME=gnomehier by default
Add a message to make sure that GTK-2.x support requires
x11-toolkit/scintilla to be build with GTK-2.x support
PR: ports/57532
Submitted By: KATO Tsuguru <tkato@prontomail.com>
Diffstat (limited to 'editors/scite')
-rw-r--r-- | editors/scite/Makefile | 38 | ||||
-rw-r--r-- | editors/scite/pkg-plist | 4 |
2 files changed, 21 insertions, 21 deletions
diff --git a/editors/scite/Makefile b/editors/scite/Makefile index 18119dd..b6185af 100644 --- a/editors/scite/Makefile +++ b/editors/scite/Makefile @@ -7,6 +7,7 @@ PORTNAME= scite PORTVERSION= 1.55 +PORTREVISION= 1 CATEGORIES= editors gnome MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://www.scintilla.org/ @@ -23,39 +24,38 @@ WRKSRC= ${WRKDIR}/${PORTNAME}/gtk USE_X_PREFIX= yes USE_GMAKE= yes +USE_GNOME= gnomehier MAKEFILE= makefile -USE_REINPLACE= yes -PLIST_SUB= GNOME_COMMENT=${GNOME_COMMENT} +MAKE_ENV= CC="${CXX}" -.if defined(WITH_GNOME) -USE_GNOME= gtk20 gnomeprefix -PKGNAMESUFFIX= -gnome -GNOME_COMMENT= '' -.elif defined(WITH_GTK2) -USE_GNOME= gtk20 +.if defined(WITH_GTK2) +USE_GNOME+= gtk20 PKGNAMESUFFIX= -gtk2 .else -USE_GNOME= gtk12 +USE_GNOME+= gtk12 MAKE_ARGS= GTK1=yes .endif -GNOME_COMMENT?= '@comment ' + +pre-everything:: + @${ECHO_MSG} "" + @${ECHO_MSG} "SciTE has the following tunable option(s):" + @${ECHO_MSG} " WITH_GTK2=yes Turns on GTK-2.x support" + @${ECHO_MSG} " (unavailable if x11-toolkits/scintilla has been" + @${ECHO_MSG} " built with GTK-1.x support)" + @${ECHO_MSG} "" 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 + @cd ${WRKSRC} && ${MV} SciTE.desktop SciTE.desktop.pre_tr \ + && ${TR} -d "\r" < SciTE.desktop.pre_tr > SciTE.desktop + @${ECHO_CMD} 'Categories=Application;Development;' >> ${WRKSRC}/SciTE.desktop do-install: ${INSTALL_PROGRAM} ${WRKSRC}/../bin/SciTE ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/../doc/scite.1 ${MANPREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/SciTE.desktop ${PREFIX}/share/gnome/applications + ${INSTALL_DATA} ${WRKSRC}/Sci48M.png ${PREFIX}/share/gnome/pixmaps @${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 1459d96..6530f3c 100644 --- a/editors/scite/pkg-plist +++ b/editors/scite/pkg-plist @@ -1,6 +1,4 @@ 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 @@ -16,6 +14,8 @@ bin/SciTE %%PORTDOCS%%%%DOCSDIR%%/SciTETranslation.html %%PORTDOCS%%%%DOCSDIR%%/SciTEWord.jpg %%PORTDOCS%%%%DOCSDIR%%/demo.png +share/gnome/applications/SciTE.desktop +share/gnome/pixmaps/Sci48M.png %%DATADIR%%/Embedded.properties %%DATADIR%%/SciTE.properties %%DATADIR%%/SciTEGlobal.properties |