aboutsummaryrefslogtreecommitdiffstats
path: root/editors/scite/Makefile
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-08-21 02:44:42 +0800
committerpav <pav@FreeBSD.org>2004-08-21 02:44:42 +0800
commit8ddca0ef9fe3bc7f7477b5c25a37a59396514c13 (patch)
tree81ac94aaf88c24a73c5d55b5030664939d8c1d23 /editors/scite/Makefile
parentd7efb59c0d8638a36211503649f9a6205dfa192d (diff)
downloadfreebsd-ports-graphics-8ddca0ef9fe3bc7f7477b5c25a37a59396514c13.tar.gz
freebsd-ports-graphics-8ddca0ef9fe3bc7f7477b5c25a37a59396514c13.tar.zst
freebsd-ports-graphics-8ddca0ef9fe3bc7f7477b5c25a37a59396514c13.zip
- Convert to OPTIONS
PR: ports/70720 Submitted by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
Diffstat (limited to 'editors/scite/Makefile')
-rw-r--r--editors/scite/Makefile16
1 files changed, 5 insertions, 11 deletions
diff --git a/editors/scite/Makefile b/editors/scite/Makefile
index ee84c3c8312..07163eba470 100644
--- a/editors/scite/Makefile
+++ b/editors/scite/Makefile
@@ -27,6 +27,10 @@ USE_GNOME= gnomehier
MAKEFILE= makefile
MAKE_ENV= CC="${CXX}"
+OPTIONS= GTK2 "Turns on GTK-2.x support (Default is GTK-1)" off
+
+.include <bsd.port.pre.mk>
+
.if defined(WITH_GTK2)
USE_GNOME+= gtk20
PKGNAMESUFFIX= -gtk2
@@ -37,16 +41,6 @@ MAKE_ARGS= GTK1=yes
MAN1= scite.1
-.if !defined(WITH_GTK2)
-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} ""
-.endif
-
post-patch:
@cd ${WRKSRC} && ${MV} SciTE.desktop SciTE.desktop.pre_tr \
&& ${TR} -d "\r" < SciTE.desktop.pre_tr > SciTE.desktop
@@ -63,4 +57,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/../doc/*.png ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/../src/*.properties ${DATADIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>