Fix build on 8.x >= 800501

Reported by:	erwin
Feature safe:	yes
This commit is contained in:
Renato Botelho 2010-03-04 11:01:13 +00:00
parent e82bc2acb5
commit a731702f41
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=250548

View file

@ -31,14 +31,13 @@ PLIST_DIRS= %%DATADIR%%
.include <bsd.port.pre.mk>
post-patch:
.if ${OSVERSION} >= 900006
.if ( ${OSVERSION} >= 800501 && ${OSVERSION} < 900000 ) || ( ${OSVERSION} >= 900006 )
@${REINPLACE_CMD} -e '/my_alphasort/s#const void\*#const struct dirent**#g' \
${WRKSRC}/src/gtkcompletionline.cc
.else
@${REINPLACE_CMD} -e '/select_executables_only(const /s#const ##' \
${WRKSRC}/src/gtkcompletionline.cc
.endif
post-install:
.if !defined(NOPORTDOCS)