- Convert to OPTIONS

PR:		ports/70728
Submitted by:	Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
This commit is contained in:
Pav Lucistnik 2004-08-20 22:54:45 +00:00
parent 696d2fe968
commit 313948f537
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116855

View File

@ -17,10 +17,6 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= A terminal emulator for GGI
LIB_DEPENDS= ggi.2:${PORTSDIR}/graphics/libggi
.if !defined(WITHOUT_FREETYPE)
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
USE_ICONV= yes
.endif
USE_GMAKE= yes
USE_X_PREFIX= yes
@ -28,25 +24,17 @@ INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ggi=${LOCALBASE}
.if !defined(WITHOUT_FREETYPE)
CONFIGURE_ARGS+=--with-ft-prefix=${LOCALBASE}
.endif
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
pre-everything::
OPTIONS= FREETYPE "Build with Freetype support" on
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_FREETYPE)
@${ECHO_MSG} ""
@${ECHO_MSG} "ggiterm can be built without Freetype support. However, as the author says,"
@${ECHO_MSG} "'if you don't have freetype you lose much of the ggiterm reason for being,'"
@${ECHO_MSG} "so you probably don't want this. If you do, cancel now and build with:"
@${ECHO_MSG} " WITHOUT_FREETYPE=yes"
@${ECHO_MSG} ""
.else
@${ECHO_MSG} ""
@${ECHO_MSG} "You have chosen to build ggiterm without Freetype. If this wasn't your"
@${ECHO_MSG} "intention, cancel now and unset the 'WITHOUT_FREETYPE' variable."
@${ECHO_MSG} ""
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
USE_ICONV= yes
CONFIGURE_ARGS+=--with-ft-prefix=${LOCALBASE}
.endif
post-install:
@ -56,4 +44,4 @@ post-install:
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>
.include <bsd.port.post.mk>