Initial import of pkgconfig-0.8.0
--- pkg-config is a system for managing library compile/link flags that works with automake and autoconf. It replaces the ubiquitous *-config scripts you may have seen with a single tool.
This commit is contained in:
parent
fde29e65ce
commit
21bae30047
29
devel/pkgconfig/Makefile
Normal file
29
devel/pkgconfig/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2001/10/24 17:08:38 shell Exp $
|
||||
|
||||
COMMENT= "tool for managing library compile/link flags"
|
||||
|
||||
VERSION= 0.8.0
|
||||
DISTNAME= pkgconfig-${VERSION}
|
||||
|
||||
CATEGORIES= devel
|
||||
NEED_VERSION= 1.482
|
||||
|
||||
HOMEPAGE= http://www.freedesktop.org/software/pkgconfig/
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}/releases/
|
||||
|
||||
MAINTAINER= Shell Hung <shell@openbsd.org>
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
LIB_DEPENDS= pthread.14:pth-1.4.*:devel/pth
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/pth" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib/pth"
|
||||
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/pkgconfig/files/md5
Normal file
3
devel/pkgconfig/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (pkgconfig-0.8.0.tar.gz) = e110ee9635fbc0ec159c440c75876a96
|
||||
RMD160 (pkgconfig-0.8.0.tar.gz) = 1de701eedee6d9d777a5d8ed431eb6381d059615
|
||||
SHA1 (pkgconfig-0.8.0.tar.gz) = b750e4bab6c9ec9a8a2ac4cb2311d97314d56b0d
|
155
devel/pkgconfig/patches/patch-ltmain_sh
Normal file
155
devel/pkgconfig/patches/patch-ltmain_sh
Normal file
@ -0,0 +1,155 @@
|
||||
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2001/10/24 17:08:38 shell Exp $
|
||||
--- ltmain.sh.orig Wed Oct 10 18:23:40 2001
|
||||
+++ ltmain.sh Wed Oct 10 18:25:37 2001
|
||||
@@ -757,6 +757,7 @@
|
||||
linker_flags=
|
||||
dllsearchpath=
|
||||
lib_search_path=`pwd`
|
||||
+ inst_prefix_dir=
|
||||
|
||||
avoid_version=no
|
||||
dlfiles=
|
||||
@@ -887,6 +888,11 @@
|
||||
prev=
|
||||
continue
|
||||
;;
|
||||
+ inst_prefix)
|
||||
+ inst_prefix_dir="$arg"
|
||||
+ prev=
|
||||
+ continue
|
||||
+ ;;
|
||||
release)
|
||||
release="-$arg"
|
||||
prev=
|
||||
@@ -987,6 +993,10 @@
|
||||
fi
|
||||
continue
|
||||
;;
|
||||
+ -inst-prefix-dir)
|
||||
+ prev=inst_prefix
|
||||
+ continue
|
||||
+ ;;
|
||||
|
||||
# The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
|
||||
# so, if we see these flags be careful not to treat them like -L
|
||||
@@ -1091,6 +1101,17 @@
|
||||
|
||||
-o) prev=output ;;
|
||||
|
||||
+ -pthread)
|
||||
+ case $host in
|
||||
+ *-*-openbsd*)
|
||||
+ deplibs="$deplibs $arg"
|
||||
+ ;;
|
||||
+ *)
|
||||
+ continue
|
||||
+ ;;
|
||||
+ esac
|
||||
+ ;;
|
||||
+
|
||||
-release)
|
||||
prev=release
|
||||
continue
|
||||
@@ -1868,6 +1889,7 @@
|
||||
|
||||
if test $linkmode = prog || test "$mode" = relink; then
|
||||
add_shlibpath=
|
||||
+ add_prefix_dir=
|
||||
add_dir=
|
||||
add=
|
||||
# Finalize command for both is simple: just hardcode it.
|
||||
@@ -1888,10 +1910,20 @@
|
||||
add="-l$name"
|
||||
fi
|
||||
|
||||
+ if test -n "$inst_prefix_dir"; then
|
||||
+ case "$libdir" in
|
||||
+ [\\/]*)
|
||||
+ add_prefix_dir="-L$inst_prefix_dir$libdir"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ fi
|
||||
+
|
||||
if test $linkmode = prog; then
|
||||
+ test -n "$add_prefix_dir" && finalize_deplibs="$finalize_deplibs $add_prefix_dir"
|
||||
test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
|
||||
test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
|
||||
else
|
||||
+ test -n "$add_prefix_dir" && deplibs="$deplibs $add_prefix_dir"
|
||||
test -n "$add_dir" && deplibs="$add_dir $deplibs"
|
||||
test -n "$add" && deplibs="$add $deplibs"
|
||||
fi
|
||||
@@ -3858,7 +3890,7 @@
|
||||
fi
|
||||
done
|
||||
# Quote the link command for shipping.
|
||||
- relink_command="cd `pwd`; $SHELL $0 --mode=relink $libtool_args"
|
||||
+ relink_command="cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@"
|
||||
relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
|
||||
|
||||
# Only create the output if not a dry run.
|
||||
@@ -4159,6 +4191,23 @@
|
||||
dir="$dir$objdir"
|
||||
|
||||
if test -n "$relink_command"; then
|
||||
+ # Determine the prefix the user has applied to our future dir.
|
||||
+ inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"`
|
||||
+
|
||||
+ # Don't allow the user to place us outside of our expected
|
||||
+ # location b/c this prevents finding dependent libraries that
|
||||
+ # are installed to the same prefix.
|
||||
+ if test "$inst_prefix_dir" = "$destdir"; then
|
||||
+ $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
|
||||
+ exit 1
|
||||
+ fi
|
||||
+
|
||||
+ if test -n "$inst_prefix_dir"; then
|
||||
+ # Stick the inst_prefix_dir data into the link command.
|
||||
+ relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
|
||||
+ else
|
||||
+ relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"`
|
||||
+ fi
|
||||
$echo "$modename: warning: relinking \`$file'" 1>&2
|
||||
$show "$relink_command"
|
||||
if $run eval "$relink_command"; then :
|
||||
@@ -4446,40 +4495,6 @@
|
||||
# Exit here if they wanted silent mode.
|
||||
test "$show" = ":" && exit 0
|
||||
|
||||
- echo "----------------------------------------------------------------------"
|
||||
- echo "Libraries have been installed in:"
|
||||
- for libdir in $libdirs; do
|
||||
- echo " $libdir"
|
||||
- done
|
||||
- echo
|
||||
- echo "If you ever happen to want to link against installed libraries"
|
||||
- echo "in a given directory, LIBDIR, you must either use libtool, and"
|
||||
- echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
|
||||
- echo "flag during linking and do at least one of the following:"
|
||||
- if test -n "$shlibpath_var"; then
|
||||
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
|
||||
- echo " during execution"
|
||||
- fi
|
||||
- if test -n "$runpath_var"; then
|
||||
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
|
||||
- echo " during linking"
|
||||
- fi
|
||||
- if test -n "$hardcode_libdir_flag_spec"; then
|
||||
- libdir=LIBDIR
|
||||
- eval flag=\"$hardcode_libdir_flag_spec\"
|
||||
-
|
||||
- echo " - use the \`$flag' linker flag"
|
||||
- fi
|
||||
- if test -n "$admincmds"; then
|
||||
- echo " - have your system administrator run these commands:$admincmds"
|
||||
- fi
|
||||
- if test -f /etc/ld.so.conf; then
|
||||
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
|
||||
- fi
|
||||
- echo
|
||||
- echo "See any operating system documentation about shared libraries for"
|
||||
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
|
||||
- echo "----------------------------------------------------------------------"
|
||||
exit 0
|
||||
;;
|
||||
|
5
devel/pkgconfig/pkg/DESCR
Normal file
5
devel/pkgconfig/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
pkg-config is a system for managing library compile/link flags that
|
||||
works with automake and autoconf. It replaces the ubiquitous *-config
|
||||
scripts you may have seen with a single tool.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
4
devel/pkgconfig/pkg/PLIST
Normal file
4
devel/pkgconfig/pkg/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/10/24 17:08:38 shell Exp $
|
||||
bin/pkg-config
|
||||
man/man1/pkg-config.1
|
||||
share/aclocal/pkg.m4
|
Loading…
Reference in New Issue
Block a user