1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/buildcore.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
## Suppress some warnings that mostly just lead to noise.
#CFLAGS += -Wno-sequence-point -Wno-pointer-sign -Wno-unused
ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),hppa)
CFLAGS += -ffunction-sections
endif
# Libgc doesn't (yet?) support threading on the Hurd, so we can't either.
# See also http://bugs.debian.org/314367 .
ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH_OS),hurd)
DEB_BUILD_OPTIONS += nothreads
endif
ifneq (,$(findstring nothreads,$(DEB_BUILD_OPTIONS)))
# Explicitly specifying this option has the effect of confusing configure,
# so leave it off and rely on the default being appropriate.
# DEB_CONFIGURE_EXTRA_FLAGS = --without-threads
else
DEB_CONFIGURE_EXTRA_FLAGS = --with-threads
endif
# We need to be strict about requiring prototypes because many functions
# return pointers, and their results may otherwise be misinterpreted on
# 64-bit systems. However, this flag inconveniently manages to make a
# couple of configure's tests report false negatives, so we should pass it
# only when actually building.
DEB_MAKE_INVOKE += CFLAGS="$(CFLAGS) -Werror-implicit-function-declaration"
DEB_INSTALL_CHANGELOGS_ALL = txt/changes.txt
DEB_INSTALL_DOCS_ALL += -XCVS -X.svn -Xgooomanual
DEB_INSTALL_MANPAGES_goo = debian/goo.1
# No support for DESTDIR yet :-/
DEB_MAKE_INSTALL_TARGET = install prefix=$(DEB_DESTDIR)/$(DEB_CONFIGURE_PREFIX)
pkgroot = debian/$(cdbs_curpkg)
binary-install/goo::
mv $(pkgroot)/usr/bin/goo $(pkgroot)/usr/bin/g2c
install -m 0755 -o root -g root debian/goo.sh $(pkgroot)/usr/bin/goo
|