File: rules

package info (click to toggle)
mopac7 1.15-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 3,748 kB
  • ctags: 5,768
  • sloc: fortran: 35,321; sh: 9,039; ansic: 417; makefile: 80
file content (24 lines) | stat: -rwxr-xr-x 660 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

#export DH_VERBOSE=1

CPPFLAGS ?= $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS   ?= $(shell dpkg-buildflags --get CFLAGS) -fPIC
FFLAGS   ?= $(shell dpkg-buildflags --get FFLAGS) -fPIC
LDFLAGS  ?= $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed -Wl,-z,defs

ifeq (ia64,$(DEB_HOST_ARCH))
  FFLAGS = -ffunction-sections
  CFLAGS = -ffunction-sections
endif

%:
	dh $@ --with autotools_dev --parallel

override_dh_auto_configure:
	dh_auto_configure -- F77="gfortran"

override_dh_install:
	dh_install --list-missing
	sed -i -e 's/^\.\/fortran\/mopac7/\/usr\/lib\/mopac7\/mopac7/g' \
	    $(CURDIR)/debian/mopac7-bin/usr/bin/run_mopac7