# found at http://offog.org/hg/garstow/math/savi/Makefile GARNAME = savi GARVERSION = 1.4.6 CATEGORIES = math MASTER_SITES = $(MASTER_SOURCEFORGE) MASTER_SUBDIR = savi/ DISTNAME = savi$(GARVERSION) DISTFILES = $(DISTNAME)-release.tar.gz LIBDEPS = devel/tcl comp/zlib x11/tk DESCRIPTION = Simulate satellite orbits and coverage HOME_URL = http://savi.sourceforge.net/ CONFIGURE_SCRIPTS = none BUILD_SCRIPTS = $(WORKSRC)/Makefile INSTALL_SCRIPTS = none savidir = $(packageprefix)/lib/savi include ../../gar.mk configure-none: @sed -i 's,-DNO_ZLIB,,g' $(WORKSRC)/src/Makefile $(MAKECOOKIE) BUILD_ARGS += \ ARCH=linux \ TCL_INCLUDES= \ TCL_LIBS="-ltcl -ltk" \ $(MAKE_ARGS_PARALLEL) # This is mad, but it's what the PACKAGING file says to do. install-none: @mkdir -p $(savidir) $(packagedocs) $(packageprefix)/bin @cd $(WORKSRC) && cp -a * .geomview $(savidir) @cd $(savidir) && \ rm -rf src configure PACKAGING `find . -name Makefile` && \ mv [A-Z]* $(packagedocs) && \ sed -i 's,^# SAVI=.*,SAVI=$(prefix)/lib/savi,' savi @cd $(packageprefix)/bin && ln -s $(prefix)/lib/savi/savi . $(MAKECOOKIE)