d90e2f5f4d
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.
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.26 2015/11/25 12:51:41 jperkin Exp $
|
|
|
|
DISTNAME= eukleides-1.5.4
|
|
PKGREVISION= 3
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://www.eukleides.org/files/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= ryoon@NetBSD.org
|
|
HOMEPAGE= http://www.eukleides.org/
|
|
COMMENT= Euclidean geometry drawing language
|
|
LICENSE= gnu-gpl-v3
|
|
|
|
DEPENDS+= getopt-[0-9]*:../../misc/getopt
|
|
|
|
USE_TOOLS+= bash:run bison gmake lex makeinfo yacc
|
|
INFO_FILES= yes
|
|
|
|
REPLACE_BASH= bash/*
|
|
|
|
BUILDLINK_TRANSFORM+= l:ncurses:curses
|
|
|
|
SUBST_CLASSES+= getopt
|
|
SUBST_STAGE.getopt= pre-configure
|
|
SUBST_MESSAGE.getopt= Replacing getopt.
|
|
SUBST_FILES.getopt= bash/euktoeps
|
|
SUBST_SED.getopt+= -e 's,@GETOPT@,${LOCALBASE}/bin/getopt,'
|
|
|
|
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} \
|
|
PREFIX=${DESTDIR}${PREFIX} \
|
|
BIN_DIR=${DESTDIR}${PREFIX}/bin \
|
|
INFO_DIR=${DESTDIR}${PREFIX}/${PKGINFODIR} \
|
|
DOC_DIR=${DESTDIR}${PREFIX}/share/eukleides \
|
|
MAN_DIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 \
|
|
TEX_DIR=${DESTDIR}${PREFIX}/share/texmf-dist/tex/latex/eukleides
|
|
|
|
pre-install:
|
|
${FIND} ${WRKSRC} -type f -name '*.orig' -exec ${RM} -f {} \;
|
|
|
|
.include "../../mk/readline.buildlink3.mk"
|
|
.include "../../mk/curses.buildlink3.mk"
|
|
.include "../../print/kpathsea/texmf.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|