diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..402e22a96 --- /dev/null +++ b/debian/rules @@ -0,0 +1,40 @@ +#!/usr/bin/make -f + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +%: + LD_LIBRARY_PATH=`pwd`/debian/libnx-x11/usr/lib/nx/X11:$$LD_LIBRARY_PATH dh $@ --with quilt + +override_dh_auto_clean: + rm -Rf nx-X11/.build-exports + LD_LIBRARY_PATH=`pwd`/debian/libnx-x11/usr/lib/nx/X11:$$LD_LIBRARY_PATH dh_auto_clean + +override_dh_auto_build: + debian/pre-build-nx.sh + LD_LIBRARY_PATH=`pwd`/debian/libnx-x11/usr/lib/nx/X11:$$LD_LIBRARY_PATH dh_auto_build --with quilt + debian/post-build-nx.sh + +override_dh_auto_install: + +override_dh_quilt_patch: + dh_quilt_patch + chmod a+x bin/nxagent + chmod a+x bin/nxproxy + +override_dh_quilt_unpatch: + dh_quilt_unpatch + +#override_dh_strip: +# dh_strip -plibnx-x11 --dbg-package=libnx-x11-dbg +# dh_strip -plibxcomp3 --dbg-package=libxcomp-dbg +# dh_strip -plibxcompext3 --dbg-package=libxcompext-dbg +# dh_strip -plibxcompshad3 --dbg-package=libxcompshad-dbg +# dh_strip -pnxagent --dbg-package=nxagent-dbg +# +#.PHONY: override_dh_strip |