debian swirl logo

Back to the packages list slxfig

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_MAKE_BUILD_TARGET := all RPATH=
DEB_MAKE_INSTALL_TARGET := install datarootdir=/usr/share	\
			   DESTDIR= $(DEB_DESTDIR)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) 
DEB_CONFIGURE_EXTRA_FLAGS += --with-slanglib=/usr/lib/$(DEB_HOST_MULTIARCH) \
  --with-slanginc=/usr/include

pkg = slxfig
ver = 0
svn = http://opensvn.csie.org/jedsoft/slxfig/trunk/
uscan_host = people.debian.org
uscan_dir = public_html

get-orig-source:
	SVNREV= $$(svn info $(svn) | grep Rev: | cut -f4 -d\ ) ;	\
		svn export -r$$SVNREV $(svn) $(pkg)-0~svn.$$SVNREV ;	\
		tar czf $(pkg)_$(ver)~svn.$$SVNREV.orig.tar.gz 		\
			$(pkg)-$(ver)~svn.$$SVNREV

build/slang-xfig::
	# Run examples
		-( cd examples/plot ;						     \
	   SLSH_PATH= /usr/share/slsh:/usr/share/slsh/local-packages:../../src \
		   $(MAKE) )

install-uscan-script:
		scp debian/slxfig.php $(uscan_host):$(uscan_dir)

Builds:

slang-xfig
produce plots and drawings through xfig's fig2dev in s-lang