Ticket #13211: tokyocabinet-1.0.3.diff

File tokyocabinet-1.0.3.diff, 4.5 KB (added by rsky0711@…, 17 years ago)
  • databases/tokyocabinet/files/patch-Makefile.in

     
    1 --- Makefile.in.orig    2007-10-27 17:02:07.000000000 +0900
    2 +++ Makefile.in 2007-11-02 22:34:14.000000000 +0900
    3 @@ -51,8 +51,8 @@
    4  CFLAGS = @MYCFLAGS@
    5  LDFLAGS = @MYLDFLAGS@
    6  LIBS = @LIBS@
    7 -LDENV = LD_RUN_PATH=/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@:.
    8 -RUNENV = LD_LIBRARY_PATH=.:/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@
    9 +LDENV =
    10 +RUNENV = DYLD_LIBRARY_PATH=.:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@
    11  POSTCMD = @MYPOSTCMD@
    12  
    13  
    14 @@ -302,17 +302,20 @@
    15         $(AR) $(ARFLAGS) $@ $(LIBOBJFILES)
    16  
    17  
    18 -libtokyocabinet.so.$(LIBVER).$(LIBREV).0 : $(LIBOBJFILES)
    19 -       $(CC) -shared -Wl,-soname,libtokyocabinet.so.$(LIBVER) -o $@ $(LIBOBJFILES) \
    20 -         $(LDFLAGS) $(LIBS)
    21 +libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib : $(LIBOBJFILES)
    22 +       $(CC) -dynamiclib \
    23 +         -install_name $(DESTDIR)$(LIBDIR)/libtokyocabinet.$(LIBVER).dylib \
    24 +         -current_version $(LIBVER).$(LIBREV).0 \
    25 +         -compatibility_version $(LIBVER) \
    26 +         -o $@ $(LIBOBJFILES) $(LDFLAGS) $(LIBS)
    27  
    28  
    29 -libtokyocabinet.so.$(LIBVER) : libtokyocabinet.so.$(LIBVER).$(LIBREV).0
    30 -       ln -f -s libtokyocabinet.so.$(LIBVER).$(LIBREV).0 $@
    31 +libtokyocabinet.$(LIBVER).dylib : libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib
    32 +       ln -f -s libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib $@
    33  
    34  
    35 -libtokyocabinet.so : libtokyocabinet.so.$(LIBVER).$(LIBREV).0
    36 -       ln -f -s libtokyocabinet.so.$(LIBVER).$(LIBREV).0 $@
    37 +libtokyocabinet.dylib : libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib
    38 +       ln -f -s libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib $@
    39  
    40  
    41  tcutest : tcutest.o $(LIBRARYFILES)
  • databases/tokyocabinet/files/patch-configure

     
    1 --- configure.orig      2007-10-23 21:44:42.000000000 +0900
    2 +++ configure   2007-10-28 14:13:47.000000000 +0900
    3 @@ -2862,9 +2862,9 @@
    4  # shared libraries libraries
    5  if test "$enable_shared" != "no" && test "$enable_profile" != "yes"
    6  then
    7 -  MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.so.$MYLIBVER.$MYLIBREV.0"
    8 -  MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.so.$MYLIBVER"
    9 -  MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.so"
    10 +  MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.$MYLIBVER.$MYLIBREV.0.dylib"
    11 +  MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.$MYLIBVER.dylib"
    12 +  MYLIBRARYFILES="$MYLIBRARYFILES libtokyocabinet.dylib"
    13  fi
    14  
    15  
  • databases/tokyocabinet/Portfile

     
    33PortSystem      1.0
    44
    55name            tokyocabinet
    6 version         1.0.2
     6version         1.0.3
    77categories      databases
    88maintainers     rsky0711@gmail.com
    99platforms       darwin
     
    1717homepage        http://tokyocabinet.sourceforge.net/
    1818master_sites    ${homepage} \
    1919                sourceforge:${name}
    20 checksums       md5    8aeb7283c7bb91ea3069920fb3ee8a36 \
    21                 sha1   5403071c2260b8dfe527f707cbf23f21b6a4af65 \
    22                 rmd160 30b9d0a088180b295f68058f3b154599958e6d0b
     20checksums       md5    11a34eabaaef47e7c87a61ac1fb3bf9a \
     21                sha1   ddb4975d4647f24a4277eda86947a971d2e4d5e6 \
     22                rmd160 9959c7da413d03f60c766655c97333ff790cb4a9
    2323
    2424
    2525depends_lib     port:zlib
     
    2727configure.args  --mandir=${prefix}/share/man \
    2828                --datadir=${prefix}/share/doc
    2929
    30 platform darwin {
    31     patchfiles-append patch-Makefile.in patch-configure
    32 }
    33 
    3430post-patch {
    3531    # configure
    3632    reinplace "s|\$HOME|\${prefix}|g" ${worksrcpath}/configure
     
    3834    reinplace "s|\$(HOME)|\$(prefix)|g" ${worksrcpath}/Makefile.in
    3935}
    4036
    41 post-configure {
    42     # tokyocabinet.pc
    43     reinplace "s|@MYLDOPTS@||g" ${worksrcpath}/tokyocabinet.pc
    44 }
    45 
    4637test.run yes
    4738test.target check
    4839
     
    6455    configure.args-append   --enable-fastest
    6556}
    6657
     58variant off64 description {build with 64-bit file offset on 32-bit system} {
     59    configure.args-append   --enable-off64
     60}
     61
    6762variant swap description {build for swapping byte-orders} {
    6863    configure.args-append   --enable-swap
    6964}