diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-13 06:29:03 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-13 07:55:09 +0100 |
| commit | decb51529889b8f2afd67811d635379f030a1b19 (patch) | |
| tree | 1532c71a884c17406a0b4e5b90d64f15033b037b /configure | |
| parent | 8703c35449c3a412c0781f41ddcabdc2dd6eaba9 (diff) | |
| download | slcl-decb51529889b8f2afd67811d635379f030a1b19.tar.gz | |
Replace thumbnail Makefile with configure script
The thumbnail subproject has dependencies against dynstr and
ImageMagick6, which might or might not be available on the system, or
might have been installed to non-standard paths.
Therefore, it is more robust to rely on a configure script that checks
whether the packages are available and how to deal with CFLAGS/LDFLAGS.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -177,7 +177,7 @@ EOF if [ $build_thumbnail -ne 0 ] then cat <<"EOF" >> $F - +cd thumbnail && $(MAKE) PREFIX=$(PREFIX) install + +test -f $(THUMBNAIL_MK) && cd thumbnail && $(MAKE) install || : EOF fi @@ -218,9 +218,13 @@ if [ $build_thumbnail -ne 0 ] then cat <<"EOF" >> $F THUMBNAIL = thumbnail/thumbnail +THUMBNAIL_MK = thumbnail/Makefile thumbnail $(PROJECT): $(THUMBNAIL) -$(THUMBNAIL): FORCE +$(THUMBNAIL_MK): + cd thumbnail && CFLAGS="$(CFLAGS)" ./configure --prefix=$(PREFIX) +$(THUMBNAIL): $(THUMBNAIL_MK) FORCE +cd thumbnail && $(MAKE) CC=$(CC) +all: $(THUMBNAIL) EOF fi @@ -250,6 +254,13 @@ cat <<"EOF" >> $F EOF fi +if [ $build_thumbnail -ne 0 ] +then +cat <<"EOF" >> $F + +test -f $(THUMBNAIL_MK) && cd thumbnail && $(MAKE) clean || : +EOF +fi + cat <<"EOF" >> $F distclean: clean rm -f slcl usergen @@ -275,7 +286,7 @@ fi if [ $build_thumbnail -ne 0 ] then cat <<"EOF" >> $F - +cd thumbnail && $(MAKE) distclean + +test -f $(THUMBNAIL_MK) && cd thumbnail && $(MAKE) distclean || : EOF fi |
