ffmpeg-6: fix COMPONENT_REVISION
[oi-userland.git] / components / web / aget / patches / 01_Makefile.Solaris.patch
blob7470aefc84b5b60febf56d7b01bbc0224592315f
1 --- aget-0.4.1/Makefile.Solaris 2016-12-21 22:44:23.411350275 -0200
2 +++ aget-0.4.1-oi/Makefile.Solaris 2016-12-21 22:49:04.283929368 -0200
3 @@ -2,19 +2,21 @@
4 # http://www.enderunix.org/aget/
6 OBJS = main.o Aget.o Misc.o Head.o Signal.o Download.o Resume.o
7 -CFLAGS = -g -W -DSOLARIS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
8 -LDFLAGS = -lpthread -lsocket -lnsl -lresolv
9 -CC = gcc
10 +CFLAGS += -DSOLARIS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
11 +LDFLAGS += -lpthread -lsocket -lnsl -lresolv
12 STRIP=/usr/ccs/bin/strip
14 all: $(OBJS)
15 - $(CC) -o aget $(OBJS) $(LDFLAGS)
16 + $(CC) -m$(BITS) -o aget $(OBJS) $(LDFLAGS)
18 strip: $(all)
19 $(STRIP) aget
21 install:
22 - cp -f aget /usr/local/bin/aget
23 + mkdir -p $(PREFIX)/bin
24 + mkdir -p $(PREFIX)/share/man/man1
25 + cp -f aget $(PREFIX)/bin/aget
26 + cp -f aget.1.Solaris $(PREFIX)/share/man/man1/aget.1
28 clean:
29 rm -f aget *.o core.* *~