# Created by: Adam Weinberger # $FreeBSD$ PORTNAME= gmrun PORTVERSION= 0.9.2 PORTREVISION= 10 CATEGORIES= x11 MASTER_SITES= SF MAINTAINER= garga@FreeBSD.org COMMENT= Customizable program to run programs, with tab-completion LIB_DEPENDS= libpopt.so:${PORTSDIR}/devel/popt OPTIONS_DEFINE= DOCS USES= gmake pkgconfig USE_GNOME= gtk20 GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ARGS= --disable-stlport PORTDOCS= README PLIST_FILES= bin/gmrun %%DATADIR%%/gmrunrc .include post-patch: .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: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include