pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/imlib2 graphics/imlib2: only define SUBST blo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fd719df82564
branches:  trunk
changeset: 428160:fd719df82564
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Apr 25 17:23:44 2020 +0000

description:
graphics/imlib2: only define SUBST block if necessary

diffstat:

 graphics/imlib2/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 047d37645469 -r fd719df82564 graphics/imlib2/Makefile
--- a/graphics/imlib2/Makefile  Sat Apr 25 17:21:38 2020 +0000
+++ b/graphics/imlib2/Makefile  Sat Apr 25 17:23:44 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.77 2020/02/20 15:14:56 nia Exp $
+# $NetBSD: Makefile,v 1.78 2020/04/25 17:23:44 rillig Exp $
 
 DISTNAME=      imlib2-1.6.1
 CATEGORIES=    graphics
@@ -26,11 +26,13 @@
 SHLIB_SUFFIX=          so
 .endif
 
+.if ${SHLIB_SUFFIX} != so
 SUBST_CLASSES+=                shlib
 SUBST_STAGE.shlib=     pre-configure
 SUBST_MESSAGE.shlib=   Replacing shared library suffix
 SUBST_FILES.shlib+=    src/lib/image.c
 SUBST_SED.shlib+=      -e 's,"\.so",".${SHLIB_SUFFIX}",'
+.endif
 
 SUBST_CLASSES+=                rpath
 SUBST_STAGE.rpath=     pre-configure



Home | Main Index | Thread Index | Old Index