![]() ![]() | ![]() |
Remove mk/find-prefix.mk usage from the lang 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.68 2015/11/25 12:51:16 jperkin Exp $ # DISTNAME= Gauche-0.9.4 #PKGREVISION= 1 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gauche/} EXTRACT_SUFX= .tgz MAINTAINER= enami@NetBSD.org HOMEPAGE= http://practical-scheme.net/gauche/ COMMENT= R7RS Scheme implementation aimed to be a handy tool for daily works DEPENDS+= slib-[0-9]*:../../devel/slib .include "options.mk" MAKE_JOBS_SAFE= no GNU_CONFIGURE= yes CONFIGURE_ARGS+= --with-slib=${LOCALBASE}/share/slib CONFIGURE_ARGS+= --enable-threads=pthreads CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_PREFIX.iconv} CHECK_BUILTIN.iconv:= yes .include "../../converters/libiconv/builtin.mk" CHECK_BUILTIN.iconv:= no .if !empty(USE_BUILTIN.iconv:M[nN][oO]) CONFIGURE_ARGS+= --with-iconv-lib=${BUILDLINK_LIBNAME.iconv} ICONV_LDFLAGS= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.iconv}/lib \ -L${BUILDLINK_PREFIX.iconv}/lib ALL_ENV+= \ ICONV_LDFLAGS=${ICONV_LDFLAGS:Q} .endif USE_LANGUAGES= c c99 USE_LIBTOOL= yes USE_TOOLS+= gzip makeinfo TEST_TARGET= check INFO_FILES= yes # refer %install in ${WRKSRC}/Gauche.spec INSTALL_TARGET= install-pkg install-doc # Does relink internally BUILDLINK_PASSTHRU_RPATHDIRS+= ${WRKSRC} .include "../../mk/dlopen.buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" post-install: gzip -d ${DESTDIR}${PREFIX}/${PKGINFODIR}/gauche-ref*gz .include "../../converters/libiconv/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" .include "../../mk/bsd.pkg.mk"