openbsd-ports/chinese/bg5pdf/patches/patch-Makefile
kevlo 9588cf1bca Initial import of bg5pdf-1.0.0
Bg5pdf is a simple wrapper for wrapping big5 encoding text file into
PDF file by using PDFlib. The output of this program does not contain
embedding fonts.  You have to download Acrobat Acroread Asianfont pack
to view and print the output file.  This wrapper does not provide any
formatting function except simple line wrapping.  If you need
sophisticated formatting, you should try CJK-LaTex or other equivalent
tools.
2001-12-14 15:33:00 +00:00

22 lines
654 B
Plaintext

--- Makefile.orig Fri Dec 14 18:55:38 2001
+++ Makefile Fri Dec 14 18:59:07 2001
@@ -0,0 +1,18 @@
+PYTHON_INCLUDES=-I$(LOCALBASE)/include/python$(PYTHON_VER)
+
+all: bg5pdflib.so
+
+bg5pdflib.so: bg5pdflib.o
+ $(CC) -shared bg5pdflib.o -L$(LOCALBASE)/lib -lpdf -lz -o $@
+
+.c.o:
+ $(CC) $(CFLAGS) -fPIC $(PYTHON_INCLUDES) -I$(LOCALBASE)/include -c $<
+
+install:
+ mkdir -p $(DESTDIR)/$(LOCALBASE)/lib/python$(PYTHON_VER)/site-packages
+ install -m 755 -o root -g bin bg5pdf $(DESTDIR)/$(LOCALBASE)/bin
+ install -m 644 -o root -g bin bg5pdflib.so \
+ $(DESTDIR)/$(LOCALBASE)/lib/python$(PYTHON_VER)/site-packages
+
+clean:
+ rm -f *.o bg5pdflib.so