| @@ -1,71 +1,74 @@ | | | @@ -1,71 +1,74 @@ |
1 | # $NetBSD: Makefile,v 1.20 2015/01/09 22:13:13 minskim Exp $ | | 1 | # $NetBSD: Makefile,v 1.21 2015/02/21 00:12:51 joerg Exp $ |
2 | | | 2 | |
3 | DISTNAME= texlive-20140525-source | | 3 | DISTNAME= texlive-20140525-source |
4 | PKGNAME= kpathsea-6.2.0 | | 4 | PKGNAME= kpathsea-6.2.0 |
5 | CATEGORIES= print | | 5 | CATEGORIES= print |
6 | MASTER_SITES= ftp://tug.org/historic/systems/texlive/2014/ | | 6 | MASTER_SITES= ftp://tug.org/historic/systems/texlive/2014/ |
7 | EXTRACT_SUFX= .tar.xz | | 7 | EXTRACT_SUFX= .tar.xz |
8 | | | 8 | |
9 | MAINTAINER= minskim@NetBSD.org | | 9 | MAINTAINER= minskim@NetBSD.org |
10 | HOMEPAGE= http://www.tug.org/kpathsea/ | | 10 | HOMEPAGE= http://www.tug.org/kpathsea/ |
11 | COMMENT= Path searching library for TeX-related files | | 11 | COMMENT= Path searching library for TeX-related files |
12 | LICENSE= gnu-lgpl-v2.1 | | 12 | LICENSE= gnu-lgpl-v2.1 |
13 | | | 13 | |
14 | CONFLICTS+= teTeX-bin<=3.0nb46 | | 14 | CONFLICTS+= teTeX-bin<=3.0nb46 |
15 | CONFLICTS+= teTeX-texmf<=3.0nb5 | | 15 | CONFLICTS+= teTeX-texmf<=3.0nb5 |
16 | CONFLICTS+= texlive-tetex<2010 | | 16 | CONFLICTS+= texlive-tetex<2010 |
17 | | | 17 | |
18 | EXTRACT_ELEMENTS= ${DISTNAME}/build-aux \ | | 18 | EXTRACT_ELEMENTS= ${DISTNAME}/build-aux \ |
19 | ${DISTNAME}/texk/kpathsea | | 19 | ${DISTNAME}/texk/kpathsea |
20 | | | 20 | |
21 | GNU_CONFIGURE= yes | | 21 | GNU_CONFIGURE= yes |
22 | INFO_FILES= yes | | 22 | INFO_FILES= yes |
23 | USE_LIBTOOL= yes | | 23 | USE_LIBTOOL= yes |
24 | USE_TOOLS+= gmake | | 24 | USE_TOOLS+= gmake |
25 | WRKSRC= ${WRKDIR}/${DISTNAME}/texk/kpathsea | | 25 | WRKSRC= ${WRKDIR}/${DISTNAME}/texk/kpathsea |
26 | | | 26 | |
| | | 27 | CONFIG_GUESS_OVERRIDE+= ${WRKDIR}/${DISTNAME}/build-aux/config.guess |
| | | 28 | CONFIG_SUB_OVERRIDE+= ${WRKDIR}/${DISTNAME}/build-aux/config.sub |
| | | 29 | |
27 | MAKE_FLAGS+= LIBTOOL=${LIBTOOL:Q} | | 30 | MAKE_FLAGS+= LIBTOOL=${LIBTOOL:Q} |
28 | | | 31 | |
29 | # | | 32 | # |
30 | # A double-slash (//) in the kpathsea paths has a special | | 33 | # A double-slash (//) in the kpathsea paths has a special |
31 | # interpretation, it will cause kpathsea to consider all | | 34 | # interpretation, it will cause kpathsea to consider all |
32 | # subdirectories recursively at that point in the path. Normally | | 35 | # subdirectories recursively at that point in the path. Normally |
33 | # double-slashes and trailing slashes will not be present in these | | 36 | # double-slashes and trailing slashes will not be present in these |
34 | # variables, but if they are there the resulting behaviour is so | | 37 | # variables, but if they are there the resulting behaviour is so |
35 | # unexpected, expensive, and difficult to diagnose that it is worth | | 38 | # unexpected, expensive, and difficult to diagnose that it is worth |
36 | # going to extra effort to clean them out here. | | 39 | # going to extra effort to clean them out here. |
37 | # | | 40 | # |
38 | SUBST_CLASSES+= texmfdir | | 41 | SUBST_CLASSES+= texmfdir |
39 | SUBST_MESSAGE.texmfdir= Setting texmf directories. | | 42 | SUBST_MESSAGE.texmfdir= Setting texmf directories. |
40 | SUBST_STAGE.texmfdir= pre-configure | | 43 | SUBST_STAGE.texmfdir= pre-configure |
41 | SUBST_FILES.texmfdir= texmf.cnf | | 44 | SUBST_FILES.texmfdir= texmf.cnf |
42 | SUBST_SED.texmfdir= -e 's,@PREFIX@,${PREFIX:C;///*;/;g:C;/$;;},' | | 45 | SUBST_SED.texmfdir= -e 's,@PREFIX@,${PREFIX:C;///*;/;g:C;/$;;},' |
43 | SUBST_SED.texmfdir+= -e 's,@TEXMFLOCAL@,${TEXMFLOCAL:C;///*;/;g:C;/$;;},' | | 46 | SUBST_SED.texmfdir+= -e 's,@TEXMFLOCAL@,${TEXMFLOCAL:C;///*;/;g:C;/$;;},' |
44 | SUBST_SED.texmfdir+= -e 's,@VARBASE@,${VARBASE:C;///*;/;g:C;/$;;},' | | 47 | SUBST_SED.texmfdir+= -e 's,@VARBASE@,${VARBASE:C;///*;/;g:C;/$;;},' |
45 | SUBST_SED.texmfdir+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR:C;///*;/;g:C;/$;;},' | | 48 | SUBST_SED.texmfdir+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR:C;///*;/;g:C;/$;;},' |
46 | | | 49 | |
47 | SUBST_CLASSES+= paths | | 50 | SUBST_CLASSES+= paths |
48 | SUBST_MESSAGE.paths= Setting paths to commands. | | 51 | SUBST_MESSAGE.paths= Setting paths to commands. |
49 | SUBST_STAGE.paths= pre-configure | | 52 | SUBST_STAGE.paths= pre-configure |
50 | SUBST_FILES.paths= mktex.opt mktexdir mktexlsr mktexmf \ | | 53 | SUBST_FILES.paths= mktex.opt mktexdir mktexlsr mktexmf \ |
51 | mktexnam mktexnam.opt mktexpk mktextfm mktexupd | | 54 | mktexnam mktexnam.opt mktexpk mktextfm mktexupd |
52 | SUBST_SED.paths= -e 's,@KPSEWHICH@,${PREFIX}/bin/kpsewhich,g' | | 55 | SUBST_SED.paths= -e 's,@KPSEWHICH@,${PREFIX}/bin/kpsewhich,g' |
53 | SUBST_SED.paths+= -e 's,@MKTEXMF@,${PREFIX}/bin/mktexmf,g' | | 56 | SUBST_SED.paths+= -e 's,@MKTEXMF@,${PREFIX}/bin/mktexmf,g' |
54 | | | 57 | |
55 | PKG_SYSCONFSUBDIR= texmf | | 58 | PKG_SYSCONFSUBDIR= texmf |
56 | | | 59 | |
57 | BUILD_DEFS+= VARBASE | | 60 | BUILD_DEFS+= VARBASE |
58 | TEXMFLOCAL= ${PREFIX}/share/texmf-local | | 61 | TEXMFLOCAL= ${PREFIX}/share/texmf-local |
59 | FILES_SUBST+= TEXMFLOCAL=${TEXMFLOCAL} | | 62 | FILES_SUBST+= TEXMFLOCAL=${TEXMFLOCAL} |
60 | | | 63 | |
61 | CONF_FILES= ${PREFIX}/share/texmf-dist/web2c/texmf.cnf \ | | 64 | CONF_FILES= ${PREFIX}/share/texmf-dist/web2c/texmf.cnf \ |
62 | ${PKG_SYSCONFDIR}/texmf.cnf | | 65 | ${PKG_SYSCONFDIR}/texmf.cnf |
63 | | | 66 | |
64 | OWN_DIRS+= ${TEXMFLOCAL} ${VARBASE}/lib/texmf | | 67 | OWN_DIRS+= ${TEXMFLOCAL} ${VARBASE}/lib/texmf |
65 | .for d in pk source tfm | | 68 | .for d in pk source tfm |
66 | OWN_DIRS_PERMS+= ${VARBASE}/lib/texmf/fonts/${d} \ | | 69 | OWN_DIRS_PERMS+= ${VARBASE}/lib/texmf/fonts/${d} \ |
67 | ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 1777 | | 70 | ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 1777 |
68 | .endfor | | 71 | .endfor |
69 | INSTALLATION_DIRS+= share/texmf-dist | | 72 | INSTALLATION_DIRS+= share/texmf-dist |
70 | | | 73 | |
71 | .include "../../mk/bsd.pkg.mk" | | 74 | .include "../../mk/bsd.pkg.mk" |