Commit e97e4e1f authored by Ruben Undheim's avatar Ruben Undheim

Set deb layout and simplify search for headers

parent 458f24fc
......@@ -49,22 +49,8 @@ override_dh_auto_install:
chrpath -d debian/tmp/usr/bin/AppCSXCAD
chrpath -d debian/tmp/usr/bin/nf2ff
chrpath -d debian/tmp/usr/bin/openEMS
mkdir -p CSXCAD/python/include/openEMS && cp openEMS/openems.h CSXCAD/python/include/openEMS/ && \
cp openEMS/nf2ff/nf2ff.h CSXCAD/python/include/openEMS/ && \
cp openEMS/nf2ff/nf2ff_calc.h CSXCAD/python/include/openEMS/ && \
mkdir -p CSXCAD/python/include/CSXCAD/ && \
find CSXCAD/src/ -name "*.h" -exec cp {} CSXCAD/python/include/CSXCAD/ \;
#mkdir -p CSXCAD/python/include/openEMS/ && \
#find openEMS/src/ -name "*.h" -exec cp {} CSXCAD/python/include/openEMS/ \;
cd CSXCAD/python && CPPFLAGS=-Iinclude LDFLAGS=-L../../debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) python2 setup.py build_ext && python2 setup.py install --prefix=../../debian/tmp/usr
mkdir -p openEMS/python/include/openEMS && cp openEMS/openems.h openEMS/python/include/openEMS/ && \
cp openEMS/nf2ff/nf2ff.h openEMS/python/include/openEMS/ && \
cp openEMS/nf2ff/nf2ff_calc.h openEMS/python/include/openEMS/ && \
mkdir -p openEMS/python/include/CSXCAD/ && \
find CSXCAD/src/ -name "*.h" -exec cp {} openEMS/python/include/CSXCAD/ \;
#mkdir -p openEMS/python/include/openEMS/ && \
#find openEMS/src/ -name "*.h" -exec cp {} openEMS/python/include/openEMS/ \;
cd openEMS/python && CPPFLAGS=-Iinclude LDFLAGS=-L../../debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) python2 setup.py build_ext && python2 setup.py install --prefix=../../debian/tmp/usr
cd CSXCAD/python && CPPFLAGS=-I../../debian/tmp/usr/include LDFLAGS=-L../../debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) python2 setup.py build_ext && python2 setup.py install --prefix=../../debian/tmp/usr --install-layout=deb
cd openEMS/python && CPPFLAGS=-I../../debian/tmp/usr/include LDFLAGS=-L../../debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) python2 setup.py build_ext && python2 setup.py install --prefix=../../debian/tmp/usr --install-layout=deb
override_dh_auto_clean:
dh_auto_clean
......
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