pkgconf.sh (574B)
- #!/bin/sh
- set -ex
- die() {
- echo "die: $@"
- exit 1
- }
- tar xof /distfiles/pkgconf-*.tar.gz
- cd ./pkgconf-*/
- export LD="tcc"
- export MAKE="pdpmake"
- export CFLAGS="$CFLAGS -I. -DHAVE_DECL_STRLCPY -DHAVE_DECL_STRLCAT -DHAVE_DECL_STRNDUP"
- export SYSTEM_LIBDIR=/usr/lib
- export SYSTEM_INCLUDEDIR=/usr/include
- export PKG_DEFAULT_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig
- ed Makefile.lite <<'EOF'
- s;CFLAGS =; CFLAGS +=;
- /^STRIP =/a
- .c.o:
- $(CC) $(CFLAGS) -c -o $@ $<
- .
- w Makefile
- q
- EOF
- $MAKE STRIP=true
- install -m755 pkgconf-lite /usr/bin/pkg-config
- cd ..
- rm -r ./pkgconf-*/