41 lines
1.7 KiB
Plaintext
41 lines
1.7 KiB
Plaintext
$OpenBSD: patch-Makefile_in,v 1.4 2011/04/15 18:50:06 ajacoutot Exp $
|
|
--- Makefile.in.orig Fri Feb 18 13:30:22 2011
|
|
+++ Makefile.in Fri Apr 15 20:45:20 2011
|
|
@@ -187,13 +187,9 @@ check-config:
|
|
install-bin: check-config lib/Makefile
|
|
# This is the only way to get the Perl-generated Makefile using
|
|
# $(DESTDIR) properly
|
|
- ( cd lib && \
|
|
- $(MAKE) PREFIX=$(PERLPREFIX) && \
|
|
- $(MAKE) PREFIX=$(PERLPREFIX) DESTDIR=$(DESTDIR) pure_install \
|
|
- )
|
|
+ cd lib && $(MAKE) PREFIX=$(PERLPREFIX) pure_install
|
|
${SRC}/mkinstalldirs $(DESTDIR)$(BINDIR)
|
|
${SRC}/mkinstalldirs $(DESTDIR)$(SBINDIR)
|
|
- ${SRC}/mkinstalldirs $(DESTDIR)$(ETCDIR)
|
|
${SRC}/mkinstalldirs $(DESTDIR)$(LIBDIR)/templates
|
|
${INSTALL} -m 755 $(BINFILES) $(DESTDIR)$(BINDIR)
|
|
${INSTALL} -m 755 $(SBINFILES) $(DESTDIR)$(SBINDIR)
|
|
@@ -204,13 +200,6 @@ install-bin: check-config lib/Makefile
|
|
# Link to allow foomatic-ppdfile be called under the old name
|
|
# foomatic-datafile
|
|
ln -sf foomatic-ppdfile $(DESTDIR)$(BINDIR)/foomatic-datafile
|
|
-# Link foomatic-ppdfile to the CUPS 1.2 PPD generator directory,
|
|
-# so that the cups-driverd automatically generates Foomatic PPDs
|
|
-# on demand (/usr/lib/cups/driver).
|
|
- if [ -d $(LIB_CUPS) ]; then \
|
|
- ${SRC}/mkinstalldirs $(DESTDIR)$(CUPS_DRIVER); \
|
|
- ln -sf $(BINDIR)/foomatic-ppdfile $(DESTDIR)$(CUPS_DRIVER)/foomatic; \
|
|
- fi
|
|
|
|
install-man: check-config
|
|
${SRC}/mkinstalldirs $(DESTDIR)$(MANDIR)
|
|
@@ -226,6 +215,7 @@ build: defaults lib/Makefile foomatic-combo-xml foomat
|
|
$(PERL) -p -i -e "s=use lib '.*lib/';\n==s" $$m; \
|
|
done
|
|
chmod a+rx $(AC_OUTPUT_FILES) mkinstalldirs
|
|
+ cd lib && $(MAKE) PREFIX=$(PERLPREFIX)
|
|
|
|
lib/Makefile: lib/Makefile.PL
|
|
( cd lib && $(PERL) Makefile.PL verbose INSTALLDIRS=$(PERL_INSTALLDIRS) )
|