External, Non-PPA KXStudio Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
919B

  1. #!/usr/bin/make -f
  2. KXSTUDIO_NO_FASTMATH = y
  3. include /usr/share/dpkg/kxstudio.mk
  4. export GLEW_DEST = /opt/kxstudio
  5. export GLEW_PREFIX = /opt/kxstudio
  6. export BINDIR = /opt/kxstudio/bin
  7. export INCDIR = /opt/kxstudio/include/GL
  8. export PKGDIR = /opt/kxstudio/lib/pkgconfig
  9. override_dh_auto_configure:
  10. mv config/config.guess config/config.guess.bak
  11. ln -sf /usr/share/misc/config.guess config/
  12. override_dh_auto_build:
  13. dh_auto_build -- \
  14. GL_LDFLAGS=-lGL \
  15. GLU_LDFLAGS=-lGLU \
  16. GLUT_LDFLAGS=-lglut \
  17. LIBDIR=/opt/kxstudio/lib \
  18. SYSTEM=$(firstword $(subst -, ,$(DEB_HOST_GNU_SYSTEM))) \
  19. 'LD=$$(CC)' \
  20. 'OPT=$(CFLAGS)'
  21. override_dh_auto_install:
  22. $(MAKE) install.all DESTDIR=$(CURDIR)/debian/tmp LIBDIR=/opt/kxstudio/lib
  23. rm $(CURDIR)/debian/tmp/opt/kxstudio/lib/*.so*
  24. override_dh_auto_clean:
  25. if [ -e config/config.guess.bak ]; then mv config/config.guess.bak config/config.guess; fi
  26. dh_auto_clean
  27. %:
  28. dh $@