#!/usr/bin/make -f prefix=/usr package = mingw-w64-libjpeg devpackage = mingw-w64-libjpeg-dev target = x86_64-w64-mingw32 prefix = /usr/$(target) docdir = debian/$(package)/usr/share/doc/$(package) builddir = build DESTDIR = $(shell /bin/pwd)/debian/$(package) DEB_INSTALL_DOCS_ALL := src/README DEB_SHLIBDEPS_INCLUDE := DEB_DH_ALWAYS_EXCLUDE := .svn %: dh $@ # do not strip anything. # call 'strip' on a mingw lib*.a file causes the ranlib information to # be discarded rendering the libraries useless. DEB_DH_STRIP_ARGS := -Xlib override_dh_strip: override_dh_shlibdeps: export DEB_CFLAGS_MAINT_SET = -O2 -Wall export DEB_LDFLAGS_MAINT_SET = #build-indep: common-build-indep #install-indep: common-install-indep INSTALL_PROGRAM = install #build-indep:: # rm -rf $(builddir) # mkdir $(builddir) # cd $(builddir) && CC=$(target)-gcc CXX=$(target)-g++ ../src/configure --host=$(target) --prefix=$(prefix) --enable-shared --disable-static # cd $(builddir) && make all # touch build-indep clean:: rm -f compile install-indep build-indep rm -rf *~ debian/$(package) debian/$(devpackage) debian/*~ debian/files* debian/substvars debian/devhost.txt.gz debian/*.substvars debian/*.debhelper.log rm -rf $(builddir) # # info pages, locale data and static libraries may conflict with # already installed binutils packages. # install-indep:: # build rm -rf $(builddir) mkdir $(builddir) cd $(builddir) && CC=$(target)-gcc CXX=$(target)-g++ ../src/configure --host=$(target) --prefix=$(prefix) --enable-shared --disable-static cd $(builddir) && make CPPFLAGS="" all # install rm -rf debian/$(package) rm -rf debian/$(devpackage) mkdir debian/$(package) cd $(builddir) && make DESTDIR=$(DESTDIR) install mkdir -p debian/$(devpackage)/usr/$(target) mv debian/$(package)/usr/$(target)/include debian/$(devpackage)/usr/$(target) mv debian/$(package)/usr/$(target)/lib debian/$(devpackage)/usr/$(target) rm -rf debian/$(package)/usr/$(target)/share touch install-indep