Sat Feb 21 00:12:52 2015 UTC ()
autoconf helpers are above WRKSRC.


(joerg)
diff -r1.20 -r1.21 pkgsrc/print/kpathsea/Makefile

cvs diff -r1.20 -r1.21 pkgsrc/print/kpathsea/Makefile (switch to unified diff)

--- pkgsrc/print/kpathsea/Makefile 2015/01/09 22:13:13 1.20
+++ pkgsrc/print/kpathsea/Makefile 2015/02/21 00:12:51 1.21
@@ -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
3DISTNAME= texlive-20140525-source 3DISTNAME= texlive-20140525-source
4PKGNAME= kpathsea-6.2.0 4PKGNAME= kpathsea-6.2.0
5CATEGORIES= print 5CATEGORIES= print
6MASTER_SITES= ftp://tug.org/historic/systems/texlive/2014/ 6MASTER_SITES= ftp://tug.org/historic/systems/texlive/2014/
7EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
8 8
9MAINTAINER= minskim@NetBSD.org 9MAINTAINER= minskim@NetBSD.org
10HOMEPAGE= http://www.tug.org/kpathsea/ 10HOMEPAGE= http://www.tug.org/kpathsea/
11COMMENT= Path searching library for TeX-related files 11COMMENT= Path searching library for TeX-related files
12LICENSE= gnu-lgpl-v2.1 12LICENSE= gnu-lgpl-v2.1
13 13
14CONFLICTS+= teTeX-bin<=3.0nb46 14CONFLICTS+= teTeX-bin<=3.0nb46
15CONFLICTS+= teTeX-texmf<=3.0nb5 15CONFLICTS+= teTeX-texmf<=3.0nb5
16CONFLICTS+= texlive-tetex<2010 16CONFLICTS+= texlive-tetex<2010
17 17
18EXTRACT_ELEMENTS= ${DISTNAME}/build-aux \ 18EXTRACT_ELEMENTS= ${DISTNAME}/build-aux \
19 ${DISTNAME}/texk/kpathsea 19 ${DISTNAME}/texk/kpathsea
20 20
21GNU_CONFIGURE= yes 21GNU_CONFIGURE= yes
22INFO_FILES= yes 22INFO_FILES= yes
23USE_LIBTOOL= yes 23USE_LIBTOOL= yes
24USE_TOOLS+= gmake 24USE_TOOLS+= gmake
25WRKSRC= ${WRKDIR}/${DISTNAME}/texk/kpathsea 25WRKSRC= ${WRKDIR}/${DISTNAME}/texk/kpathsea
26 26
 27CONFIG_GUESS_OVERRIDE+= ${WRKDIR}/${DISTNAME}/build-aux/config.guess
 28CONFIG_SUB_OVERRIDE+= ${WRKDIR}/${DISTNAME}/build-aux/config.sub
 29
27MAKE_FLAGS+= LIBTOOL=${LIBTOOL:Q} 30MAKE_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#
38SUBST_CLASSES+= texmfdir 41SUBST_CLASSES+= texmfdir
39SUBST_MESSAGE.texmfdir= Setting texmf directories. 42SUBST_MESSAGE.texmfdir= Setting texmf directories.
40SUBST_STAGE.texmfdir= pre-configure 43SUBST_STAGE.texmfdir= pre-configure
41SUBST_FILES.texmfdir= texmf.cnf 44SUBST_FILES.texmfdir= texmf.cnf
42SUBST_SED.texmfdir= -e 's,@PREFIX@,${PREFIX:C;///*;/;g:C;/$;;},' 45SUBST_SED.texmfdir= -e 's,@PREFIX@,${PREFIX:C;///*;/;g:C;/$;;},'
43SUBST_SED.texmfdir+= -e 's,@TEXMFLOCAL@,${TEXMFLOCAL:C;///*;/;g:C;/$;;},' 46SUBST_SED.texmfdir+= -e 's,@TEXMFLOCAL@,${TEXMFLOCAL:C;///*;/;g:C;/$;;},'
44SUBST_SED.texmfdir+= -e 's,@VARBASE@,${VARBASE:C;///*;/;g:C;/$;;},' 47SUBST_SED.texmfdir+= -e 's,@VARBASE@,${VARBASE:C;///*;/;g:C;/$;;},'
45SUBST_SED.texmfdir+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR:C;///*;/;g:C;/$;;},' 48SUBST_SED.texmfdir+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR:C;///*;/;g:C;/$;;},'
46 49
47SUBST_CLASSES+= paths 50SUBST_CLASSES+= paths
48SUBST_MESSAGE.paths= Setting paths to commands. 51SUBST_MESSAGE.paths= Setting paths to commands.
49SUBST_STAGE.paths= pre-configure 52SUBST_STAGE.paths= pre-configure
50SUBST_FILES.paths= mktex.opt mktexdir mktexlsr mktexmf \ 53SUBST_FILES.paths= mktex.opt mktexdir mktexlsr mktexmf \
51 mktexnam mktexnam.opt mktexpk mktextfm mktexupd 54 mktexnam mktexnam.opt mktexpk mktextfm mktexupd
52SUBST_SED.paths= -e 's,@KPSEWHICH@,${PREFIX}/bin/kpsewhich,g' 55SUBST_SED.paths= -e 's,@KPSEWHICH@,${PREFIX}/bin/kpsewhich,g'
53SUBST_SED.paths+= -e 's,@MKTEXMF@,${PREFIX}/bin/mktexmf,g' 56SUBST_SED.paths+= -e 's,@MKTEXMF@,${PREFIX}/bin/mktexmf,g'
54 57
55PKG_SYSCONFSUBDIR= texmf 58PKG_SYSCONFSUBDIR= texmf
56 59
57BUILD_DEFS+= VARBASE 60BUILD_DEFS+= VARBASE
58TEXMFLOCAL= ${PREFIX}/share/texmf-local 61TEXMFLOCAL= ${PREFIX}/share/texmf-local
59FILES_SUBST+= TEXMFLOCAL=${TEXMFLOCAL} 62FILES_SUBST+= TEXMFLOCAL=${TEXMFLOCAL}
60 63
61CONF_FILES= ${PREFIX}/share/texmf-dist/web2c/texmf.cnf \ 64CONF_FILES= ${PREFIX}/share/texmf-dist/web2c/texmf.cnf \
62 ${PKG_SYSCONFDIR}/texmf.cnf 65 ${PKG_SYSCONFDIR}/texmf.cnf
63 66
64OWN_DIRS+= ${TEXMFLOCAL} ${VARBASE}/lib/texmf 67OWN_DIRS+= ${TEXMFLOCAL} ${VARBASE}/lib/texmf
65.for d in pk source tfm 68.for d in pk source tfm
66OWN_DIRS_PERMS+= ${VARBASE}/lib/texmf/fonts/${d} \ 69OWN_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
69INSTALLATION_DIRS+= share/texmf-dist 72INSTALLATION_DIRS+= share/texmf-dist
70 73
71.include "../../mk/bsd.pkg.mk" 74.include "../../mk/bsd.pkg.mk"