1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#!/usr/bin/make -f
DEB_TAR_SRCDIR = ossim
DEB_TARBALL = $(CURDIR)/upstream/$(DEB_TAR_SRCDIR).tar.gz
SRC_TREE = $(CURDIR)/build-tree/$(DEB_TAR_SRCDIR)
OSSIM_VERSION=$(shell dpkg-parsechangelog|grep Version:|cut -d' ' -f2|cut -d- -f1)
OSSIM_VERSION_TAG=$(subst .,_,$(OSSIM_VERSION))
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
OPTFLAG =
else
CFLAGS += -O2
OPTFLAG = --enable-optimization
endif
include /usr/share/cdbs/1/rules/tarball.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
clean::
rm -f $(CURDIR)/upstream/ossim.tar.gz.cdbs-config_list
install/ossim-core::
-find debian/tmp/usr/share/ossim/templates -type f -exec chmod a-x {} \;
# Add here any variable or target overrides you need.
DEB_CONFIGURE_EXTRA_FLAGS = --prefix=/usr --datadir=/usr/share --includedir=/usr/include --with-jpeg=yes \
--with-libtiff= --with-geotiff= --with-openthreads= \
--enable-singleSharedOssimLibrary --enable-singleStaticOssimLibrary \
--with-freetype=/usr --with-mpi=no $(OPTFLAG)
get-orig-source:
cd /tmp && svn export http://svn.osgeo.org/ossim/tags/v$(OSSIM_VERSION_TAG)/ossim
# removes JAR archives
cd /tmp && find ossim -name "*.jar" -delete
mkdir -p /tmp/ossim-$(OSSIM_VERSION)/upstream
tar czvf /tmp/ossim-$(OSSIM_VERSION)/upstream/ossim.tar.gz -C /tmp ossim
tar czvf ossim_$(OSSIM_VERSION).orig.tar.gz -C /tmp ossim-$(OSSIM_VERSION)
rm -rf /tmp/ossim /tmp/ossim-$(OSSIM_VERSION)
|