source: trunk/dports/sysutils/rpm/files/patch-python-makefile-in.diff @ 2713

Last change on this file since 2713 was 2713, checked in by ranger, 17 years ago

Bug: 604
Submitted by:
Reviewed by: ssen@…
Approved by:
Obtained from:
Changes to handle a number of packaging bits work better.

  1. added python module support, so that yum (and maybe others) can be built
  2. added support for generating provides and depends for libraries and other binaries. frameworks show up as just the framework name without paths in the provides/requires lists.
  3. added support for a "fat" architecture, that is allowed to be installed on both i386 and ppc. it can be enabled by setting the BuildArch to "fat" and making sure compilation has fat linking enabled.
  • Property svn:eol-style set to native
File size: 1.2 KB
  • Makefile.in

    old new  
    210210        $(top_builddir)/popt/libpopt.la
    211211
    212212
    213 LDADD =
     213LDADD =
    214214
    215215pythondir = $(prefix)/lib/python${PYVER}/site-packages
    216 python_PROGRAMS = rpmmodule.so poptmodule.so
     216python_LTLIBRARIES = rpmmodule.so poptmodule.so
    217217
    218218rpmmodule_so_SOURCES =
    219 rpmmodule_so_LDFLAGS = $(mylibs) $(LIBS) -shared -Wl,-soname,rpmmodule.so
     219rpmmodule_so_LDFLAGS = $(mylibs) $(LIBS) -bundle -bundle_loader $(__PYTHON)
    220220poptmodule_so_SOURCES = poptmodule.c
    221 poptmodule_so_LDFLAGS = $(mylibs) $(LIBS) -shared -Wl,-soname,poptmodule.so
     221poptmodule_so_LDFLAGS = $(mylibs) $(LIBS) -bundle -bundle_loader $(__PYTHON)
    222222
    223223noinst_LTLIBRARIES = librpmmodule.la
    224224librpmmodule_la_SOURCES = rpmmodule.c hash.c upgrade.c
     
    476476
    477477
    478478rpmmodule.so: $(librpmmodule_la_OBJECTS)
    479         $(LINK) -o $@ $(librpmmodule_la_OBJECTS) $(rpmmodule_so_LDFLAGS)
     479        $(LINK) $(librpmmodule_la_OBJECTS) $(rpmmodule_so_LDFLAGS)
    480480
    481481poptmodule.so: $(poptmodule_so_OBJECTS)
    482         $(LINK) -o $@ $(poptmodule_so_OBJECTS) $(poptmodule_so_LDFLAGS)
     482        $(LINK) $(poptmodule_so_OBJECTS) $(poptmodule_so_LDFLAGS)
    483483
    484484.PHONY: lclint
    485485lclint:
Note: See TracBrowser for help on using the repository browser.