| 17 |
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
| 18 |
export CXXFLAGS = -O0 |
export CXXFLAGS = -O0 |
| 19 |
else |
else |
| 20 |
export CXXFLAGS = -O2 -fomit-frame-pointer -finline-limit=1200 |
export CXXFLAGS = -O2 -finline-limit=1200 |
| 21 |
endif |
endif |
| 22 |
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
| 23 |
INSTALL_PROGRAM += -s |
INSTALL_PROGRAM += -s |
| 26 |
config.status: configure |
config.status: configure |
| 27 |
dh_testdir |
dh_testdir |
| 28 |
# Add here commands to configure the package. |
# Add here commands to configure the package. |
| 29 |
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info |
# The Makefile is removed on error in order to prevent the build at this early stage. |
| 30 |
|
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info || rm -f Makefile |
| 31 |
|
|
| 32 |
build: build-arch |
build: build-arch |
| 33 |
|
|
| 34 |
build-arch: build-arch-stamp |
build-arch: build-arch-stamp |
| 35 |
build-arch-stamp: config.status |
build-arch-stamp: config.status |
| 36 |
# Add here commands to compile the arch part of the package. |
# Add here commands to compile the arch part of the package. |
| 37 |
$(MAKE) prefix=$(CURDIR)/debian/tmp/usr infodir=$(CURDIR)/debian/tmp/usr/share/info mandir=$(CURDIR)/debian/tmp/usr/share/man |
$(MAKE) |
| 38 |
|
|
| 39 |
clean: |
clean: |
| 40 |
dh_testdir |
dh_testdir |
| 52 |
# Add here commands to install the arch part of the package into |
# Add here commands to install the arch part of the package into |
| 53 |
# debian/tmp. |
# debian/tmp. |
| 54 |
$(MAKE) install prefix=$(CURDIR)/debian/tmp/usr |
$(MAKE) install prefix=$(CURDIR)/debian/tmp/usr |
| 55 |
mkdir -p $(CURDIR)/debian/tmp/usr/X11R6/include/X11/pixmaps |
mkdir -p $(CURDIR)/debian/tmp/usr/share/pixmaps |
| 56 |
cp $(CURDIR)/debian/ginac.xpm $(CURDIR)/debian/tmp/usr/X11R6/include/X11/pixmaps/ |
cp $(CURDIR)/debian/ginac.xpm $(CURDIR)/debian/tmp/usr/share/pixmaps/ |
| 57 |
|
|
| 58 |
# Must not depend on anything. This is to be called by |
# Must not depend on anything. This is to be called by |
| 59 |
# binary-arch/binary-multi |
# binary-arch/binary-multi |