Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:rexxman
Regina-REXX
debian.rules
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File debian.rules of Package Regina-REXX
#!/usr/bin/make -f SHELL=/bin/bash DESTDIR=$(shell pwd)/debian/tmp debversion=$(shell head -n1 debian/changelog | \ cut -d" " -f2 | \ sed -e "s/(//g" \ -e "s/)//g" ) version=$(shell echo $(debversion) | cut -d"-" -f1) soname=3 # # If the version of Regina being built includes a value for VER_SUPP in the regina.ver file, # ensure that soversion includes the full dotted version followed by VER_SUPP. eg 3.7RC1 soversion=3 changelog=README."396" package=libregina$(soname) rexxpackage=regina-rexx destprefix=usr export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) export DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) #libdir=$(destprefix)/lib/$(DEB_HOST_MULTIARCH) malibdir=lib/$(DEB_HOST_MULTIARCH) confflags=--prefix=/$(destprefix) --with-addon-dir=/$(destprefix)/$(malibdir)/regina-rexx/addons --libdir=/$(destprefix)/$(malibdir) --sysconfdir=/etc # Enable Regina GCI only on supported platforms. # Let configure work it out! #ifneq ($(filter alpha amd64 i386,$(DEB_HOST_ARCH)), ) # confflags+=--enable-gci #endif ifeq ($(DEB_BUILD_ARCH), ia64) CCOPTS=-O2 -g else CCOPTS=-O2 -g endif build: stamp-configure stamp-build stamp-build: $(checkdir) $(MAKE) touch stamp-build configure: stamp-configure stamp-configure: $(checkdir) ./configure $(confflags) touch stamp-configure chmod 755 ./debian/rules clean: $(checkdir) -rm -f stamp-build stamp-configure -$(MAKE) distclean -chmod 644 debian/md5_sums -rm -f `find . \( -name '*~' -o -name '*.bak' \) -print` -rm -rf core debian/tmp* debian/files* debian/*substvars debian/shlibs.local binary-indep: checkroot build $(checkdir) binary-arch: checkroot build $(checkdir) rm -rf debian/tmp{-lib,-dev,-rexx} install -d -m 755 debian/tmp{-lib,-dev,-rexx}/DEBIAN install -d -m 755 debian/tmp-lib/$(destprefix)/share/doc/$(package) install -d -m 755 debian/tmp-rexx/$(destprefix)/share/doc/$(rexxpackage) install -d -m 755 debian/tmp-dev/$(destprefix)/share/doc/$(package)-dev # install -m 755 debian/$(rexxpackage).postinst debian/tmp-rexx/DEBIAN/postinst install -m 755 debian/$(rexxpackage).prerm debian/tmp-rexx/DEBIAN/prerm install -m 644 debian/$(rexxpackage).conffiles debian/tmp-rexx/DEBIAN/conffiles # install -m 755 debian/$(package).postinst debian/tmp-lib/DEBIAN/postinst install -m 755 debian/$(package).postrm debian/tmp-lib/DEBIAN/postrm echo "libregina $(soname) $(package) (>= $(debversion))" > debian/shlibs.local install -m 644 debian/shlibs.local debian/tmp-lib/DEBIAN/shlibs # # $(MAKE) install-lib prefix=debian/tmp-lib/$(destprefix) # $(MAKE) install-dev prefix=debian/tmp-dev/$(destprefix) $(MAKE) install-lib DESTDIR=debian/tmp-lib $(MAKE) install-dev DESTDIR=debian/tmp-dev $(MAKE) install-rexx DESTDIR=debian/tmp-rexx rexx_examples=$(destprefix)/share/$(rexxpackage)/examples rexx_mtb=$(destprefix)/share/$(rexxpackage) # $(MAKE) install-lib prefix=debian/tmp-lib # $(MAKE) install-dev prefix=debian/tmp-dev # $(MAKE) install-rexx prefix=debian/tmp-rexx rexx_examples=share/$(rexxpackage)/examples # ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) strip --strip-unneeded --remove-section=.comment --remove-section=.note debian/tmp-lib/$(destprefix)/$(malibdir)/libregina.so.$(soversion) strip --strip-unneeded --remove-section=.comment --remove-section=.note debian/tmp-lib/$(destprefix)/$(malibdir)/regina-rexx/3.9.6/libregutil.so # strip --strip-unneeded --remove-section=.comment --remove-section=.note debian/tmp-lib/$(destprefix)/$(malibdir)/regina-rexx/3.9.6/librxtest1.so # strip --strip-unneeded --remove-section=.comment --remove-section=.note debian/tmp-lib/$(destprefix)/$(malibdir)/regina-rexx/3.9.6/librxtest2.so strip --strip-debug debian/tmp-dev/$(destprefix)/$(malibdir)/libregina.a strip --strip-all --remove-section=.comment --remove-section=.note debian/tmp-rexx/$(destprefix)/bin/regina strip --strip-all --remove-section=.comment --remove-section=.note debian/tmp-rexx/$(destprefix)/bin/rexx-regina-rexx strip --strip-all --remove-section=.comment --remove-section=.note debian/tmp-rexx/$(destprefix)/bin/rxqueue-regina-rexx strip --strip-all --remove-section=.comment --remove-section=.note debian/tmp-rexx/$(destprefix)/bin/rxstack endif # # cp README.[0-9]* debian/tmp-lib/$(destprefix)/share/doc/$(package) cp $(changelog) debian/tmp-lib/$(destprefix)/share/doc/$(package)/changelog cp debian/changelog debian/tmp-lib/$(destprefix)/share/doc/$(package)/changelog.Debian gzip -9fn debian/tmp-lib/$(destprefix)/share/doc/$(package)/* cp debian/copyright debian/tmp-lib/$(destprefix)/share/doc/$(package) # gzip -9fn debian/tmp-rexx/$(destprefix)/share/man/man1/*.1 # ln -sf regina.1.gz debian/tmp-rexx/$(destprefix)/share/man/man1/rexx-regina-rexx.1.gz cp $(changelog) debian/tmp-rexx/$(destprefix)/share/doc/$(rexxpackage)/changelog cp debian/changelog debian/tmp-rexx/$(destprefix)/share/doc/$(rexxpackage)/changelog.Debian gzip -9fn debian/tmp-rexx/$(destprefix)/share/doc/$(rexxpackage)/changelog* cp debian/copyright debian/tmp-rexx/$(destprefix)/share/doc/$(rexxpackage) # gzip -9fn debian/tmp-dev/$(destprefix)/share/man/man1/*.1 cp $(changelog) debian/tmp-dev/$(destprefix)/share/doc/$(package)-dev/changelog cp debian/changelog debian/tmp-dev/$(destprefix)/share/doc/$(package)-dev/changelog.Debian gzip -9fn debian/tmp-dev/$(destprefix)/share/doc/$(package)-dev/changelog* cp debian/copyright debian/tmp-dev/$(destprefix)/share/doc/$(package)-dev # LD_LIBRARY_PATH=/$(destprefix)/lib/libfakeroot:$(DESTDIR)-lib/$(destprefix)/$(malibdir) dpkg-shlibdeps debian/tmp-lib/$(destprefix)/$(malibdir)/libregina.so.$(soversion) dpkg-gencontrol -isp -p$(package) -Pdebian/tmp-lib echo "regver:Depends=$(package) (= $(debversion))" > debian/substvars dpkg-gencontrol -isp -p$(package)-dev -Pdebian/tmp-dev # LD_LIBRARY_PATH=/$(destprefix)/lib/libfakeroot:$(DESTDIR)-lib/$(destprefix)/$(malibdir) dpkg-shlibdeps debian/tmp-rexx/$(destprefix)/bin/regina debian/tmp-rexx/$(destprefix)/bin/rexx-regina-rexx debian/tmp-rexx/$(destprefix)/bin/rxqueue-regina-rexx debian/tmp-rexx/$(destprefix)/bin/rxstack dpkg-gencontrol -isp -p$(rexxpackage) -Pdebian/tmp-rexx # chown -R root.root debian/tmp-{lib,dev,rexx} chmod -R go=rX,u+w debian/tmp-{lib,dev,rexx} chmod 755 debian/md5_sums debian/md5_sums tmp-{lib,dev,rexx} dpkg --build debian/tmp-lib .. dpkg --build debian/tmp-dev .. dpkg --build debian/tmp-rexx .. define checkdir test -f debian/rules endef binary: binary-indep binary-arch checkroot: $(checkdir) test root = "`whoami`" .PHONY: binary binary-arch binary-indep clean checkroot
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor