pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/enchant2



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Sun Nov 18 13:08:19 UTC 2018

Modified Files:
        pkgsrc/textproc/enchant2: buildlink3.mk

Log Message:
Make enchant2 bl3 create enchant.pc.

I have enough of these manual hacks in configure scripts that check for
'enchant => someversion' instead of 'enchant-2 >= someversion'. Instead,
let's give them the former.

Caveat: this makes it impossible to have enchant and enchant-2 buildlinked
into the same build, but you do not want that.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/textproc/enchant2/buildlink3.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/enchant2/buildlink3.mk
diff -u pkgsrc/textproc/enchant2/buildlink3.mk:1.1 pkgsrc/textproc/enchant2/buildlink3.mk:1.2
--- pkgsrc/textproc/enchant2/buildlink3.mk:1.1  Thu Nov  1 09:36:47 2018
+++ pkgsrc/textproc/enchant2/buildlink3.mk      Sun Nov 18 13:08:19 2018
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.1 2018/11/01 09:36:47 bsiegert Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2018/11/18 13:08:19 bsiegert Exp $
 
 BUILDLINK_TREE+=       enchant2
 
@@ -9,6 +9,13 @@ BUILDLINK_API_DEPENDS.enchant2+=       enchant
 BUILDLINK_ABI_DEPENDS.enchant2+=       enchant2>=2.2.3
 BUILDLINK_PKGSRCDIR.enchant2?= ../../textproc/enchant2
 
+# Lots of older software looks for enchant.pc instead of enchant-2.pc.
+${BUILDLINK_DIR}/lib/pkgconfig/enchant.pc:
+       ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig
+       cd ${BUILDLINK_DIR}/lib/pkgconfig && ${LN} -sf enchant-2.pc enchant.pc
+
+buildlink-enchant2-cookie: ${BUILDLINK_DIR}/lib/pkgconfig/enchant.pc
+
 # spelling libraries are loaded dynamically and do not need
 # to be included here
 .include "../../devel/glib2/buildlink3.mk"



Home | Main Index | Thread Index | Old Index