#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk prefix=/usr package = mingw-w64-libpq target = x86_64-w64-mingw32 prefix = /usr/$(target) docdir = debian/$(package)/usr/share/doc/$(package) package32 = mingw-w32-libpq target32 = i686-w64-mingw32 prefix32 = /usr/$(target32) docdir32 = debian/$(package32)/usr/share/doc/$(package32) DEB_INSTALL_DOCS_ALL := doc/ReadMe.txt DEB_SHLIBDEPS_INCLUDE := #version=9.1.10-1 DEB_DH_ALWAYS_EXCLUDE := .svn # 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 INSTALL_PROGRAM = install clean:: rm -rf *~ debian/$(package) debian/$(package32) debian/*~ debian/files* debian/substvars # # install and additional compatibility symlink libpng.dll.a -> libpng12.dll.a # This assures, that ppackages linking with -lpng are using the DLL version # of libpng and correctly depend on libpng12.dll # common-install-indep:: rm -rf debian/$(package) #mkdir -p debian/$(package)/usr/$(target)/bin mkdir -p debian/$(package)/usr/$(target)/libpq install -m 644 downloads/win64/pgsql/bin/*.dll debian/$(package)/usr/$(target)/libpq/ install -m 644 downloads/win64/pgsql/lib/*.dll debian/$(package)/usr/$(target)/libpq/ mkdir -p debian/$(package)/usr/$(target)/include/postgresql cp -a downloads/win64/pgsql/include/* debian/$(package)/usr/$(target)/include/postgresql/ chmod -R 0644 debian/$(package)/usr/$(target)/include/postgresql/ rm -rf debian/$(package32) #mkdir -p debian/$(package32)/usr/$(target32)/bin mkdir -p debian/$(package32)/usr/$(target32)/libpq install -m 644 downloads/win32/pgsql/bin/*.dll debian/$(package32)/usr/$(target32)/libpq/ install -m 644 downloads/win32/pgsql/lib/*.dll debian/$(package32)/usr/$(target32)/libpq/ mkdir -p debian/$(package32)/usr/$(target32)/include/postgresql cp -a downloads/win32/pgsql/include/* debian/$(package32)/usr/$(target32)/include/postgresql/ chmod -R 0644 debian/$(package32)/usr/$(target32)/include/postgresql/