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 +09002 +++ Makefile.in 2007-11-02 22:34:14.000000000 +09003 @@ -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).030 - ln -f -s libtokyocabinet.so.$(LIBVER).$(LIBREV).0 $@31 +libtokyocabinet.$(LIBVER).dylib : libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib32 + ln -f -s libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib $@33 34 35 -libtokyocabinet.so : libtokyocabinet.so.$(LIBVER).$(LIBREV).036 - ln -f -s libtokyocabinet.so.$(LIBVER).$(LIBREV).0 $@37 +libtokyocabinet.dylib : libtokyocabinet.$(LIBVER).$(LIBREV).0.dylib38 + 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 +09002 +++ configure 2007-10-28 14:13:47.000000000 +09003 @@ -2862,9 +2862,9 @@4 # shared libraries libraries5 if test "$enable_shared" != "no" && test "$enable_profile" != "yes"6 then7 - 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 fi14 15 -
databases/tokyocabinet/Portfile
3 3 PortSystem 1.0 4 4 5 5 name tokyocabinet 6 version 1.0. 26 version 1.0.3 7 7 categories databases 8 8 maintainers rsky0711@gmail.com 9 9 platforms darwin … … 17 17 homepage http://tokyocabinet.sourceforge.net/ 18 18 master_sites ${homepage} \ 19 19 sourceforge:${name} 20 checksums md5 8aeb7283c7bb91ea3069920fb3ee8a36\21 sha1 5403071c2260b8dfe527f707cbf23f21b6a4af65\22 rmd160 30b9d0a088180b295f68058f3b154599958e6d0b20 checksums md5 11a34eabaaef47e7c87a61ac1fb3bf9a \ 21 sha1 ddb4975d4647f24a4277eda86947a971d2e4d5e6 \ 22 rmd160 9959c7da413d03f60c766655c97333ff790cb4a9 23 23 24 24 25 25 depends_lib port:zlib … … 27 27 configure.args --mandir=${prefix}/share/man \ 28 28 --datadir=${prefix}/share/doc 29 29 30 platform darwin {31 patchfiles-append patch-Makefile.in patch-configure32 }33 34 30 post-patch { 35 31 # configure 36 32 reinplace "s|\$HOME|\${prefix}|g" ${worksrcpath}/configure … … 38 34 reinplace "s|\$(HOME)|\$(prefix)|g" ${worksrcpath}/Makefile.in 39 35 } 40 36 41 post-configure {42 # tokyocabinet.pc43 reinplace "s|@MYLDOPTS@||g" ${worksrcpath}/tokyocabinet.pc44 }45 46 37 test.run yes 47 38 test.target check 48 39 … … 64 55 configure.args-append --enable-fastest 65 56 } 66 57 58 variant off64 description {build with 64-bit file offset on 32-bit system} { 59 configure.args-append --enable-off64 60 } 61 67 62 variant swap description {build for swapping byte-orders} { 68 63 configure.args-append --enable-swap 69 64 }