33 lines
775 B
Makefile
Executable File
33 lines
775 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
export DH_VERBOSE=1
|
|
|
|
include /usr/share/dpkg/pkg-info.mk
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_configure:
|
|
if echo "$(DEB_VERSION)" | grep -q '~git' ; then \
|
|
_git_commit=$$(echo "$(DEB_VERSION)" | cut -d'+' -f2) ; \
|
|
else \
|
|
_git_commit="unknown" ; \
|
|
fi ; \
|
|
dh_auto_configure --parallel -- \
|
|
-DENABLE_GLUT=ON \
|
|
-DENABLE_GTK=ON \
|
|
-DENABLE_QT=ON \
|
|
-DENABLE_TOOLS=ON \
|
|
-DENABLE_TTF=ON \
|
|
-DENABLE_DATA=OFF \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DGIT_COMMIT="$$_git_commit"
|
|
|
|
|
|
override_dh_install:
|
|
dh_install --fail-missing
|
|
mv debian/celestia-common/usr/share/celestia/celestia.cfg \
|
|
debian/celestia-common/etc/celestia.cfg
|
|
ln -s /etc/celestia.cfg debian/celestia-common/usr/share/celestia/
|