From 382934f35c53f2097c6e19ad03c2975d82c4bffd Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 3 Dec 2002 23:31:01 +0000 Subject: Add pkgconfig. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@217 df743ca5-7f9a-e211-a948-0013205c9059 --- devel/pkg-config/Makefile | 34 ++++++++++++++++++++++ devel/pkg-config/distinfo | 1 + devel/pkg-config/files/patch-Makefile.in | 23 +++++++++++++++ .../pkg-config/files/patch-glib-1.2.8::Makefile.in | 14 +++++++++ devel/pkg-config/files/patch-ltmain.sh | 28 ++++++++++++++++++ devel/pkg-config/files/patch-parse.c | 34 ++++++++++++++++++++++ devel/pkg-config/files/patch-pkg.c | 31 ++++++++++++++++++++ devel/pkg-config/pkg-comment | 1 + devel/pkg-config/pkg-descr | 19 ++++++++++++ devel/pkg-config/pkg-plist | 9 ++++++ devel/pkgconfig/Makefile | 34 ++++++++++++++++++++++ devel/pkgconfig/distinfo | 1 + devel/pkgconfig/files/patch-Makefile.in | 23 +++++++++++++++ .../pkgconfig/files/patch-glib-1.2.8::Makefile.in | 14 +++++++++ devel/pkgconfig/files/patch-ltmain.sh | 28 ++++++++++++++++++ devel/pkgconfig/files/patch-parse.c | 34 ++++++++++++++++++++++ devel/pkgconfig/files/patch-pkg.c | 31 ++++++++++++++++++++ devel/pkgconfig/pkg-comment | 1 + devel/pkgconfig/pkg-descr | 19 ++++++++++++ devel/pkgconfig/pkg-plist | 9 ++++++ 20 files changed, 388 insertions(+) create mode 100644 devel/pkg-config/Makefile create mode 100644 devel/pkg-config/distinfo create mode 100644 devel/pkg-config/files/patch-Makefile.in create mode 100644 devel/pkg-config/files/patch-glib-1.2.8::Makefile.in create mode 100644 devel/pkg-config/files/patch-ltmain.sh create mode 100644 devel/pkg-config/files/patch-parse.c create mode 100644 devel/pkg-config/files/patch-pkg.c create mode 100644 devel/pkg-config/pkg-comment create mode 100644 devel/pkg-config/pkg-descr create mode 100644 devel/pkg-config/pkg-plist create mode 100644 devel/pkgconfig/Makefile create mode 100644 devel/pkgconfig/distinfo create mode 100644 devel/pkgconfig/files/patch-Makefile.in create mode 100644 devel/pkgconfig/files/patch-glib-1.2.8::Makefile.in create mode 100644 devel/pkgconfig/files/patch-ltmain.sh create mode 100644 devel/pkgconfig/files/patch-parse.c create mode 100644 devel/pkgconfig/files/patch-pkg.c create mode 100644 devel/pkgconfig/pkg-comment create mode 100644 devel/pkgconfig/pkg-descr create mode 100644 devel/pkgconfig/pkg-plist (limited to 'devel') diff --git a/devel/pkg-config/Makefile b/devel/pkg-config/Makefile new file mode 100644 index 000000000..993d1673f --- /dev/null +++ b/devel/pkg-config/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: pkgconfig +# Date created: 30 April 2001 +# Whom: Maxim Sobolev +# +# $FreeBSD: ports/devel/pkgconfig/Makefile,v 1.25 2002/11/04 18:54:18 marcus Exp $ +# + +PORTNAME= pkgconfig +PORTVERSION= 0.14.0 +CATEGORIES= devel +MASTER_SITES= http://www.freedesktop.org/software/pkgconfig/releases/ \ + ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.14 +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org + +#USE_BZIP2= yes +USE_GMAKE= yes +USE_LIBTOOL= yes +LIBTOOLFILES= glib-1.2.8/configure +LIBTOOLFLAGS= --disable-ltlibs \ + --disable-shared +CONFIGURE_ARGS= --disable-threads +MAKE_ENV= PKGCONF_BUILD=yes + +PLIST_SUB= LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} + +MAN1= pkg-config.1 + +post-install: + ${MKDIR} ${PREFIX}/libdata/pkgconfig + +.include diff --git a/devel/pkg-config/distinfo b/devel/pkg-config/distinfo new file mode 100644 index 000000000..1a965668d --- /dev/null +++ b/devel/pkg-config/distinfo @@ -0,0 +1 @@ +MD5 (gnome2/pkgconfig-0.14.0.tar.gz) = 317a7c4003536cb64f4c64ff64f51dc8 diff --git a/devel/pkg-config/files/patch-Makefile.in b/devel/pkg-config/files/patch-Makefile.in new file mode 100644 index 000000000..69f49edbd --- /dev/null +++ b/devel/pkg-config/files/patch-Makefile.in @@ -0,0 +1,23 @@ + +$FreeBSD: ports/devel/pkgconfig/files/patch-Makefile.in,v 1.3 2002/02/07 12:54:53 sobomax Exp $ + +--- Makefile.in.orig Sun Feb 3 20:23:27 2002 ++++ Makefile.in Thu Feb 7 11:46:04 2002 +@@ -35,7 +35,7 @@ + DESTDIR = + + pkgdatadir = $(datadir)/@PACKAGE@ +-pkglibdir = $(libdir)/@PACKAGE@ ++pkglibdir = $(prefix)/libdata/@PACKAGE@ + pkgincludedir = $(includedir)/@PACKAGE@ + + top_builddir = . +@@ -91,7 +91,7 @@ + + bin_PROGRAMS = pkg-config + +-INCLUDES = -DPKGLIBDIR="\"$(pkglibdir)\"" $(included_glib_includes) ++INCLUDES = -DPKGLIBDIR="\"$(pkglibdir)\"" -DXPKGLIBDIR="\"$(X11BASE)/libdata/@PACKAGE@\"" -DLPKGLIBDIR="\"$(LOCALBASE)/libdata/@PACKAGE@\"" $(included_glib_includes) + + pkg_config_SOURCES = \ + pkg.h \ diff --git a/devel/pkg-config/files/patch-glib-1.2.8::Makefile.in b/devel/pkg-config/files/patch-glib-1.2.8::Makefile.in new file mode 100644 index 000000000..4f5e1326b --- /dev/null +++ b/devel/pkg-config/files/patch-glib-1.2.8::Makefile.in @@ -0,0 +1,14 @@ + +$FreeBSD: ports/devel/pkgconfig/files/patch-glib-1.2.8::Makefile.in,v 1.2 2001/08/01 17:46:50 sobomax Exp $ + +--- glib-1.2.8/Makefile.in.orig Thu Jul 12 03:45:31 2001 ++++ glib-1.2.8/Makefile.in Wed Aug 1 10:42:44 2001 +@@ -501,7 +501,7 @@ + + install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am +-install: install-recursive ++install: + uninstall-am: + uninstall: uninstall-recursive + all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(DATA) \ diff --git a/devel/pkg-config/files/patch-ltmain.sh b/devel/pkg-config/files/patch-ltmain.sh new file mode 100644 index 000000000..6dfd8e382 --- /dev/null +++ b/devel/pkg-config/files/patch-ltmain.sh @@ -0,0 +1,28 @@ + +$FreeBSD: ports/devel/pkgconfig/files/patch-ltmain.sh,v 1.4 2001/12/20 06:18:58 sobomax Exp $ + +--- ltmain.sh 2001/08/27 09:51:26 1.1 ++++ ltmain.sh 2001/08/27 09:51:42 +@@ -2408,6 +2408,9 @@ + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; ++ *-*-freebsd*) ++ # FreeBSD doesn't need this... ++ ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test "$build_libtool_need_lc" = "yes"; then +@@ -4175,10 +4178,12 @@ + fi + + # Install the pseudo-library for information purposes. ++ if /usr/bin/false; then + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? ++ fi + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" diff --git a/devel/pkg-config/files/patch-parse.c b/devel/pkg-config/files/patch-parse.c new file mode 100644 index 000000000..1f8fc6d91 --- /dev/null +++ b/devel/pkg-config/files/patch-parse.c @@ -0,0 +1,34 @@ + +$FreeBSD: ports/devel/pkgconfig/files/patch-parse.c,v 1.1 2001/08/01 17:46:50 sobomax Exp $ + +--- parse.c 2001/08/01 07:24:17 1.1 ++++ parse.c 2001/08/01 07:25:02 +@@ -952,9 +952,9 @@ + { + char *output; + +- debug_spew ("Calling glib-config\n"); ++ debug_spew ("Calling glib12-config\n"); + +- pkg->version = backticks ("glib-config --version"); ++ pkg->version = backticks ("glib12-config --version"); + if (pkg->version == NULL) + { + g_free (pkg); +@@ -965,12 +965,12 @@ + pkg->key = g_strdup ("glib"); + pkg->description = g_strdup ("C Utility Library"); + +- output = backticks ("glib-config --libs"); +- parse_libs (pkg, output, "glib-config"); ++ output = backticks ("glib12-config --libs"); ++ parse_libs (pkg, output, "glib12-config"); + g_free (output); + +- output = backticks ("glib-config --cflags"); +- parse_cflags (pkg, output, "glib-config"); ++ output = backticks ("glib12-config --cflags"); ++ parse_cflags (pkg, output, "glib12-config"); + g_free (output); + + return pkg; diff --git a/devel/pkg-config/files/patch-pkg.c b/devel/pkg-config/files/patch-pkg.c new file mode 100644 index 000000000..4fa853721 --- /dev/null +++ b/devel/pkg-config/files/patch-pkg.c @@ -0,0 +1,31 @@ +--- pkg.c.orig Thu Feb 7 14:32:13 2002 ++++ pkg.c Tue Mar 12 16:54:50 2002 +@@ -93,7 +93,7 @@ + * locations, ignoring duplicates + */ + static void +-scan_dir (const char *dirname) ++scan_dir (const char *dirname, void *quiet) + { + DIR *dir; + struct dirent *dent; +@@ -113,7 +113,8 @@ + free (dirname_copy); + if (!dir) + { +- debug_spew ("Cannot open directory '%s' in package search path: %s\n", ++ if (!quiet) ++ debug_spew ("Cannot open directory '%s' in package search path: %s\n", + dirname, g_strerror (errno)); + return; + } +@@ -177,7 +178,9 @@ + path_positions = g_hash_table_new (g_str_hash, g_str_equal); + + g_slist_foreach (search_dirs, (GFunc)scan_dir, NULL); +- scan_dir (PKGLIBDIR); ++ scan_dir (PKGLIBDIR, (void *)0); ++ scan_dir (XPKGLIBDIR, (void *)1); ++ scan_dir (LPKGLIBDIR, (void *)1); + } + } diff --git a/devel/pkg-config/pkg-comment b/devel/pkg-config/pkg-comment new file mode 100644 index 000000000..693e559de --- /dev/null +++ b/devel/pkg-config/pkg-comment @@ -0,0 +1 @@ +An utility used to retrieve information about installed libraries diff --git a/devel/pkg-config/pkg-descr b/devel/pkg-config/pkg-descr new file mode 100644 index 000000000..f61c1700e --- /dev/null +++ b/devel/pkg-config/pkg-descr @@ -0,0 +1,19 @@ +The pkg-config program is used to retrieve information about installed +libraries in the system. It is typically used to compile and link against one +or more libraries. + +pkg-config retrieves information about packages from special metadata files. +These files are named after the package, with the extension .pc. By default, +pkg-config looks in the following directories: ${PREFIX}/libdata/pkgconfig, +${LOCALBASE}/libdata/pkgconfig and ${X11BASE}/libdata/pkgconfig for these +files; it will also look in the list of directories specified by the +PKG_CONFIG_PATH environment variable. + +The package name specified on the pkg-config command line is defined to be the +name of the metadata file, minus the .pc extension. If a library can install +multiple versions simultaneously, it must give each version its own name (for +example, GTK 1.2 might have the package name "gtk+" while GTK 2.0 has +"gtk+-2.0"). + +WWW: http://www.freedesktop.org/software/pkgconfig/ + http://pkgconfig.sourceforge.net diff --git a/devel/pkg-config/pkg-plist b/devel/pkg-config/pkg-plist new file mode 100644 index 000000000..27536941e --- /dev/null +++ b/devel/pkg-config/pkg-plist @@ -0,0 +1,9 @@ +@exec mkdir -p %D/libdata/pkgconfig +bin/pkg-config +share/aclocal/pkg.m4 +@comment The files in these directories should only be removed if you +@comment remove the complete GNOME installation. If this is only an +@comment upgrade, don't throw them out! +@unexec echo "If you're only upgrading, don't remove %%LOCALBASE%%/libdata/pkgconfig nor %%X11BASE%%/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 new file mode 100644 index 000000000..993d1673f --- /dev/null +++ b/devel/pkgconfig/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: pkgconfig +# Date created: 30 April 2001 +# Whom: Maxim Sobolev +# +# $FreeBSD: ports/devel/pkgconfig/Makefile,v 1.25 2002/11/04 18:54:18 marcus Exp $ +# + +PORTNAME= pkgconfig +PORTVERSION= 0.14.0 +CATEGORIES= devel +MASTER_SITES= http://www.freedesktop.org/software/pkgconfig/releases/ \ + ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.14 +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org + +#USE_BZIP2= yes +USE_GMAKE= yes +USE_LIBTOOL= yes +LIBTOOLFILES= glib-1.2.8/configure +LIBTOOLFLAGS= --disable-ltlibs \ + --disable-shared +CONFIGURE_ARGS= --disable-threads +MAKE_ENV= PKGCONF_BUILD=yes + +PLIST_SUB= LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} + +MAN1= pkg-config.1 + +post-install: + ${MKDIR} ${PREFIX}/libdata/pkgconfig + +.include diff --git a/devel/pkgconfig/distinfo b/devel/pkgconfig/distinfo new file mode 100644 index 000000000..1a965668d --- /dev/null +++ b/devel/pkgconfig/distinfo @@ -0,0 +1 @@ +MD5 (gnome2/pkgconfig-0.14.0.tar.gz) = 317a7c4003536cb64f4c64ff64f51dc8 diff --git a/devel/pkgconfig/files/patch-Makefile.in b/devel/pkgconfig/files/patch-Makefile.in new file mode 100644 index 000000000..69f49edbd --- /dev/null +++ b/devel/pkgconfig/files/patch-Makefile.in @@ -0,0 +1,23 @@ + +$FreeBSD: ports/devel/pkgconfig/files/patch-Makefile.in,v 1.3 2002/02/07 12:54:53 sobomax Exp $ + +--- Makefile.in.orig Sun Feb 3 20:23:27 2002 ++++ Makefile.in Thu Feb 7 11:46:04 2002 +@@ -35,7 +35,7 @@ + DESTDIR = + + pkgdatadir = $(datadir)/@PACKAGE@ +-pkglibdir = $(libdir)/@PACKAGE@ ++pkglibdir = $(prefix)/libdata/@PACKAGE@ + pkgincludedir = $(includedir)/@PACKAGE@ + + top_builddir = . +@@ -91,7 +91,7 @@ + + bin_PROGRAMS = pkg-config + +-INCLUDES = -DPKGLIBDIR="\"$(pkglibdir)\"" $(included_glib_includes) ++INCLUDES = -DPKGLIBDIR="\"$(pkglibdir)\"" -DXPKGLIBDIR="\"$(X11BASE)/libdata/@PACKAGE@\"" -DLPKGLIBDIR="\"$(LOCALBASE)/libdata/@PACKAGE@\"" $(included_glib_includes) + + pkg_config_SOURCES = \ + pkg.h \ diff --git a/devel/pkgconfig/files/patch-glib-1.2.8::Makefile.in b/devel/pkgconfig/files/patch-glib-1.2.8::Makefile.in new file mode 100644 index 000000000..4f5e1326b --- /dev/null +++ b/devel/pkgconfig/files/patch-glib-1.2.8::Makefile.in @@ -0,0 +1,14 @@ + +$FreeBSD: ports/devel/pkgconfig/files/patch-glib-1.2.8::Makefile.in,v 1.2 2001/08/01 17:46:50 sobomax Exp $ + +--- glib-1.2.8/Makefile.in.orig Thu Jul 12 03:45:31 2001 ++++ glib-1.2.8/Makefile.in Wed Aug 1 10:42:44 2001 +@@ -501,7 +501,7 @@ + + install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am +-install: install-recursive ++install: + uninstall-am: + uninstall: uninstall-recursive + all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(DATA) \ diff --git a/devel/pkgconfig/files/patch-ltmain.sh b/devel/pkgconfig/files/patch-ltmain.sh new file mode 100644 index 000000000..6dfd8e382 --- /dev/null +++ b/devel/pkgconfig/files/patch-ltmain.sh @@ -0,0 +1,28 @@ + +$FreeBSD: ports/devel/pkgconfig/files/patch-ltmain.sh,v 1.4 2001/12/20 06:18:58 sobomax Exp $ + +--- ltmain.sh 2001/08/27 09:51:26 1.1 ++++ ltmain.sh 2001/08/27 09:51:42 +@@ -2408,6 +2408,9 @@ + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; ++ *-*-freebsd*) ++ # FreeBSD doesn't need this... ++ ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test "$build_libtool_need_lc" = "yes"; then +@@ -4175,10 +4178,12 @@ + fi + + # Install the pseudo-library for information purposes. ++ if /usr/bin/false; then + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? ++ fi + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" diff --git a/devel/pkgconfig/files/patch-parse.c b/devel/pkgconfig/files/patch-parse.c new file mode 100644 index 000000000..1f8fc6d91 --- /dev/null +++ b/devel/pkgconfig/files/patch-parse.c @@ -0,0 +1,34 @@ + +$FreeBSD: ports/devel/pkgconfig/files/patch-parse.c,v 1.1 2001/08/01 17:46:50 sobomax Exp $ + +--- parse.c 2001/08/01 07:24:17 1.1 ++++ parse.c 2001/08/01 07:25:02 +@@ -952,9 +952,9 @@ + { + char *output; + +- debug_spew ("Calling glib-config\n"); ++ debug_spew ("Calling glib12-config\n"); + +- pkg->version = backticks ("glib-config --version"); ++ pkg->version = backticks ("glib12-config --version"); + if (pkg->version == NULL) + { + g_free (pkg); +@@ -965,12 +965,12 @@ + pkg->key = g_strdup ("glib"); + pkg->description = g_strdup ("C Utility Library"); + +- output = backticks ("glib-config --libs"); +- parse_libs (pkg, output, "glib-config"); ++ output = backticks ("glib12-config --libs"); ++ parse_libs (pkg, output, "glib12-config"); + g_free (output); + +- output = backticks ("glib-config --cflags"); +- parse_cflags (pkg, output, "glib-config"); ++ output = backticks ("glib12-config --cflags"); ++ parse_cflags (pkg, output, "glib12-config"); + g_free (output); + + return pkg; diff --git a/devel/pkgconfig/files/patch-pkg.c b/devel/pkgconfig/files/patch-pkg.c new file mode 100644 index 000000000..4fa853721 --- /dev/null +++ b/devel/pkgconfig/files/patch-pkg.c @@ -0,0 +1,31 @@ +--- pkg.c.orig Thu Feb 7 14:32:13 2002 ++++ pkg.c Tue Mar 12 16:54:50 2002 +@@ -93,7 +93,7 @@ + * locations, ignoring duplicates + */ + static void +-scan_dir (const char *dirname) ++scan_dir (const char *dirname, void *quiet) + { + DIR *dir; + struct dirent *dent; +@@ -113,7 +113,8 @@ + free (dirname_copy); + if (!dir) + { +- debug_spew ("Cannot open directory '%s' in package search path: %s\n", ++ if (!quiet) ++ debug_spew ("Cannot open directory '%s' in package search path: %s\n", + dirname, g_strerror (errno)); + return; + } +@@ -177,7 +178,9 @@ + path_positions = g_hash_table_new (g_str_hash, g_str_equal); + + g_slist_foreach (search_dirs, (GFunc)scan_dir, NULL); +- scan_dir (PKGLIBDIR); ++ scan_dir (PKGLIBDIR, (void *)0); ++ scan_dir (XPKGLIBDIR, (void *)1); ++ scan_dir (LPKGLIBDIR, (void *)1); + } + } diff --git a/devel/pkgconfig/pkg-comment b/devel/pkgconfig/pkg-comment new file mode 100644 index 000000000..693e559de --- /dev/null +++ b/devel/pkgconfig/pkg-comment @@ -0,0 +1 @@ +An utility used to retrieve information about installed libraries diff --git a/devel/pkgconfig/pkg-descr b/devel/pkgconfig/pkg-descr new file mode 100644 index 000000000..f61c1700e --- /dev/null +++ b/devel/pkgconfig/pkg-descr @@ -0,0 +1,19 @@ +The pkg-config program is used to retrieve information about installed +libraries in the system. It is typically used to compile and link against one +or more libraries. + +pkg-config retrieves information about packages from special metadata files. +These files are named after the package, with the extension .pc. By default, +pkg-config looks in the following directories: ${PREFIX}/libdata/pkgconfig, +${LOCALBASE}/libdata/pkgconfig and ${X11BASE}/libdata/pkgconfig for these +files; it will also look in the list of directories specified by the +PKG_CONFIG_PATH environment variable. + +The package name specified on the pkg-config command line is defined to be the +name of the metadata file, minus the .pc extension. If a library can install +multiple versions simultaneously, it must give each version its own name (for +example, GTK 1.2 might have the package name "gtk+" while GTK 2.0 has +"gtk+-2.0"). + +WWW: http://www.freedesktop.org/software/pkgconfig/ + http://pkgconfig.sourceforge.net diff --git a/devel/pkgconfig/pkg-plist b/devel/pkgconfig/pkg-plist new file mode 100644 index 000000000..27536941e --- /dev/null +++ b/devel/pkgconfig/pkg-plist @@ -0,0 +1,9 @@ +@exec mkdir -p %D/libdata/pkgconfig +bin/pkg-config +share/aclocal/pkg.m4 +@comment The files in these directories should only be removed if you +@comment remove the complete GNOME installation. If this is only an +@comment upgrade, don't throw them out! +@unexec echo "If you're only upgrading, don't remove %%LOCALBASE%%/libdata/pkgconfig nor %%X11BASE%%/libdata/pkgconfig" +@unexec rmdir %%LOCALBASE%%/libdata/pkgconfig 2>/dev/null || true +@unexec rmdir %%X11BASE%%/libdata/pkgconfig 2>/dev/null || true -- cgit v1.2.3