summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authortnn <tnn>2008-05-23 21:08:18 +0000
committertnn <tnn>2008-05-23 21:08:18 +0000
commita1d860908c446639a84e182525bd93afd3d8c230 (patch)
tree4596caf2fe23eadda05780fefbfb73e651f8d8ab /pkgtools
parent12f25721e2319abd2cbd4f185eb748b65b05e820 (diff)
downloadpkgsrc-a1d860908c446639a84e182525bd93afd3d8c230.tar.gz
Since posix is a registered trademark and this package by no means provides
nor intends to provide full posix(r) compatibility, I've decided to rename it. An improved version of the package will be re-imported later, probably under the name "compat_headers".
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/posix_headers/DESCR6
-rw-r--r--pkgtools/posix_headers/Makefile34
-rw-r--r--pkgtools/posix_headers/buildlink3.mk21
-rwxr-xr-xpkgtools/posix_headers/files/make.sh17
-rw-r--r--pkgtools/posix_headers/files/math.h.in30
-rw-r--r--pkgtools/posix_headers/files/math.h.tests10
-rw-r--r--pkgtools/posix_headers/files/resolv.h.in16
-rw-r--r--pkgtools/posix_headers/files/resolv.h.tests1
-rw-r--r--pkgtools/posix_headers/files/stdint.h.in8
-rw-r--r--pkgtools/posix_headers/files/stdint.h.tests2
-rw-r--r--pkgtools/posix_headers/files/stdlib.h.in9
-rw-r--r--pkgtools/posix_headers/files/stdlib.h.tests1
-rwxr-xr-xpkgtools/posix_headers/files/subr.sh111
-rw-r--r--pkgtools/posix_headers/files/sys/select.h.in3
-rw-r--r--pkgtools/posix_headers/files/sys/select.h.tests1
15 files changed, 0 insertions, 270 deletions
diff --git a/pkgtools/posix_headers/DESCR b/pkgtools/posix_headers/DESCR
deleted file mode 100644
index 599f16cc26f..00000000000
--- a/pkgtools/posix_headers/DESCR
+++ /dev/null
@@ -1,6 +0,0 @@
-This package attempts to resolve deficiencies in system headers.
-These deficiencies are commonly found on older operating system releases.
-When use of posix_headers has been enabled on a platform, this package will
-become a compile-time dependency for every package. It will provide customized
-header files that take preference over some system provided ones (that may
-not even exist). This happens transparently through use of buildlink3.
diff --git a/pkgtools/posix_headers/Makefile b/pkgtools/posix_headers/Makefile
deleted file mode 100644
index b187a6cf7fc..00000000000
--- a/pkgtools/posix_headers/Makefile
+++ /dev/null
@@ -1,34 +0,0 @@
-# $NetBSD: Makefile,v 1.9 2008/02/16 22:24:19 tnn Exp $
-
-DISTNAME= posix_headers-0.6
-CATEGORIES= pkgtools
-MASTER_SITES= # empty
-DISTFILES= # empty
-
-MAINTAINER= tnn@NetBSD.org
-HOMEPAGE= http://www.pkgsrc.org/
-COMMENT= POSIX compatibility headers
-
-NO_PKGTOOLS_REQD_CHECK= yes
-NO_CHECKSUM= yes
-NO_MTREE= yes
-NO_CONFIGURE= yes
-PKG_DESTDIR_SUPPORT= user-destdir
-
-PLIST_SRC= ${WRKDIR}/PLIST_SRC
-REPLACE_SH+= make.sh
-BUILDING_POSIX_HEADERS= yes
-
-do-extract:
- cp -R ${FILESDIR} ${WRKSRC}
-
-do-build:
- cd ${WRKSRC} && ./make.sh
- find ${WRKSRC} -name "*.h" | sed 's,${WRKSRC}/,,' > ${WRKSRC}/hfiles
- cat ${WRKSRC}/hfiles | sed 's,^,include/,' > ${PLIST_SRC}
-
-do-install:
- for f in `cat ${WRKSRC}/hfiles`; do \
- ${INSTALL_DATA} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/include/$$f; done
-
-.include "../../mk/bsd.pkg.mk"
diff --git a/pkgtools/posix_headers/buildlink3.mk b/pkgtools/posix_headers/buildlink3.mk
deleted file mode 100644
index 680440fa304..00000000000
--- a/pkgtools/posix_headers/buildlink3.mk
+++ /dev/null
@@ -1,21 +0,0 @@
-# $NetBSD: buildlink3.mk,v 1.5 2007/08/01 21:33:40 tnn Exp $
-
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
-POSIX_HEADERS_BUILDLINK3_MK:= ${POSIX_HEADERS_BUILDLINK3_MK}+
-
-.if !empty(BUILDLINK_DEPTH:M+)
-BUILDLINK_DEPENDS+= posix_headers
-.endif
-
-BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nposix_headers}
-BUILDLINK_PACKAGES+= posix_headers
-BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}posix_headers
-
-.if !empty(POSIX_HEADERS_BUILDLINK3_MK:M+)
-BUILDLINK_API_DEPENDS.posix_headers+= posix_headers>=0.5
-BUILDLINK_ABI_DEPENDS.posix_headers+= posix_headers>=0.5
-BUILDLINK_PKGSRCDIR.posix_headers?= ../../pkgtools/posix_headers
-BUILDLINK_DEPMETHOD.posix_headers?= build
-.endif # POSIX_HEADERS_BUILDLINK3_MK
-
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/pkgtools/posix_headers/files/make.sh b/pkgtools/posix_headers/files/make.sh
deleted file mode 100755
index cf5eafe4638..00000000000
--- a/pkgtools/posix_headers/files/make.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#! /bin/sh
-#
-# $NetBSD: make.sh,v 1.1 2007/08/01 21:33:40 tnn Exp $
-#
-# Please read subr.sh for a brief explanation of how this works.
-
-[ -z "$CC" ] && CC=gcc
-[ -z "$CPP" ] && CPP="$CC -E"
-
-HEADERS="math.h resolv.h stdlib.h stdint.h sys/select.h"
-
-. ./subr.sh
-
-for hdr in $HEADERS
-do
- make_header $hdr
-done
diff --git a/pkgtools/posix_headers/files/math.h.in b/pkgtools/posix_headers/files/math.h.in
deleted file mode 100644
index 3d05518567d..00000000000
--- a/pkgtools/posix_headers/files/math.h.in
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef @floorf@
-@define floorf(x) ((float)floor (x))
-#endif
-#ifndef @ceilf@
-@define ceilf(x) ((float)ceil (x))
-#endif
-#ifndef @sinf@
-@define sinf(x) ((float)sin (x))
-#endif
-#ifndef @cosf@
-@define cosf(x) ((float)cos (x))
-#endif
-#ifndef @tanf@
-@define tanf(x) ((float)tan (x))
-#endif
-#ifndef @asinf@
-@define asinf(x) ((float)asin (x))
-#endif
-#ifndef @acosf@
-@define acosf(x) ((float)acos (x))
-#endif
-#ifndef @atanf@
-@define atanf(x) ((float)atan (x))
-#endif
-#ifndef @atan2f@
-@define atan2f(x,y) ((float)atan2 (x, y))
-#endif
-#ifndef @sqrtf@
-@define sqrtf(x) ((float)sqrt (y))
-#endif
diff --git a/pkgtools/posix_headers/files/math.h.tests b/pkgtools/posix_headers/files/math.h.tests
deleted file mode 100644
index cb87667d1de..00000000000
--- a/pkgtools/posix_headers/files/math.h.tests
+++ /dev/null
@@ -1,10 +0,0 @@
-scan_preproc|floorf| floorf(
-scan_preproc|ceilf| ceilf(
-scan_preproc|sinf| sinf(
-scan_preproc|cosf| cosf(
-scan_preproc|tanf| tanf(
-scan_preproc|asinf| asinf(
-scan_preproc|acosf| acosf(
-scan_preproc|atanf| atanf(
-scan_preproc|atan2f| atan2f(
-scan_preproc|sqrtf| sqrtf(
diff --git a/pkgtools/posix_headers/files/resolv.h.in b/pkgtools/posix_headers/files/resolv.h.in
deleted file mode 100644
index 1cc80ba9277..00000000000
--- a/pkgtools/posix_headers/files/resolv.h.in
+++ /dev/null
@@ -1,16 +0,0 @@
-#if !defined(@have_res_proto@) && defined(__hpux)
-@ifdef __cplusplus
-extern "C" {
-@endif
-ssize_t res_query(char*, int, int, u_char*, int);
-ssize_t res_search(char*, int, int, u_char*, int);
-ssize_t res_mkquery(int, const char*, int, int, const char*, int,\
- const char*, char*, int);
-ssize_t res_send(const char*, ssize_t, char*, int);
-int res_init();
-ssize_t dn_comp(const char*, u_char*, ssize_t, u_char**, u_char**);
-ssize_t dn_expand(const u_char*, const u_char*, const u_char*, u_char*, int);
-@ifdef __cplusplus
-}
-@endif
-#endif
diff --git a/pkgtools/posix_headers/files/resolv.h.tests b/pkgtools/posix_headers/files/resolv.h.tests
deleted file mode 100644
index 4d4a93a36ee..00000000000
--- a/pkgtools/posix_headers/files/resolv.h.tests
+++ /dev/null
@@ -1 +0,0 @@
-scan_preproc|have_res_proto|dn_expand
diff --git a/pkgtools/posix_headers/files/stdint.h.in b/pkgtools/posix_headers/files/stdint.h.in
deleted file mode 100644
index ab9d10c8b57..00000000000
--- a/pkgtools/posix_headers/files/stdint.h.in
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef @have_stdint@
-#ifdef @have_inttypes@
-@include <inttypes.h>
-#endif
-@ifndef UINT_FAST32_MAX
-@define UINT_FAST32_MAX 0xffffffffU
-@endif
-#endif
diff --git a/pkgtools/posix_headers/files/stdint.h.tests b/pkgtools/posix_headers/files/stdint.h.tests
deleted file mode 100644
index 101de91fdc5..00000000000
--- a/pkgtools/posix_headers/files/stdint.h.tests
+++ /dev/null
@@ -1,2 +0,0 @@
-have_header|have_stdint|stdint.h
-have_header|have_inttypes|inttypes.h
diff --git a/pkgtools/posix_headers/files/stdlib.h.in b/pkgtools/posix_headers/files/stdlib.h.in
deleted file mode 100644
index 7abc6220430..00000000000
--- a/pkgtools/posix_headers/files/stdlib.h.in
+++ /dev/null
@@ -1,9 +0,0 @@
-#if !defined(@strtoll@) && defined(__hpux)
-@include <inttypes.h>
-@define strtoll(nptr, endptr, base) __strtoll(nptr, endptr, base)
-@define strtoull(nptr, endptr, base) __strtoull(nptr, endptr, base)
-#endif
-#if !defined(@strtoll@) && defined(__digital__) && defined(notyet)
-@define strtoll(nptr, endptr, base) strtol(nptr, endptr, base)
-@define strtoull(nptr, endptr, base) strtoul(nptr, endptr, base)
-#endif
diff --git a/pkgtools/posix_headers/files/stdlib.h.tests b/pkgtools/posix_headers/files/stdlib.h.tests
deleted file mode 100644
index ff9ca56633d..00000000000
--- a/pkgtools/posix_headers/files/stdlib.h.tests
+++ /dev/null
@@ -1 +0,0 @@
-scan_preproc|strtoll| strtoll
diff --git a/pkgtools/posix_headers/files/subr.sh b/pkgtools/posix_headers/files/subr.sh
deleted file mode 100755
index 8a3a9fead1b..00000000000
--- a/pkgtools/posix_headers/files/subr.sh
+++ /dev/null
@@ -1,111 +0,0 @@
-#
-# $NetBSD: subr.sh,v 1.1 2007/08/01 21:33:46 tnn Exp $
-#
-
-DIFS="$IFS"
-newline="
-"
-
-# The order in which files are generated by this script:
-#
-# someheader.h.tests ---> test_header()
-# \
-# someheader.h.in ---> +---> someheader.h.out ---+
-# |
-# someheader.h <--- someheader.h.pre <--- c preprocessor <---+
-#
-# someheader.h.tests: Definitions of tests we want to perform on the system
-# supplied header. Each successfull test will cause a
-# @macro@ to be defined during the preprocessing stage.
-# someheader.h.out: The result of the tests concatenated with the .in file.
-# someheader.h.pre: The preprocessed output. In this file any compatiblity
-# definitions that weren't needed have been removed.
-# someheader.h: The final header to be installed.
-#
-# The syntax used in test definitions is:
-#
-# test_function|test_name|argument
-#
-# Example:
-#
-# scan_preproc|have_printf|printf
-#
-# If the above line would be used in the file stdio.h.tests, it would test
-# if the preprocessed output of <stdio.h> contains the string printf. If it
-# does, the macro @have_printf@ will be defined when parsing stdio.h.in.
-
-
-# Test if a given regexp can be found in the preprocessed output of the hdr.
-test_scan_preproc() {
- IFS="$DIFS"
- echo "#include <$hdr>" | $CPP - 2>/dev/null | grep "$1" > /dev/null
- return $?
-}
-
-# Test if the specified header can be included.
-test_have_header() {
- IFS="$DIFS"
- echo "#include <$1>" | $CPP - > /dev/null 2>&1
- return $?
-}
-
-# Prints the full absolute pathname to the file that is included by doing
-# #include <file.h>.
-real_header() {
- echo "#include <$hdr>" | $CPP - 2> /dev/null |\
- awk -F\" '/^\# 1 "\// {if(!done){print $2;done=1;}}'
-}
-
-# Prints the uppercase of $1 with some characters converted to underscore.
-toupper() {
- echo "$@" | tr a-z A-Z | tr . _ | tr / _
-}
-
-# Run a single header test and print the result.
-do_test() {
- testtype=$1
- testname=$2
- shift 2
- testarg="$@"
- IFS=""
- if test_${testtype} $testarg
- then
- echo "#define PH_TEST_`toupper $hdr`_$testname 1"
- fi
-}
-
-# Run all header tests for a header and print the result.
-test_header() {
- IFS="$newline"
- for line in `cat $hdr.tests`
- do
- IFS="|"
- do_test $line
- IFS="$newline"
- done
-}
-
-# Test, preprocess and generate a header.
-make_header() {
- hdr="$1"
- HDR="`toupper $hdr`"
- rm -f $hdr
- test_header > $hdr.out
- IFS="$DIFS"
- cat $hdr.in | sed 's/@\(.*\)@/PH_TEST_'$HDR'_\1/g' >> $hdr.out
- $CPP - < $hdr.out | awk '/^[^#]/ {sub("^@", "#");print $0;}' > $hdr.pre
- if [ -s "$hdr.pre" ]
- then
- echo "/* --- This header file was automatically generated by pkgsrc. */" > $hdr
- echo "#ifndef _PKGSRC_${HDR}_" >> $hdr
- echo "#define _PKGSRC_${HDR}_" >> $hdr
- real_hdr="`real_header $hdr`"
- if [ "$real_hdr" != "" ]
- then
- echo "/* --- real header: */" >> $hdr
- echo "#include \"$real_hdr\"" >> $hdr
- fi
- cat $hdr.pre >> $hdr
- echo "#endif /* _PKGSRC_${HDR}_ */" >> $hdr
- fi
-}
diff --git a/pkgtools/posix_headers/files/sys/select.h.in b/pkgtools/posix_headers/files/sys/select.h.in
deleted file mode 100644
index a3c2734a8fd..00000000000
--- a/pkgtools/posix_headers/files/sys/select.h.in
+++ /dev/null
@@ -1,3 +0,0 @@
-#if !defined(@select@) && defined(__hpux)
-@include <sys/time.h>
-#endif
diff --git a/pkgtools/posix_headers/files/sys/select.h.tests b/pkgtools/posix_headers/files/sys/select.h.tests
deleted file mode 100644
index 2f2b0488c46..00000000000
--- a/pkgtools/posix_headers/files/sys/select.h.tests
+++ /dev/null
@@ -1 +0,0 @@
-scan_preproc|select|select