Blame SOURCES/mpage25-config.patch
|
|
e3d297 |
diff -up mpage-2.5.6/Makefile.config mpage-2.5.6/Makefile
|
|
|
e3d297 |
--- mpage-2.5.6/Makefile.config 2004-05-30 21:38:31.000000000 +0200
|
|
|
e3d297 |
+++ mpage-2.5.6/Makefile 2009-03-27 11:11:14.652186064 +0100
|
|
|
e3d297 |
@@ -40,7 +40,7 @@ CC=gcc
|
|
|
e3d297 |
# See glob.c for all possibilities
|
|
|
e3d297 |
#
|
|
|
e3d297 |
# PAGESIZE=Letter
|
|
|
e3d297 |
-PAGESIZE=A4
|
|
|
e3d297 |
+PAGESIZE=Letter
|
|
|
e3d297 |
|
|
|
e3d297 |
#
|
|
|
e3d297 |
# Define your spooler type
|
|
|
e3d297 |
@@ -50,7 +50,7 @@ PAGESIZE=A4
|
|
|
e3d297 |
SPOOL_TYPE=BSD_SPOOLER
|
|
|
e3d297 |
|
|
|
e3d297 |
# PREFIX=e:/usr # OS/2 type
|
|
|
e3d297 |
-PREFIX=/usr/local
|
|
|
e3d297 |
+PREFIX=/usr
|
|
|
e3d297 |
#PREFIX=/usr
|
|
|
e3d297 |
BINDIR=$(PREFIX)/bin
|
|
|
e3d297 |
LIBDIR=$(PREFIX)/share
|
|
|
e3d297 |
@@ -73,7 +73,7 @@ SHEETMARGIN=18
|
|
|
e3d297 |
#
|
|
|
e3d297 |
DEFAULT_DUPLEX=0
|
|
|
e3d297 |
|
|
|
e3d297 |
-DEFS = -DPAGE_DEF=\"${PAGESIZE}\" -DLIBDIR=\"${LIBDIR}/mpage\" -DDEFAULT_ENCODING=${ENCODING} -DDEFAULT_DUPLEX=${DEFAULT_DUPLEX} -DDEFAULTSMARGIN=${SHEETMARGIN} -DSPOOLER=${SPOOL_TYPE} # -DKANJI
|
|
|
e3d297 |
+DEFS = -DPAGE_DEF=\"${PAGESIZE}\" -DLIBDIR=\"${LIBDIR}/mpage\" -DDEFAULT_ENCODING=${ENCODING} -DDEFAULT_DUPLEX=${DEFAULT_DUPLEX} -DDEFAULTSMARGIN=${SHEETMARGIN} -DSPOOLER=${SPOOL_TYPE} -DKANJI
|
|
|
e3d297 |
|
|
|
e3d297 |
|
|
|
e3d297 |
############################################################################
|
|
|
e3d297 |
@@ -107,7 +107,7 @@ O = .o
|
|
|
e3d297 |
# If you are using gcc, you probably don't need to change anything here.
|
|
|
e3d297 |
|
|
|
e3d297 |
# Linux:
|
|
|
e3d297 |
-CFLAGS = -O2 -s $(DEFS) -Wall
|
|
|
e3d297 |
+CFLAGS = $(RPM_OPT_FLAGS) $(DEFS) -Wall
|
|
|
e3d297 |
|
|
|
e3d297 |
# AIX (xlC on aix 4):
|
|
|
e3d297 |
#CFLAGS = -O2 -s $(DEFS)
|
|
|
e3d297 |
@@ -183,5 +183,4 @@ install:
|
|
|
e3d297 |
if [ ! -d $(MANDIR) ] ; then mkdir -p $(MANDIR) ; fi
|
|
|
e3d297 |
cp mpage$(E) $(BINDIR)
|
|
|
e3d297 |
cp mpage.1 $(MANDIR)
|
|
|
e3d297 |
- -cp Encodings/* $(LIBDIR)/mpage
|
|
|
e3d297 |
- -chmod 644 $(LIBDIR)/mpage/*
|
|
|
e3d297 |
+ install -p -m 644 Encodings/* $(LIBDIR)/mpage
|