Commit 50f18f0c authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all:
tar xf newt-0.52.21.tar.gz
patch -Np1 -d newt-0.52.21 < newt-0.52.21-no_static.patch
cd newt-0.52.21 && ./configure --prefix=/usr --with-gpm-support --with-python=python3.8
$(MAKE) -C newt-0.52.21
$(MAKE) -C newt-0.52.21 install
rm -rf newt-0.52.21
diff -uNr newt-0.52.21/Makefile.in newt-0.52.21-no_static/Makefile.in
--- newt-0.52.21/Makefile.in 2019-05-27 22:27:40.000000000 +0930
+++ newt-0.52.21-no_static/Makefile.in 2021-08-04 18:48:02.180972454 +0930
@@ -25,7 +25,7 @@
TESTOBJS = test.o testgrid.o testtree.o showchars.o showkey.o
NDIALOGOBJS = whiptail.o dialogboxes.o
WHIPTCLOBJS = shared/whiptcl.o shared/dialogboxes.o
-LIBNEWT = libnewt.a
+#LIBNEWT = libnewt.a
LIBNEWTSH = libnewt.$(SOEXT).$(VERSION)
LIBNEWTSONAME = libnewt.$(SOEXT).$(SONAME)
LIBOBJS = newt.o button.o form.o checkbox.o entry.o label.o listbox.o \
@@ -67,20 +67,20 @@
all: $(TARGET) _snack.$(SOEXT)
-test: test.o $(LIBNEWT)
- $(CC) -g -o test test.o $(LIBNEWT) $(LDFLAGS) $(LIBS)
+test: test.o $(LIBNEWTSONAME)
+ $(CC) -g -o test test.o $(LIBNEWTSONAME) $(LDFLAGS) $(LIBS)
-testgrid: testgrid.o $(LIBNEWT)
- $(CC) -g -o testgrid testgrid.o $(LIBNEWT) $(LDFLAGS) $(LIBS)
+testgrid: testgrid.o $(LIBNEWTSONAME)
+ $(CC) -g -o testgrid testgrid.o $(LIBNEWTSONAME) $(LDFLAGS) $(LIBS)
-testtree: testtree.o $(LIBNEWT)
- $(CC) -g -o testtree testtree.o $(LIBNEWT) $(LDFLAGS) $(LIBS)
+testtree: testtree.o $(LIBNEWTSONAME)
+ $(CC) -g -o testtree testtree.o $(LIBNEWTSONAME) $(LDFLAGS) $(LIBS)
-showchars: showchars.o $(LIBNEWT)
- $(CC) -g -o showchars showchars.o $(LIBNEWT) $(LDFLAGS) $(LIBS)
+showchars: showchars.o $(LIBNEWTSONAME)
+ $(CC) -g -o showchars showchars.o $(LIBNEWTSONAME) $(LDFLAGS) $(LIBS)
-showkey: showkey.o $(LIBNEWT)
- $(CC) -g -o showkey showkey.o $(LIBNEWT) $(LDFLAGS) $(LIBS)
+showkey: showkey.o $(LIBNEWTSONAME)
+ $(CC) -g -o showkey showkey.o $(LIBNEWTSONAME) $(LDFLAGS) $(LIBS)
_snack.$(SOEXT): snack.c $(LIBNEWTSH)
@[ -n "$(PYTHONVERS)" ] && for ver in $(PYTHONVERS); do \
@@ -108,7 +108,7 @@
whiptcl.$(SOEXT): $(WHIPTCLOBJS) $(LIBNEWTSH)
$(CC) -shared $(SHCFLAGS) $(LDFLAGS) -o whiptcl.$(SOEXT) $(WHIPTCLOBJS) -L. -lnewt $(LIBTCL) -lpopt $(LIBS)
-$(LIBNEWT): $(LIBOBJS)
+$(LIBNEWTSONAME): $(LIBOBJS)
ar rv $@ $^
newt.o $(SHAREDDIR)/newt.o: newt.c Makefile
@@ -117,7 +117,7 @@
rm -f .depend *.pc
clean:
- rm -f $(PROGS) *.o $(LIBNEWT) core $(LIBNEWTSH) \
+ rm -f $(PROGS) *.o $(LIBNEWTSONAME) core $(LIBNEWTSH) \
$(SHAREDDIR)/*.o *.$(SOEXT)*
depend:
@@ -134,14 +134,14 @@
@mkdir -p $(SHAREDDIR)
$(CC) $(SHCFLAGS) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
-install: $(LIBNEWT) install-sh whiptail
+install: $(LIBNEWTSONAME) install-sh whiptail
[ -d $(instroot)/$(bindir) ] || install -m 755 -d $(instroot)/$(bindir)
[ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
[ -d $(instroot)/$(includedir) ] || install -m 755 -d $(instroot)/$(includedir)
[ -d $(instroot)/$(man1dir) ] || install -m 755 -d $(instroot)/$(man1dir)
[ -d $(instroot)/$(pkgconfigdir) ] || install -m 755 -d $(instroot)/$(pkgconfigdir)
install -m 644 newt.h $(instroot)/$(includedir)
- install -m 644 $(LIBNEWT) $(instroot)/$(libdir)
+# install -m 644 $(LIBNEWTSONAME) $(instroot)/$(libdir)
install -m 755 whiptail $(instroot)/$(bindir)
install -m 644 whiptail.1 $(instroot)/$(man1dir)
make -C po datadir=$(instroot)/$(datadir) install
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment