darling/debian/rules
Ariel Abreu f01520161f Update some package and component names
...and update main package descriptions (Darling is not an emulator)
2023-05-12 10:05:42 -07:00

78 lines
1.6 KiB
Makefile
Executable File

#!/usr/bin/make -f
INDICES = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
DARLING_COMPONENTS = \
core \
system \
cli \
ffi \
cli_dev \
cli_gui_common \
iokitd \
cli_dev_gui_common \
cli_extra \
gui \
python \
cli_python_common \
pyobjc \
ruby \
perl \
jsc_webkit_common \
jsc \
iosurface \
cli_dev_gui_stubs_common \
gui_stubs
PACKAGE_SUFFIXES = \
core \
system \
cli \
ffi \
cli-devenv \
cli-gui-common \
iokitd \
cli-devenv-gui-common \
cli-extra \
gui \
python2 \
cli-python2-common \
pyobjc \
ruby \
perl \
jsc-webkit-common \
jsc \
iosurface \
cli-devenv-gui-stubs-common \
gui-stubs
%:
dh $@ --builddirectory=debbuild
override_dh_auto_configure:
mkdir debbuild -p
cd debbuild && CFLAGS="" CXXFLAGS="" CPPFLAGS="" LDFLAGS="" cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DDEBIAN_PACKAGING=ON -DJSC_UNIFIED_BUILD=ON
override_dh_auto_build:
cd debbuild && $(MAKE) -j$(shell nproc)
override_dh_auto_install:
cd debbuild; $(foreach INDEX,$(INDICES), \
DESTDIR=../debian/tmp/$(word $(INDEX),$(PACKAGE_SUFFIXES)) cmake -DCOMPONENT=$(word $(INDEX),$(DARLING_COMPONENTS)) -P cmake_install.cmake ; \
)
override_dh_makeshlibs:
dh_makeshlibs
$(foreach INDEX,$(INDICES), \
tools/debian/make-shlibdeps $(word $(INDEX),$(PACKAGE_SUFFIXES)) ; \
)
override_dh_clean:
dh_clean -X.orig -X.bak -X~
rm -rf debbuild
override_dh_fixperms:
dh_fixperms -Xusr/bin/darling -Xusr/bin/darlingserver -Xusr/libexec/darling/usr/libexec/darling/mldr -Xusr/libexec/darling/usr/libexec/darling/mldr32
override_dh_update_autotools_config: