debian swirl logo

Back to the packages list texmacs

#!/usr/bin/make -f

include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
include /usr/share/cdbs/1/class/gnome.mk
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND = -Wall
#include /usr/share/dpkg/buildflags.mk

DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/usr/ --libexecdir=/usr/lib/texmacs --datadir=/usr/share/texmacs --mandir=/usr/share/man

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	DEB_CONFIGURE_EXTRA_FLAGS += --disable-optimize
else
	DEB_CONFIGURE_EXTRA_FLAGS += --enable-optimize
endif

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
	DEB_CONFIGURE_EXTRA_FLAGS += --enable-debug
endif

clean::
		rm -rf TeXmacs/misc/pixmacs/.xvpics
		rm -f config.log misc/admin/admin.makefile
		rm -f packages/macos/Base.xcconfig
		rm -f plugins/maxima/bin/maxima_filter

binary-post-install/texmacs-common::
		mv debian/texmacs-common/usr/share/texmacs/TeXmacs/misc/pixmaps debian/texmacs-common/usr/share/pixmaps/texmacs
	# mime support
		cp debian/texmacs-common/usr/share/texmacs/TeXmacs/misc/mime/texmacs.xml debian/texmacs-common/usr/share/mime/packages/
		cp debian/texmacs-common/usr/share/texmacs/TeXmacs/misc/images/text-texmacs.svg debian/texmacs-common/usr/share/icons/gnome/scalable/mimetypes/
		cp debian/texmacs-common/usr/share/texmacs/TeXmacs/misc/mime/texmacs.desktop debian/texmacs-common/usr/share/applications/
		cp debian/texmacs-common/usr/share/texmacs/TeXmacs/misc/images/TeXmacs.svg debian/texmacs-common/usr/share/pixmaps/

		rm debian/texmacs-common/usr/share/texmacs/TeXmacs/LICENSE \
		   debian/texmacs-common/usr/share/texmacs/TeXmacs/fonts/LICENSE \
		   debian/texmacs-common/usr/share/texmacs/TeXmacs/fonts/LATEX_LICENSE \
		   debian/texmacs-common/usr/share/pixmaps/texmacs/LICENSE \
		   debian/texmacs-common/usr/share/texmacs/TeXmacs/plugins/octave/doc/COPYING
#	rm debian/texmacs-common/usr/share/texmacs/TeXmacs/fonts/type1/.*DS* \
		   debian/texmacs-common/usr/share/texmacs/TeXmacs/fonts/type1/math/.*DS* \
		   debian/texmacs-common/usr/share/texmacs/TeXmacs/plugins/fricas/progs/._*
		install -m 644 debian/texmacs-common.lintian debian/texmacs-common/usr/share/lintian/overrides/texmacs-common

		ln -s ../../../pixmaps/texmacs debian/texmacs-common/usr/share/texmacs/TeXmacs/misc/pixmaps
		ln -s ../../common-licenses/GPL debian/texmacs-common/usr/share/texmacs/TeXmacs/LICENSE 

binary-post-install/texmacs::
		sh ./debian/fixsh

binary-predeb/texmacs-common::
		chmod a+x debian/texmacs-common/usr/share/texmacs/TeXmacs/langs/encoding/*.awk

Builds:

texmacs-common
wysiwyg mathematical text editor using tex fonts
texmacs
wysiwyg mathematical text editor using tex fonts