patch-Makefile 663 B

12345678910111213141516171819202122
  1. --- Makefile.orig Wed Sep 8 09:40:21 2010
  2. +++ Makefile Wed Sep 8 09:51:02 2010
  3. @@ -0,0 +1,18 @@
  4. +PYTHON_INCLUDES=-I$(LOCALBASE)/include/python${MODPY_VERSION}
  5. +
  6. +all: bg5pdflib.so
  7. +
  8. +bg5pdflib.so: bg5pdflib.o
  9. + $(CC) -shared bg5pdflib.o -L$(LOCALBASE)/lib -lpdf -lz -o $@
  10. +
  11. +.c.o:
  12. + $(CC) $(CFLAGS) -fPIC $(PYTHON_INCLUDES) -I$(LOCALBASE)/include -c $<
  13. +
  14. +install:
  15. + mkdir -p $(DESTDIR)/$(LOCALBASE)/lib/python${MODPY_VERSION}/site-packages
  16. + install -m 755 -o root -g bin bg5pdf $(DESTDIR)/$(LOCALBASE)/bin
  17. + install -m 644 -o root -g bin bg5pdflib.so \
  18. + $(DESTDIR)/$(LOCALBASE)/lib/python${MODPY_VERSION}/site-packages
  19. +
  20. +clean:
  21. + rm -f *.o bg5pdflib.so