aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-04-29 19:50:03 +0800
committersobomax <sobomax@FreeBSD.org>2001-04-29 19:50:03 +0800
commitb8291db4d11ff0f189c51a4d9406b5bc2ea65309 (patch)
treed0dffb7488994c8c16ea50d96640f7448e302d8d /devel
parent03cf41aad5a552798881770ee1c58d5d3bffa664 (diff)
downloadfreebsd-ports-gnome-b8291db4d11ff0f189c51a4d9406b5bc2ea65309.tar.gz
freebsd-ports-gnome-b8291db4d11ff0f189c51a4d9406b5bc2ea65309.tar.zst
freebsd-ports-gnome-b8291db4d11ff0f189c51a4d9406b5bc2ea65309.zip
In addition to PREFIX/libdata/pkgconfig scan appropriate directory under
LOCALBASE and X11BASE for .pc files, so ports that live in X11BASE will be able to use pkgconfig.
Diffstat (limited to 'devel')
-rw-r--r--devel/pkg-config/Makefile4
-rw-r--r--devel/pkg-config/files/patch-Makefile.in13
-rw-r--r--devel/pkg-config/files/patch-pkg.c14
-rw-r--r--devel/pkg-config/pkg-plist2
-rw-r--r--devel/pkgconfig/Makefile4
-rw-r--r--devel/pkgconfig/files/patch-Makefile.in13
-rw-r--r--devel/pkgconfig/files/patch-pkg.c14
-rw-r--r--devel/pkgconfig/pkg-plist2
8 files changed, 60 insertions, 6 deletions
diff --git a/devel/pkg-config/Makefile b/devel/pkg-config/Makefile
index 7a3607f78e09..faba64f8e67b 100644
--- a/devel/pkg-config/Makefile
+++ b/devel/pkg-config/Makefile
@@ -21,11 +21,13 @@ LIBTOOLFILES= configure glib-1.2.8/configure
LIBTOOLFLAGS= --disable-ltlibs \
--disable-shared
+PLIST_SUB= LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
+
MAN1= pkg-config.1
post-extract:
@${RM} -rf ${WRKSRC}/glib-1.2.8
- @${LN} -sf ${WRKDIRPREFIX}${.CURDIR}/../../devel/glib12/work/glib-1.2* \
+ @${CP} -R ${WRKDIRPREFIX}${.CURDIR}/../../devel/glib12/work/glib-1.2* \
${WRKSRC}/glib-1.2.8
post-install:
diff --git a/devel/pkg-config/files/patch-Makefile.in b/devel/pkg-config/files/patch-Makefile.in
index 21231c7c45c5..75cdeb89ca3a 100644
--- a/devel/pkg-config/files/patch-Makefile.in
+++ b/devel/pkg-config/files/patch-Makefile.in
@@ -1,8 +1,8 @@
$FreeBSD$
---- Makefile.in 2001/04/29 10:36:36 1.1
-+++ Makefile.in 2001/04/29 10:37:03
+--- Makefile.in.orig Wed Jan 3 11:39:15 2001
++++ Makefile.in Sun Apr 29 14:40:59 2001
@@ -35,7 +35,7 @@
DESTDIR =
@@ -12,3 +12,12 @@ $FreeBSD$
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = .
+@@ -81,7 +81,7 @@
+
+ bin_PROGRAMS = pkg-config
+
+-INCLUDES = -DPKGLIBDIR="\"$(pkglibdir)\"" -I./glib-1.2.8
++INCLUDES = -DPKGLIBDIR="\"$(pkglibdir)\"" -DXPKGLIBDIR="\"$(X11BASE)/libdata/@PACKAGE@\"" -DLPKGLIBDIR="\"$(LOCALBASE)/libdata/@PACKAGE@\"" -I./glib-1.2.8
+
+ pkg_config_SOURCES = pkg.h pkg.c partial-glib.h partial-glib.c parse.h parse.c main.c findme.c findme.h popt.c popt.h poptconfig.c popthelp.c poptint.h poptparse.c
+
diff --git a/devel/pkg-config/files/patch-pkg.c b/devel/pkg-config/files/patch-pkg.c
new file mode 100644
index 000000000000..56a934c0b0b5
--- /dev/null
+++ b/devel/pkg-config/files/patch-pkg.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- pkg.c 2001/04/29 11:38:41 1.1
++++ pkg.c 2001/04/29 11:39:06
+@@ -97,6 +97,8 @@
+
+ g_slist_foreach (search_dirs, (GFunc)scan_dir, NULL);
+ scan_dir (PKGLIBDIR);
++ scan_dir (XPKGLIBDIR);
++ scan_dir (LPKGLIBDIR);
+ }
+ }
+
diff --git a/devel/pkg-config/pkg-plist b/devel/pkg-config/pkg-plist
index c1a5383da27c..3161e023d6fd 100644
--- a/devel/pkg-config/pkg-plist
+++ b/devel/pkg-config/pkg-plist
@@ -1,3 +1,5 @@
@exec mkdir -p %D/libdata/pkgconfig
bin/pkg-config
@dirrm libdata/pkgconfig
+@unexec rmdir %%LOCALBASE%%/libdata/pkgconfig 2>/dev/null || true
+@unexec rmdir %%X11BASE%%/libdata/pkgconfig 2>/dev/null || true
diff --git a/devel/pkgconfig/Makefile b/devel/pkgconfig/Makefile
index 7a3607f78e09..faba64f8e67b 100644
--- a/devel/pkgconfig/Makefile
+++ b/devel/pkgconfig/Makefile
@@ -21,11 +21,13 @@ LIBTOOLFILES= configure glib-1.2.8/configure
LIBTOOLFLAGS= --disable-ltlibs \
--disable-shared
+PLIST_SUB= LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
+
MAN1= pkg-config.1
post-extract:
@${RM} -rf ${WRKSRC}/glib-1.2.8
- @${LN} -sf ${WRKDIRPREFIX}${.CURDIR}/../../devel/glib12/work/glib-1.2* \
+ @${CP} -R ${WRKDIRPREFIX}${.CURDIR}/../../devel/glib12/work/glib-1.2* \
${WRKSRC}/glib-1.2.8
post-install:
diff --git a/devel/pkgconfig/files/patch-Makefile.in b/devel/pkgconfig/files/patch-Makefile.in
index 21231c7c45c5..75cdeb89ca3a 100644
--- a/devel/pkgconfig/files/patch-Makefile.in
+++ b/devel/pkgconfig/files/patch-Makefile.in
@@ -1,8 +1,8 @@
$FreeBSD$
---- Makefile.in 2001/04/29 10:36:36 1.1
-+++ Makefile.in 2001/04/29 10:37:03
+--- Makefile.in.orig Wed Jan 3 11:39:15 2001
++++ Makefile.in Sun Apr 29 14:40:59 2001
@@ -35,7 +35,7 @@
DESTDIR =
@@ -12,3 +12,12 @@ $FreeBSD$
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = .
+@@ -81,7 +81,7 @@
+
+ bin_PROGRAMS = pkg-config
+
+-INCLUDES = -DPKGLIBDIR="\"$(pkglibdir)\"" -I./glib-1.2.8
++INCLUDES = -DPKGLIBDIR="\"$(pkglibdir)\"" -DXPKGLIBDIR="\"$(X11BASE)/libdata/@PACKAGE@\"" -DLPKGLIBDIR="\"$(LOCALBASE)/libdata/@PACKAGE@\"" -I./glib-1.2.8
+
+ pkg_config_SOURCES = pkg.h pkg.c partial-glib.h partial-glib.c parse.h parse.c main.c findme.c findme.h popt.c popt.h poptconfig.c popthelp.c poptint.h poptparse.c
+
diff --git a/devel/pkgconfig/files/patch-pkg.c b/devel/pkgconfig/files/patch-pkg.c
new file mode 100644
index 000000000000..56a934c0b0b5
--- /dev/null
+++ b/devel/pkgconfig/files/patch-pkg.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- pkg.c 2001/04/29 11:38:41 1.1
++++ pkg.c 2001/04/29 11:39:06
+@@ -97,6 +97,8 @@
+
+ g_slist_foreach (search_dirs, (GFunc)scan_dir, NULL);
+ scan_dir (PKGLIBDIR);
++ scan_dir (XPKGLIBDIR);
++ scan_dir (LPKGLIBDIR);
+ }
+ }
+
diff --git a/devel/pkgconfig/pkg-plist b/devel/pkgconfig/pkg-plist
index c1a5383da27c..3161e023d6fd 100644
--- a/devel/pkgconfig/pkg-plist
+++ b/devel/pkgconfig/pkg-plist
@@ -1,3 +1,5 @@
@exec mkdir -p %D/libdata/pkgconfig
bin/pkg-config
@dirrm libdata/pkgconfig
+@unexec rmdir %%LOCALBASE%%/libdata/pkgconfig 2>/dev/null || true
+@unexec rmdir %%X11BASE%%/libdata/pkgconfig 2>/dev/null || true