40 lines
924 B
Makefile
Executable File
40 lines
924 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
|
|
|
|
GNOME_MODULE := libgtop
|
|
|
|
SHARED_PKG := libgtop-2.0-11
|
|
|
|
LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed
|
|
|
|
ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
|
|
CPPFLAGS += $(shell pkg-config --cflags libbsd-overlay)
|
|
endif
|
|
|
|
%:
|
|
dh $@ --with gnome,gir,autoreconf
|
|
|
|
override_dh_autoreconf:
|
|
dh_autoreconf --as-needed
|
|
|
|
override_dh_auto_configure:
|
|
dh_auto_configure -- \
|
|
--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
|
|
--libexecdir=\$${libdir}/$(SHARED_PKG)
|
|
|
|
override_dh_makeshlibs:
|
|
dh_makeshlibs -V '$(SHARED_PKG) (>= 2.32.0)' -- -c4
|
|
|
|
override_dh_fixperms:
|
|
dh_fixperms -X libgtop_server2
|
|
|
|
override_dh_install:
|
|
ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
|
|
# The server is only necessary on kFreeBSD
|
|
dh_install --autodest -p$(SHARED_PKG) \
|
|
--ignore=debian/$(SHARED_PKG).install \
|
|
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/$(SHARED_PKG)/libgtop_server2
|
|
endif
|
|
dh_install
|