]> git.pld-linux.org Git - packages/newt.git/commitdiff
- patch that disables compilation of tcl and python bindings for newt (usefull during...
authorJacek Konieczny <jajcus@pld-linux.org>
Fri, 19 Dec 2003 14:30:34 +0000 (14:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    newt-c_only.patch -> 1.1

newt-c_only.patch [new file with mode: 0644]

diff --git a/newt-c_only.patch b/newt-c_only.patch
new file mode 100644 (file)
index 0000000..7235d86
--- /dev/null
@@ -0,0 +1,52 @@
+diff -durN -x '*~' newt-0.50.34.orig/Makefile.in newt-0.50.34/Makefile.in
+--- newt-0.50.34.orig/Makefile.in      2004-12-19 15:14:00.000000000 +0100
++++ newt-0.50.34/Makefile.in   2004-12-19 15:16:31.972344880 +0100
+@@ -30,9 +30,6 @@
+ libdir = $(prefix)/lib
+ bindir = $(prefix)/bin
+ ARCHNAME = $(shell uname -m | sed 's/i.86/i386/')
+-pythondir = $(shell python -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('DESTLIB');")
+-pythonbindir = $(shell python -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('DESTSHARED');")
+-pythonincludedir = $(shell python -c 'from distutils.sysconfig import get_python_inc; print get_python_inc();')
+ #--------------------------------------
+@@ -47,7 +44,7 @@
+ TARGET=depend $(PROGS)
+ endif
+-all:  $(TARGET) _snackmodule.so
++all:  $(TARGET)
+ test: $(TESTOBJS) $(LIBNEWT)
+       gcc -g -o test $(TESTOBJS) $(LIBNEWT) $(LIBS) -static
+@@ -58,12 +55,6 @@
+ testtree:     testtree.o $(LIBNEWT)
+       gcc -g -o testtree testtree.o $(LIBNEWT) $(LIBS)
+-_snackmodule.so:   snackmodule.o $(LIBNEWTSH)
+-      gcc --shared $(SHCFLAGS) -o _snackmodule.so snackmodule.o -L . $(LIBNEWTSH)
+-
+-snackmodule.o:   snackmodule.c
+-      gcc -I$(pythonincludedir) -fPIC $(CFLAGS) -c snackmodule.c
+-
+ whiptail: $(NDIALOGOBJS) $(LIBNEWTSH)
+       gcc -g -o whiptail $(NDIALOGOBJS) -L . $(LIBNEWTSH) $(LIBS) -lpopt
+@@ -108,15 +99,11 @@
+       install -m 644 $(LIBNEWT) $(instroot)/$(libdir)
+       install -s -m 755 whiptail $(instroot)/$(bindir)
+-install-sh: sharedlib whiptcl.so _snackmodule.so
++install-sh: sharedlib 
+       [ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
+       install -s -m 755 $(LIBNEWTSH) $(instroot)/$(libdir)
+       ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/$(LIBNEWTSONAME)
+       ln -sf $(LIBNEWTSONAME) $(instroot)/$(libdir)/libnewt.so
+-      install -s -m 755 whiptcl.so $(instroot)/$(libdir)
+-      [ -d $(instroot)/$(pythonbindir) ] || install -m 755 -d $(instroot)/$(pythonbindir)
+-      install -s -m 755 _snackmodule.so $(instroot)/$(pythonbindir)
+-      install -m 755 snack.py $(instroot)/$(pythondir)
+ configure:  configure.in
+       autoconf
This page took 0.034692 seconds and 4 git commands to generate.