* added sisvinit unit service script * added systemshit unit service script * added debian packaging script and fiels in root dir * added spec file for shit rpm distros * added first intent of alpine packaging
76 lines
2.3 KiB
Makefile
Executable File
76 lines
2.3 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
export DH_VERBOSE = 1
|
|
DH_VERBOSE = 1
|
|
export VERBOSE = 1
|
|
VERBOSE = 1
|
|
|
|
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
|
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
|
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
|
|
|
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
|
CUFLAGS = -O0
|
|
else
|
|
CUFLAGS = -O2 -fomit-frame-pointer -fexpensive-optimizations -fpermissive -Wall
|
|
ifneq (,$(findstring i386,$(DEB_BUILD_ARCH)))
|
|
CUFLAGS = -m32 -O3 -fomit-frame-pointer -fexpensive-optimizations -march=pentium3 -mtune=nocona -mmmx -msse -mno-sse2 -mno-sse3 -fpermissive -mfpmath=sse -Wall
|
|
endif
|
|
ifneq (,$(findstring i486,$(DEB_BUILD_ARCH)))
|
|
CUFLAGS = -m32 -O3 -fomit-frame-pointer -fexpensive-optimizations -march=pentium3 -mtune=nocona -mmmx -msse -mno-sse2 -mno-sse3 -fpermissive -mfpmath=sse -Wall
|
|
endif
|
|
ifneq (,$(findstring amd64,$(DEB_BUILD_ARCH)))
|
|
CUFLAGS = -O3 -fomit-frame-pointer -fexpensive-optimizations -mtune=nocona -mmmx -msse -msse2 -fpermissive -mfpmath=sse -Wall
|
|
endif
|
|
endif
|
|
export CFLAGS=$(CUFLAGS)
|
|
export CXXFLAGS=$(CUFLAGS)
|
|
export DEB_CFLAGS_MAINT_APPEND = $(CUFLAGS)
|
|
export DEB_CXXFLAGS_MAINT_APPEND = $(CUFLAGS)
|
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+fortify,+stackprotector,+relro,+bindnow,-pie
|
|
# older bz comprension
|
|
export DEB_DH_BUILDDEB_ARGS = -- -Zbzip2
|
|
# avoid useless dependencies
|
|
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
|
|
|
|
override_dh_auto_configure:
|
|
dh_auto_configure -- \
|
|
-DRUN_IN_PLACE=0 \
|
|
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
-DENABLE_SPATIAL=ON \
|
|
-DENABLE_SYSTEM_JSONCPP=1 \
|
|
-DENABLE_SYSTEM_GMP=1 \
|
|
-DJSON_INCLUDE_DIR=/usr/include/jsoncpp \
|
|
-DENABLE_GETTEXT=1 \
|
|
-DENABLE_FREETYPE=1 \
|
|
-DFREETYPE_INCLUDE_DIR_freetype2=/usr/include/freetype2 \
|
|
-DFREETYPE_INCLUDE_DIR_ft2build=/usr/include \
|
|
-DENABLE_LEVELDB=1 \
|
|
-DENABLE_LUAJIT=ON \
|
|
-DENABLE_POSTGRESQL=1 \
|
|
-DLEVELDB_INCLUDE_DIR=/usr/include/leveldb \
|
|
-DCUSTOM_LOCALEDIR=/usr/share/locale \
|
|
-DCUSTOM_SHAREDIR=/usr/share/games/multicraft \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DBUILD_SERVER=1 -DCMAKE_BUILD_TYPE=Release
|
|
|
|
|
|
override_dh_installchangelogs:
|
|
# dh_installchangelogs debian/changelog.upstream
|
|
|
|
override_dh_install:
|
|
find . -iname "license.txt" -delete
|
|
dh_install --list-missing
|
|
|
|
override_dh_clean:
|
|
dh_clean
|
|
$(RM) -r bin
|
|
$(RM) -r lib/jsoncpp lib/gmp
|
|
|
|
override_dh_builddeb:
|
|
dh_builddeb -- -Zgzip
|
|
|
|
%:
|
|
dh ${@}
|