2009-09-20 20:50:03 +02:00
|
|
|
# $NetBSD: Makefile,v 1.9 2009/09/20 18:50:03 minskim Exp $
|
2009-01-03 23:12:42 +01:00
|
|
|
|
2009-06-09 23:29:17 +02:00
|
|
|
DISTNAME= luatex-beta-0.40.2
|
|
|
|
PKGNAME= kpathsea-5.0.0
|
2009-09-20 20:50:03 +02:00
|
|
|
PKGREVISION= 2
|
2009-01-03 23:12:42 +01:00
|
|
|
CATEGORIES= print
|
2009-06-09 23:29:17 +02:00
|
|
|
MASTER_SITES= http://foundry.supelec.fr/gf/download/frsrelease/341/1275/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2009-01-03 23:12:42 +01:00
|
|
|
|
|
|
|
MAINTAINER= minskim@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.tug.org/kpathsea/
|
|
|
|
COMMENT= Path searching library for TeX-related files
|
2009-07-06 20:28:41 +02:00
|
|
|
LICENSE= gnu-lgpl-v2.1
|
2009-01-03 23:12:42 +01:00
|
|
|
|
2009-01-08 22:47:18 +01:00
|
|
|
CONFLICTS+= teTeX-bin<=3.0nb21
|
|
|
|
CONFLICTS+= teTeX-texmf<=3.0nb5
|
2009-01-03 23:12:42 +01:00
|
|
|
|
2009-06-09 23:29:17 +02:00
|
|
|
EXTRACT_ELEMENTS= ${DISTNAME}/source/build-aux \
|
|
|
|
${DISTNAME}/source/texk/kpathsea \
|
|
|
|
${DISTNAME}/source/texk/make
|
2009-01-03 23:12:42 +01:00
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
INFO_FILES= yes
|
|
|
|
USE_LIBTOOL= yes
|
2009-06-09 23:29:17 +02:00
|
|
|
USE_TOOLS+= gmake
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/source/texk/kpathsea
|
2009-01-03 23:12:42 +01:00
|
|
|
|
|
|
|
MAKE_FLAGS+= LIBTOOL=${LIBTOOL:Q}
|
|
|
|
|
2009-09-02 08:02:25 +02:00
|
|
|
#
|
|
|
|
# A double-slash (//) in the kpathsea paths has a special
|
|
|
|
# interpretation, it will cause kpathsea to consider all
|
|
|
|
# subdirectories recursively at that point in the path. Normally
|
|
|
|
# double-slashes and trailing slashes will not be present in these
|
|
|
|
# variables, but if they are there the resulting behaviour is so
|
|
|
|
# unexpected, expensive, and difficult to diagnose that it is worth
|
|
|
|
# going to extra effort to clean them out here.
|
|
|
|
#
|
2009-01-03 23:12:42 +01:00
|
|
|
SUBST_CLASSES+= texmfdir
|
|
|
|
SUBST_MESSAGE.texmfdir= Setting texmf directories.
|
|
|
|
SUBST_STAGE.texmfdir= pre-configure
|
|
|
|
SUBST_FILES.texmfdir= texmf.cnf
|
2009-09-02 08:02:25 +02:00
|
|
|
SUBST_SED.texmfdir= -e 's,@PREFIX@,${PREFIX:C;///*;/;g:C;/$;;},'
|
|
|
|
SUBST_SED.texmfdir+= -e 's,@TEXMFLOCAL@,${TEXMFLOCAL:C;///*;/;g:C;/$;;},'
|
|
|
|
SUBST_SED.texmfdir+= -e 's,@VARBASE@,${VARBASE:C;///*;/;g:C;/$;;},'
|
|
|
|
SUBST_SED.texmfdir+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR:C;///*;/;g:C;/$;;},'
|
2009-01-03 23:12:42 +01:00
|
|
|
|
2009-09-20 20:50:03 +02:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_MESSAGE.paths= Setting paths to commands.
|
|
|
|
SUBST_STAGE.paths= pre-configure
|
|
|
|
SUBST_FILES.paths= mktex.opt mktexdir mktexlsr mktexmf \
|
|
|
|
mktexnam mktexnam.opt mktexpk mktextfm mktexupd
|
|
|
|
SUBST_SED.paths= -e 's,@KPSEWHICH@,${PREFIX}/bin/kpsewhich,g' \
|
|
|
|
-e 's,@MKTEXMF@,${PREFIX}/bin/mktexmf,g'
|
|
|
|
|
2009-01-03 23:12:42 +01:00
|
|
|
PKG_SYSCONFSUBDIR= texmf
|
|
|
|
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
TEXMFLOCAL= ${PREFIX}/share/texmf-local
|
|
|
|
FILES_SUBST+= TEXMFLOCAL=${TEXMFLOCAL}
|
|
|
|
|
|
|
|
CONF_FILES= ${PREFIX}/share/texmf/web2c/texmf.cnf \
|
|
|
|
${PKG_SYSCONFDIR}/texmf.cnf
|
|
|
|
|
|
|
|
OWN_DIRS+= ${TEXMFLOCAL} ${VARBASE}/lib/texmf
|
2009-06-09 23:29:17 +02:00
|
|
|
INSTALLATION_DIRS+= share/texmf-dist
|
2009-01-03 23:12:42 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|