[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / www / haskell-cgi

File: [cvs.NetBSD.org] / pkgsrc / www / haskell-cgi / Makefile (download)

Revision 1.13, Wed Nov 25 12:54:07 2015 UTC (3 years, 11 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-, HEAD
Changes since 1.12: +2 -5 lines

Remove mk/find-prefix.mk usage from the www category.

The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.

# $NetBSD: Makefile,v 1.13 2015/11/25 12:54:07 jperkin Exp $

DISTNAME=	haskell-cgi-20001206
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_LOCAL}

MAINTAINER=	pkgsrc-users@NetBSD.org
# HOMEPAGE=	http://www.informatik.uni-muenchen.de/~Sven.Panne/haskell_libs/CGI.html
COMMENT=	CGI module for the Hugs Haskell 98 interpreter

DEPENDS+=	hugs98-[0-9]*:../../lang/hugs

NO_SRC_ON_FTP=	Already in MASTER_SITE_LOCAL

NO_BUILD=	yes

INSTALLATION_DIRS=	share/hugs/lib

do-configure:
	@for i in ${WRKSRC}/*; do					  \
	${SED} -e 's:\/soft\/bin\/runhugs:'${LOCALBASE}'/bin/runhugs:g' \
	$$i > $$i.tmp && ${MV} $$i.tmp $$i;				  \
	done

do-install:
	${INSTALL_DATA} ${WRKSRC}/CGI.lhs ${DESTDIR}${PREFIX}/share/hugs/lib
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/hugs-cgi
	${INSTALL_DATA} ${WRKSRC}/*.cgi ${DESTDIR}${PREFIX}/share/examples/hugs-cgi
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/examples/hugs-cgi
	${INSTALL_DATA} ${WRKSRC}/TODO ${DESTDIR}${PREFIX}/share/examples/hugs-cgi

.include "../../mk/bsd.pkg.mk"