summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2014-09-23 15:13:23 +0000
committerasau <asau@pkgsrc.org>2014-09-23 15:13:23 +0000
commit418a8491949612b66b600982ddabb3c035c2c27e (patch)
tree5e18cc8c713ff2a318505c64109fef6f28fa83e6 /lang
parent1057e078f90913308ebac88e00abfbe7f94447d3 (diff)
downloadpkgsrc-418a8491949612b66b600982ddabb3c035c2c27e.tar.gz
Provide flag to set correct RPATH in pkg-config.
Diffstat (limited to 'lang')
-rw-r--r--lang/polyml/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/polyml/Makefile b/lang/polyml/Makefile
index 15dbc2a65bb..34222ca3ef0 100644
--- a/lang/polyml/Makefile
+++ b/lang/polyml/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.11 2014/09/13 18:23:38 asau Exp $
+# $NetBSD: Makefile,v 1.12 2014/09/23 15:13:23 asau Exp $
DISTNAME= polyml.5.5.2
PKGNAME= polyml-5.5.2
+PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=polyml/}
@@ -17,6 +18,14 @@ USE_LIBTOOL= yes
USE_LANGUAGES= c c++
TEST_TARGET= tests
+PKGCONFIG_OVERRIDE= libpolyml/polyml.pc.in
+
+SUBST_CLASSES+= rpath
+SUBST_SED.rpath= -e s';-L@libdir@;-L@libdir@ ${COMPILER_RPATH_FLAG}@libdir@;g'
+SUBST_FILES.rpath= libpolyml/polyml.pc.in
+SUBST_STAGE.rpath= pre-configure
+SUBST_MESSAGE.rpath= Adding RPATH flag to pkg-config file.
+
.include "options.mk"
.include "../../devel/libffi/buildlink3.mk"