Use default font path. Bump PKGREVISION.diff -r1.35 -r1.36 pkgsrc/x11/xfstt/Makefile
(wiz)
@@ -1,41 +1,40 @@ | @@ -1,41 +1,40 @@ | |||
1 | # $NetBSD: Makefile,v 1.35 2014/02/08 02:53:05 wiedi Exp $ | 1 | # $NetBSD: Makefile,v 1.36 2014/06/01 18:49:41 wiz Exp $ | |
2 | # | |||
3 | 2 | |||
4 | DISTNAME= xfstt-1.9 | 3 | DISTNAME= xfstt-1.9 | |
5 | CATEGORIES= x11 net fonts | 4 | CATEGORIES= x11 net fonts | |
6 | MASTER_SITES= http://download.berlios.de/xfstt/ | 5 | MASTER_SITES= http://download.berlios.de/xfstt/ | |
7 | 6 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 7 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://developer.berlios.de/projects/xfstt/ | 8 | HOMEPAGE= http://developer.berlios.de/projects/xfstt/ | |
10 | COMMENT= TrueType font server for X11 | 9 | COMMENT= TrueType font server for X11 | |
11 | LICENSE= gnu-gpl-v2 | 10 | LICENSE= gnu-gpl-v2 | |
12 | 11 | |||
13 | USE_LANGUAGES= c c++ | 12 | USE_LANGUAGES= c c++ | |
14 | USE_X11BASE= YES | 13 | USE_X11BASE= YES | |
15 | USE_TOOLS+= gmake pkg-config | 14 | USE_TOOLS+= gmake pkg-config | |
16 | GNU_CONFIGURE= YES | 15 | GNU_CONFIGURE= YES | |
17 | 16 | |||
18 | # There isn't really any l10n yet, only some preliminary i18n support. | 17 | # There isn't really any l10n yet, only some preliminary i18n support. | |
19 | CONFIGURE_ARGS+= --disable-nls | 18 | CONFIGURE_ARGS+= --disable-nls | |
20 | 19 | |||
21 | CXXFLAGS+= -fomit-frame-pointer -ffast-math | 20 | CXXFLAGS+= -fomit-frame-pointer -ffast-math | |
22 | 21 | |||
23 | LDFLAGS.SunOS+= -lsocket -lnsl | 22 | LDFLAGS.SunOS+= -lsocket -lnsl | |
24 | 23 | |||
25 | RCD_SCRIPTS= xfstt | 24 | RCD_SCRIPTS= xfstt | |
26 | INSTALLATION_DIRS= bin \ | 25 | INSTALLATION_DIRS= bin \ | |
27 | ${PKGMANDIR}/man1 \ | 26 | ${PKGMANDIR}/man1 \ | |
28 | lib/X11/fonts/TTF \ | 27 | share/fonts/X11/TTF \ | |
29 | share/doc/xfstt \ | 28 | share/doc/xfstt \ | |
30 | share/examples/xfstt | 29 | share/examples/xfstt | |
31 | 30 | |||
32 | SUBST_CLASSES+= paths | 31 | SUBST_CLASSES+= paths | |
33 | SUBST_FILES.paths= doc/FAQ doc/xfstt.1x | 32 | SUBST_FILES.paths= doc/FAQ doc/xfstt.1x | |
34 | SUBST_SED.paths= -e 's,@PREFIX@,${PREFIX},g' | 33 | SUBST_SED.paths= -e 's,@PREFIX@,${PREFIX},g' | |
35 | SUBST_STAGE.paths= post-patch | 34 | SUBST_STAGE.paths= post-patch | |
36 | 35 | |||
37 | do-install: | 36 | do-install: | |
38 | ${INSTALL_PROGRAM} ${WRKSRC}/src/xfstt ${DESTDIR}${PREFIX}/bin | 37 | ${INSTALL_PROGRAM} ${WRKSRC}/src/xfstt ${DESTDIR}${PREFIX}/bin | |
39 | ${INSTALL_MAN} ${WRKSRC}/doc/xfstt.1x \ | 38 | ${INSTALL_MAN} ${WRKSRC}/doc/xfstt.1x \ | |
40 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xfstt.1 | 39 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xfstt.1 | |
41 | cd ${WRKSRC} && ( \ | 40 | cd ${WRKSRC} && ( \ |
@@ -1,21 +1,21 @@ | @@ -1,21 +1,21 @@ | |||
1 | $NetBSD: distinfo,v 1.11 2012/06/13 08:15:13 mef Exp $ | 1 | $NetBSD: distinfo,v 1.12 2014/06/01 18:49:41 wiz Exp $ | |
2 | 2 | |||
3 | SHA1 (xfstt-1.9.tar.gz) = 0bc390a4908ca530b7cb4b67faad3f3abeba7a65 | 3 | SHA1 (xfstt-1.9.tar.gz) = 0bc390a4908ca530b7cb4b67faad3f3abeba7a65 | |
4 | RMD160 (xfstt-1.9.tar.gz) = 6463f2b81846708d9f101fc384419be8cf37fbbe | 4 | RMD160 (xfstt-1.9.tar.gz) = 6463f2b81846708d9f101fc384419be8cf37fbbe | |
5 | Size (xfstt-1.9.tar.gz) = 286939 bytes | 5 | Size (xfstt-1.9.tar.gz) = 286939 bytes | |
6 | SHA1 (patch-aa) = bd4f364d42acd1d0a734b12f140c5a07004c09cb | 6 | SHA1 (patch-aa) = 8210f3929c4adbe5d2a0bdae8bfd4a1b704d1013 | |
7 | SHA1 (patch-ab) = 78dc21537e86e5533e747e7bab3e5280087fa43b | 7 | SHA1 (patch-ab) = 78dc21537e86e5533e747e7bab3e5280087fa43b | |
8 | SHA1 (patch-ac) = 18b4593735ce1e80c55c54a89293e672d22fceac | 8 | SHA1 (patch-ac) = c9bfc230c6be8872da329da8ab54363b7f87cdea | |
9 | SHA1 (patch-af) = e742a5461925c72e5647b8cfa8e83d1de77ac231 | 9 | SHA1 (patch-af) = e742a5461925c72e5647b8cfa8e83d1de77ac231 | |
10 | SHA1 (patch-ag) = 270ba4fcaecc289c8b170792481f8353d54498e2 | 10 | SHA1 (patch-ag) = 270ba4fcaecc289c8b170792481f8353d54498e2 | |
11 | SHA1 (patch-ah) = f563d157e5f23c3badb4e10de77e4db633b072ca | 11 | SHA1 (patch-ah) = f563d157e5f23c3badb4e10de77e4db633b072ca | |
12 | SHA1 (patch-ai) = 04f35f960614df376960d1ff1e1d410120c0598e | 12 | SHA1 (patch-ai) = 04f35f960614df376960d1ff1e1d410120c0598e | |
13 | SHA1 (patch-aj) = 5afb7cacfdfa542701ca29ee2d78fa98050c6df8 | 13 | SHA1 (patch-aj) = 5afb7cacfdfa542701ca29ee2d78fa98050c6df8 | |
14 | SHA1 (patch-ak) = 72cf7c168e9684aabb0ff95b9bff752c888151fb | 14 | SHA1 (patch-ak) = 72cf7c168e9684aabb0ff95b9bff752c888151fb | |
15 | SHA1 (patch-al) = 7e766d1a52b7c5c2183d67db1da759b170007c66 | 15 | SHA1 (patch-al) = 7e766d1a52b7c5c2183d67db1da759b170007c66 | |
16 | SHA1 (patch-am) = 4424107b9c2b8c9167560733ef1ce89d2e86fa09 | 16 | SHA1 (patch-am) = 4424107b9c2b8c9167560733ef1ce89d2e86fa09 | |
17 | SHA1 (patch-an) = 1936547506bb83e50d9cbf7579df2f18e695ac29 | 17 | SHA1 (patch-an) = 1936547506bb83e50d9cbf7579df2f18e695ac29 | |
18 | SHA1 (patch-ao) = 8be98e207b5e709dea51d33b26595dafc508c1df | 18 | SHA1 (patch-ao) = 8be98e207b5e709dea51d33b26595dafc508c1df | |
19 | SHA1 (patch-ap) = 83d5c81bfe6fb7e78794792cf37b7a63575cef22 | 19 | SHA1 (patch-ap) = 83d5c81bfe6fb7e78794792cf37b7a63575cef22 | |
20 | SHA1 (patch-aq) = 71b49c068ce83706f5cbcda8adfa8df6b3d24e06 | 20 | SHA1 (patch-aq) = 71b49c068ce83706f5cbcda8adfa8df6b3d24e06 | |
21 | SHA1 (patch-ar) = b909ab488f71045eb1b60fba33297c8245441d60 | 21 | SHA1 (patch-ar) = b909ab488f71045eb1b60fba33297c8245441d60 |
@@ -1,44 +1,44 @@ | @@ -1,44 +1,44 @@ | |||
1 | $NetBSD: patch-aa,v 1.6 2012/06/13 08:15:14 mef Exp $ | 1 | $NetBSD: patch-aa,v 1.7 2014/06/01 18:49:41 wiz Exp $ | |
2 | 2 | |||
3 | Convert hardcoded PATH to @PREFIX@ | 3 | Convert hardcoded PATH to @PREFIX@ | |
4 | 4 | |||
5 | --- doc/FAQ.orig 2003-08-07 08:59:03.000000000 +0200 | 5 | --- doc/FAQ.orig 2003-08-07 08:59:03.000000000 +0200 | |
6 | +++ doc/FAQ 2004-01-01 20:44:46.000000000 +0100 | 6 | +++ doc/FAQ 2004-01-01 20:44:46.000000000 +0100 | |
7 | @@ -68,8 +68,8 @@ | 7 | @@ -68,8 +68,8 @@ | |
8 | 8 | |||
9 | 1.1 How do I test it? | 9 | 1.1 How do I test it? | |
10 | 10 | |||
11 | - mkdir /usr/share/fonts/truetype and put some *ttf fonts there, now | 11 | - mkdir /usr/share/fonts/truetype and put some *ttf fonts there, now | |
12 | - run: | 12 | - run: | |
13 | + mkdir @PREFIX@/lib/X11/fonts/TTF and put some *ttf fonts | 13 | + mkdir @PREFIX@/share/fonts/X11/TTF and put some *ttf fonts | |
14 | + there, now run: | 14 | + there, now run: | |
15 | 15 | |||
16 | make xfstt && make install | 16 | make xfstt && make install | |
17 | xfstt --sync | 17 | xfstt --sync | |
18 | @@ -175,11 +175,11 @@ | 18 | @@ -175,11 +175,11 @@ | |
19 | 19 | |||
20 | 2.4 How does one add fonts? | 20 | 2.4 How does one add fonts? | |
21 | 21 | |||
22 | - Copy *.ttf fonts into the /usr/share/fonts/truetype/ directory or | 22 | - Copy *.ttf fonts into the /usr/share/fonts/truetype/ directory or | |
23 | - put some softlinks to font directories in there. A typical example | 23 | - put some softlinks to font directories in there. A typical example | |
24 | - is: | 24 | - is: | |
25 | + Copy *.ttf fonts into the @PREFIX@/lib/X11/fonts/TTF/ | 25 | + Copy *.ttf fonts into the @PREFIX@/share/fonts/X11/TTF/ | |
26 | + directory or put some softlinks to font directories in there. | 26 | + directory or put some softlinks to font directories in there. | |
27 | + A typical example is: | 27 | + A typical example is: | |
28 | 28 | |||
29 | - ln -s /DOS/windows/fonts /usr/share/fonts/truetype/winfonts | 29 | - ln -s /DOS/windows/fonts /usr/share/fonts/truetype/winfonts | |
30 | + ln -s /DOS/windows/fonts @PREFIX@/lib/X11/fonts/TTF/winfonts | 30 | + ln -s /DOS/windows/fonts @PREFIX@/share/fonts/X11/TTF/winfonts | |
31 | 31 | |||
32 | Now run "xfstt --sync" in order to have the new fonts recognized. | 32 | Now run "xfstt --sync" in order to have the new fonts recognized. | |
33 | Adding fonts while xfstt is running doesn't work yet. | 33 | Adding fonts while xfstt is running doesn't work yet. | |
34 | @@ -358,8 +358,8 @@ | 34 | @@ -358,8 +358,8 @@ | |
35 | 35 | |||
36 | 3.0 How do I put fonts in categories? | 36 | 3.0 How do I put fonts in categories? | |
37 | 37 | |||
38 | - Create some subdirectories in /usr/share/fonts/truetype, e.g. | 38 | - Create some subdirectories in /usr/share/fonts/truetype, e.g. | |
39 | - modern, script, brush, old, symbol, ... | 39 | - modern, script, brush, old, symbol, ... | |
40 | + Create some subdirectories in @PREFIX@/lib/X11/fonts/TTF, | 40 | + Create some subdirectories in @PREFIX@/share/fonts/X11/TTF, | |
41 | + e.g. modern, script, brush, old, symbol, ... | 41 | + e.g. modern, script, brush, old, symbol, ... | |
42 | and put the appropriate fonts in there. The corresponding font | 42 | and put the appropriate fonts in there. The corresponding font | |
43 | names will be -modern-*, -script-*, -brush-* and so on. | 43 | names will be -modern-*, -script-*, -brush-* and so on. | |
44 | 44 |
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | $NetBSD: patch-ac,v 1.6 2012/06/13 08:15:14 mef Exp $ | 1 | $NetBSD: patch-ac,v 1.7 2014/06/01 18:49:41 wiz Exp $ | |
2 | 2 | |||
3 | Adjust fontdir and cachedir to pkgsrc style. | 3 | Adjust fontdir and cachedir to pkgsrc style. | |
4 | 4 | |||
5 | --- src/Makefile.in.orig 2010-11-09 13:29:50.000000000 +0900 | 5 | --- src/Makefile.in.orig 2010-11-09 13:29:50.000000000 +0900 | |
6 | +++ src/Makefile.in 2011-10-17 11:57:56.000000000 +0900 | 6 | +++ src/Makefile.in 2011-10-17 11:57:56.000000000 +0900 | |
7 | @@ -244,8 +244,8 @@ | 7 | @@ -244,8 +244,8 @@ | |
8 | top_build_prefix = @top_build_prefix@ | 8 | top_build_prefix = @top_build_prefix@ | |
9 | top_builddir = @top_builddir@ | 9 | top_builddir = @top_builddir@ | |
10 | top_srcdir = @top_srcdir@ | 10 | top_srcdir = @top_srcdir@ | |
11 | -fontdir = $(datadir)/fonts/truetype | 11 | -fontdir = $(datadir)/fonts/truetype | |
12 | -cachedir = $(localstatedir)/cache/xfstt | 12 | -cachedir = $(localstatedir)/cache/xfstt | |
13 | +fontdir = $(prefix)/lib/X11/fonts/TTF | 13 | +fontdir = $(prefix)/share/fonts/X11/TTF | |
14 | +cachedir = $(prefix)/lib/X11/fonts/TTF | 14 | +cachedir = $(prefix)/share/fonts/X11/TTF | |
15 | pidfile = $(localstatedir)/run/xfstt.pid | 15 | pidfile = $(localstatedir)/run/xfstt.pid | |
16 | LDADD = @LIBINTL@ -L$(top_builddir)/libfstt -lfstt | 16 | LDADD = @LIBINTL@ -L$(top_builddir)/libfstt -lfstt | |
17 | AM_CPPFLAGS = -DLOCALEDIR=\""$(localedir)\"" -DFONTDIR=\""$(fontdir)\"" \ | 17 | AM_CPPFLAGS = -DLOCALEDIR=\""$(localedir)\"" -DFONTDIR=\""$(fontdir)\"" \ |