Use pkg_info to check if scintilla built with GTK+2 support rather than

check on if .scintilla-gtk1 exists. It solves problem on clean system.
This commit is contained in:
Jeremy Messenger 2007-08-22 03:23:59 +00:00
parent 4ef6513813
commit 364a31e9b2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198095

View file

@ -22,11 +22,11 @@ USE_GMAKE= yes
USE_GNOME= gtk12
USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
.if !exists(${LOCALBASE}/include/scintilla/.scintilla-gtk1)
IGNORE= requires x11-toolkits/scintilla to be built with GTK+1
.endif
pre-configure:
@if [ -n "`${PKG_INFO} -E 'scintilla-gtk2-[0-9]*' 2> /dev/null`" ]; then \
${ECHO_CMD} "${PKGNAME}: requires x11-toolkits/scintilla to be built with GTK+1."; \
${FALSE}; \
fi
do-install:
${MKDIR} ${PREFIX}/include/scintilla
@ -35,4 +35,4 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/libgtkscintilla.so.0 ${PREFIX}/lib
${LN} -sf ${PREFIX}/lib/libgtkscintilla.so.0 ${PREFIX}/lib/libgtkscintilla.so
.include <bsd.port.post.mk>
.include <bsd.port.mk>