File: rules

package info (click to toggle)
fortran-assert 3.1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 212 kB
  • sloc: f90: 305; ansic: 41; makefile: 9; sh: 4
file content (18 lines) | stat: -rwxr-xr-x 495 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

# Build with both
export FC_DEFAULT=gfortran-15
export FC_OPTIONAL=flang-21 lfortran

export DH_VERBOSE=1

# Necessary to build shared libraries
export DEB_LDFLAGS_MAINT_APPEND=-fPIC

# The magic debhelper  rule
%:
	dh $@ --with fortran --buildsystem fortran

execute_after_dh_auto_install:
	patchelf --set-soname libfortran-assert.so.0 debian/tmp-gfortran-15/usr/lib/libassert.so
	mv debian/tmp-gfortran-15/usr/lib/libassert.so debian/tmp-gfortran-15/usr/lib/libassert.so.0