| 1 |
#!/usr/bin/make -f |
| 2 |
## debian/rules for neko. |
| 3 |
|
| 4 |
%: |
| 5 |
dh $@ --no-parallel --with apache2,bash-completion |
| 6 |
|
| 7 |
## Both AMD64 and all kFreeBSDs seem to have problems with the type |
| 8 |
## punning used in the Neko source. |
| 9 |
ifeq (amd64,$(DEB_HOST_ARCH)) |
| 10 |
export DEB_CFLAGS_MAINT_APPEND = -fno-strict-aliasing |
| 11 |
endif |
| 12 |
ifeq (kfreebsd,$(DEB_HOST_ARCH_OS)) |
| 13 |
export DEB_CFLAGS_MAINT_APPEND = -fno-strict-aliasing |
| 14 |
endif |
| 15 |
|
| 16 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 17 |
|
| 18 |
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
| 19 |
|
| 20 |
override_dh_auto_configure: |
| 21 |
dh_auto_configure -- \ |
| 22 |
-DCMAKE_INSTALL_INCLUDEDIR=include/$(DEB_HOST_MULTIARCH) \ |
| 23 |
-DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \ |
| 24 |
-DRELOCATABLE=OFF \ |
| 25 |
-DCMAKE_SKIP_INSTALL_RPATH=ON \ |
| 26 |
-DRUN_LDCONFIG=OFF |
| 27 |
echo "LoadModule neko_module /usr/lib/$(DEB_HOST_MULTIARCH)/neko/mod_neko2.ndll" > debian/neko.load |
| 28 |
|
| 29 |
# dh_shlibdeps does not see the ndll files as libraries, so we call dpkg-shlibdeps manually |
| 30 |
override_dh_shlibdeps: |
| 31 |
dh_shlibdeps |
| 32 |
dpkg-shlibdeps -Tdebian/neko.substvars debian/neko/usr/bin/* debian/neko/usr/lib/*/neko/*.ndll |
| 33 |
|
| 34 |
override_dh_missing: |
| 35 |
dh_missing --fail-missing |