mhulden / foma

Automatically exported from code.google.com/p/foma
115 stars 90 forks source link

Implement DESTDIR in Makefile #127

Open jengelh opened 3 years ago

jengelh commented 3 years ago

openSUSE as a distro worked around so far (i.e. currently has some old version 20200221) by using an elongated prefix during installation:

[   54s] + make install DESTDIR=/home/abuild/rpmbuild/BUILDROOT/foma-0.9.18+git20200221.5e5521e-13.1.x86_64 prefix=/home/abuild/rpmbuild/BUILDROOT/foma-0.9.18+git20200221.5e5521e-13.1.x86_64/usr libdir=/home/abuild/rpmbuild/BUILDROOT/foma-0.9.18+git20200221.5e5521e-13.1.x86_64/usr/lib64

In the current repo (20210604), a pkgconfig foma.pc is produced. This file is populated with ${prefix} as it should, but that happens to collide with the prefix hack naturally. Please support a DESTDIR parameter so that the .pc file can get installed into a staging location as desired without having destdir itself present in the .pc.