File: rules

package info (click to toggle)
gimplensfun 0.2.4-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 236 kB
  • sloc: cpp: 1,032; makefile: 50
file content (20 lines) | stat: -rwxr-xr-x 590 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
LDFLAGS+=-Wl,-z,defs -Wl,-O1 -Wl,--as-needed

export CPPFLAGS CFLAGS LDFLAGS

%:
	dh $@ 

override_dh_auto_install:
	# why does gimptool-2.0 ignore my DESTDIR?
	# DESTDIR=debian/gimplensfun/ gimptool-2.0 --install-admin-bin gimplensfun
	install -m 755 -D gimp-lensfun debian/gimp-lensfun/$$(gimptool-2.0 --gimpplugindir)/plug-ins/gimp-lensfun