Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4 include /usr/share/dpkg/buildtools.mk
5
6 #export DH_VERBOSE=1
7
8 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
9
10 # does not link without pthread
11 # undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'
12 #export DEB_LDFLAGS_MAINT_APPEND = -lpthread
13
14 LUA_IMPL = $(shell $(PKG_CONFIG) luajit && echo luajit || echo lua)
15
16 %:
17 dh $@
18
19 override_dh_auto_configure:
20 platform/unix/automagic
21 ln -sf /usr/include/stb/stb_image.h src/libraries/stb/stb_image.h
22 # dh_auto_configure -- -DCMAKE_SKIP_RPATH=ON
23 dh_auto_configure -- --disable-shared --enable-static --with-lua=$(LUA_IMPL)
24 # rebuild C++ header files:
25 cd src/scripts/ && lua auto.lua boot nogame
26
27 override_dh_auto_install:
28 # skip dh_auto_install as we install all files via dh_install
29
30 execute_after_dh_install:
31 #install -m755 -D obj-*/love debian/love/usr/bin/love-$(DEB_VERSION_UPSTREAM)
32 install -m755 -D src/love debian/love/usr/bin/love-$(DEB_VERSION_UPSTREAM)
33 install -m644 -D debian/love.binfmt debian/love/usr/share/binfmts/love
34 install -m644 -D platform/unix/love.6 debian/love/usr/share/man/man6/love-$(DEB_VERSION_UPSTREAM).6