# $NetBSD: Makefile,v 1.39 2008/10/09 09:45:43 wiz Exp $ # DISTNAME= surfraw-2.2.3 CATEGORIES= www MASTER_SITES= http://surfraw.alioth.debian.org/dist/ MAINTAINER= wiz@NetBSD.org HOMEPAGE= http://surfraw.alioth.debian.org/ COMMENT= Shell Users' Revolutionary Front Rage Against the Web CONFLICTS+= surfaw-[0-9]* GNU_CONFIGURE= YES CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} CONFIGURE_ARGS+= --disable-sr USE_TOOLS+= gmake perl sed REPLACE_PERL+= surfraw-update-path.IN opensearch-discover \ opensearch-genquery DOCDIR= ${PREFIX}/share/doc/surfraw EGDIR= ${PREFIX}/share/examples/surfraw INSTALLATION_DIRS= ${DOCDIR} CONF_FILES= ${EGDIR}/surfraw.conf ${PKG_SYSCONFDIR}/surfraw.conf CONF_FILES+= ${EGDIR}/surfraw.bookmarks ${PKG_SYSCONFDIR}/surfraw.bookmarks # avoid installing useless manpage links post-patch: -${GREP} -v elvi.1sr.gz ${WRKSRC}/links.IN > ${WRKSRC}/links.IN.new ${MV} ${WRKSRC}/links.IN.new ${WRKSRC}/links.IN ${SED} -e s/sr/surfraw/g ${WRKSRC}/surfraw.1.IN > ${WRKSRC}/surfraw.1.IN.new ${MV} ${WRKSRC}/surfraw.1.IN.new ${WRKSRC}/surfraw.1.IN ${SED} -e s/sr/surfraw/g ${WRKSRC}/elvi.1sr.IN > ${WRKSRC}/elvi.1sr.IN.new ${MV} ${WRKSRC}/elvi.1sr.IN.new ${WRKSRC}/elvi.1sr.IN # Override installation to install config files in example dir do-install: cd ${WRKSRC} && ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_ARGS} sysconfdir=${EGDIR} install # fix man page name; install additional documentation post-install: ${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR} ${MV} ${PREFIX}/${PKGMANDIR}/man1/elvi.1sr ${PREFIX}/${PKGMANDIR}/man1/elvi.1 .include "../../mk/bsd.pkg.mk"