pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: fonts/t1lib, x11/modular-xorg-server, x11/xdm, print/cups and lang/python24 in DragonFly BSD



after a bit of searching i noticed this:
/usr/obj/pkgsrc/print/cups/work.vkernel/cups-1.3.5/Makedefs:LOCALEDIR   =      
$(BUILDROOT)/usr/pkg/lib/locale
/usr/obj/pkgsrc/print/cups/work.vkernel/cups-1.3.5/config.h:#define
CUPS_LOCALEDIR "/usr/pkg/lib/locale"

The attached patch fixes print/cups.

Jeremy C. Reed wrote:
> On Mon, 11 Feb 2008, Rumko wrote:
> 
>> After a quick look over the docs, I can't find any info for locale files ...
>> but it should probably go into share/ ... lib/ should be for libraries only
>> afaik?
> 
> 
> ${PKGLOCALEDIR} is set by the mk files for each operating system, for
> example, pkgsrc/mk/platform/DragonFly.mk has:
> 
> PKGLOCALEDIR?=     share
> 
> It is used like:      ${PREFIX}/${PKGLOCALEDIR}/locale/
> 
> If USE_PKGLOCALEDIR is "yes" then PLISTs are adjusted from hard-coded
> share/locale to ${PKGLOCALEDIR}/locale.
> 
> Also Makefiles are patched (by replace-localedir.mk) to fix this.

On an unrelated note, the fix for freebsd for fonts/t1lib made it work on
dragonfly as well, noticed that python24 was fixed as well, others I have yet
to check.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/cups/Makefile,v
retrieving revision 1.131
diff -u -p -r1.131 Makefile
--- Makefile    22 Jan 2008 23:58:13 -0000      1.131
+++ Makefile    24 Feb 2008 14:52:05 -0000
@@ -40,7 +40,7 @@ INSTALL_TARGET=               installcups
 AUTOCONF_REQD=         2.60
 
 GNU_CONFIGURE=         yes
-CONFIGURE_ARGS+=       --with-localedir=${PREFIX}/${PKGLOCALEDIR}/locale
+CONFIGURE_ARGS+=       --localedir=${PREFIX}/${PKGLOCALEDIR}/locale
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFBASEDIR:Q}
 CONFIGURE_ARGS+=       --localstatedir=${VARBASE:Q}
 CONFIGURE_ARGS+=       --with-cachedir=${VARBASE:Q}/cache/cups



Home | Main Index | Thread Index | Old Index