summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-04-29 11:50:03 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-04-29 11:50:03 +0000
commitcb2d1f7fd64f40aa1a7fa460dbf195a4a021c2e7 (patch)
tree7f2db5c61d28f51f1c483fc5d27ec351e7775894
parentDelete ipfw rule on stop (commented out) (diff)
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.
Notes
Notes: svn path=/head/; revision=42028
-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