Ticket #48554: stfl.diff
File stfl.diff, 4.2 KB (added by Raimondi (Israel Chauca Fuentes), 9 years ago) |
---|
-
Portfile
3 3 PortSystem 1.0 4 4 5 5 name stfl 6 version 0.2 06 version 0.24 7 7 categories devel 8 8 platforms darwin 9 9 maintainers lutz.horn@fastmail.fm … … 18 18 concentrate on the more interesting programming tasks. 19 19 20 20 homepage http://www.clifford.at/stfl/ 21 master_sites http://www.clifford.at/stfl/21 master_sites ${homepage} 22 22 distname stfl-${version} 23 23 24 checksums md5 905e0b8f81fe1b5c95b8d78f56df966b \ 25 sha1 0bd33d44fd71c8e2f1383fab52d4db547384024c \ 26 rmd160 d99415b39c110459a5f10eb58242291fb4a87ce4 24 checksums md5 98c764ccc8f13ed05ea22559d7116b96 \ 25 sha1 c770a20f719f5a7f0a691727098c51b43df9c33c \ 26 rmd160 374ef95e6de3e77991a469ce75c1c972d8c8a3be \ 27 sha256 d4a7aa181a475aaf8a8914a8ccb2a7ff28919d4c8c0f8a061e17a0c36869c090 27 28 28 29 depends_lib port:ncurses \ 29 30 port:libiconv … … 39 40 build.env CC=${configure.cc} \ 40 41 CFLAGS=${configure.cppflags} \ 41 42 LDLIBS=${configure.ldflags} 43 44 livecheck.type regex 45 livecheck.url ${homepage} 46 livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix} -
files/patch-Makefile.diff
1 --- Makefile.orig 20 09-04-27 06:03:30.000000000 -05002 +++ Makefile 20 09-08-03 01:51:20.000000000 -05003 @@ -20, 9 +20,8@@1 --- Makefile.orig 2015-08-11 12:50:41.000000000 -0400 2 +++ Makefile 2015-08-11 17:44:44.000000000 -0400 3 @@ -20,14 +20,17 @@ 4 4 5 5 include Makefile.cfg 6 6 … … 7 7 -export CC = gcc -pthread 8 8 export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC 9 9 -export LDLIBS += -lncursesw 10 +export LDLIBS += -lncursesw -liconv10 +export LDLIBS += $(LD_FLAGS) -lncursesw -liconv 11 11 12 VERSION := 0.20 12 SONAME := libstfl.so.0 13 VERSION := 0.24 13 14 14 @@ -48,8 +47,8 @@ 15 rm -f stfl.pc 15 -all: libstfl.so.$(VERSION) libstfl.a example 16 +SONAME := libstfl.dylib 17 +SONAME0 := libstfl.0.dylib 18 +SONAMEV := libstfl.$(VERSION).dylib 19 + 20 +all: $(SONAMEV) libstfl.a example 16 21 22 example: libstfl.a example.o 23 24 @@ -37,24 +40,24 @@ 25 ar qc $@ $^ 26 ranlib $@ 27 28 -libstfl.so.$(VERSION): public.o base.o parser.o dump.o style.o binding.o iconv.o \ 29 +$(SONAMEV): public.o base.o parser.o dump.o style.o binding.o iconv.o \ 30 $(patsubst %.c,%.o,$(wildcard widgets/*.c)) 31 - $(CC) -shared -Wl,-soname,$(SONAME) -o $@ $(LDLIBS) $^ 32 + $(CC) -shared -Wl -install_name $(prefix)/lib/$@ -o $@ $(LDLIBS) $^ 33 34 clean: 35 rm -f libstfl.a example core core.* *.o Makefile.deps 36 rm -f widgets/*.o spl/mod_stfl.so spl/example.db 37 cd perl5 && perl Makefile.PL && make clean && rm -f Makefile.old 38 rm -f perl5/stfl_wrap.c perl5/stfl.pm perl5/build_ok 39 - rm -f python/stfl.py python/stfl.pyc python/_stfl.so 40 + rm -f python/stfl.py python/stfl.pyc python/_stfl.so 41 rm -f python/stfl_wrap.c python/stfl_wrap.o 42 rm -f ruby/Makefile ruby/stfl_wrap.c ruby/stfl_wrap.o 43 rm -f ruby/stfl.so ruby/build_ok Makefile.deps_new 44 - rm -f stfl.pc libstfl.so libstfl.so.* 45 + rm -f stfl.pc $(SONAME) $(SONAME0) $(SONAMEV) 46 17 47 Makefile.deps: *.c widgets/*.c *.h 18 48 - $(CC) -I. -MM *.c > Makefile.deps_new 19 49 - $(CC) -I. -MM widgets/*.c | sed 's,^wt_[^ ]*\.o: ,widgets/&,' >> Makefile.deps_new … … 22 52 mv -f Makefile.deps_new Makefile.deps 23 53 24 54 install: all stfl.pc 25 @@ -66,18 +65,6 @@ 55 @@ -63,8 +66,8 @@ 56 install -m 644 libstfl.a $(DESTDIR)$(prefix)/$(libdir) 57 install -m 644 stfl.h $(DESTDIR)$(prefix)/include/ 58 install -m 644 stfl.pc $(DESTDIR)$(prefix)/$(libdir)/pkgconfig/ 59 - install -m 644 libstfl.so.$(VERSION) $(DESTDIR)$(prefix)/$(libdir) 60 - ln -fs libstfl.so.$(VERSION) $(DESTDIR)$(prefix)/$(libdir)/libstfl.so 61 + install -m 644 $(SONAMEV) $(DESTDIR)$(prefix)/$(libdir) 62 + ln -fs $(SONAMEV) $(DESTDIR)$(prefix)/$(libdir)/$(SONAME) 63 64 stfl.pc: stfl.pc.in 65 sed 's,@VERSION@,$(VERSION),g' < $< | sed 's,@PREFIX@,$(prefix),g' > $@ 66 @@ -73,18 +76,6 @@ 26 67 include spl/Makefile.snippet 27 68 endif 28 69