|
|
|
|
@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
|
|
|
|
|
Group: Network |
|
|
|
|
License: BSD |
|
|
|
|
Version: 1.1p4 |
|
|
|
|
Release: 20030103 |
|
|
|
|
Release: 20030324 |
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
|
%option with_ipv6 no |
|
|
|
|
@ -61,14 +61,17 @@ AutoReqProv: no
|
|
|
|
|
%setup -q |
|
|
|
|
%patch0 -p0 |
|
|
|
|
%patch1 -p0 |
|
|
|
|
cp regex/*.[ch] . |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
cp Makefile.linux Makefile |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;gcc;$(CC);' \ |
|
|
|
|
-e 's;^\(OBJS[ ]*=\);\1 regcomp.o regerror.o regexec.o regfree.o;' \ |
|
|
|
|
-e 's;^\(OBJS[ ]*=\);\1 regex/regcomp.o regex/regerror.o regex/regexec.o regex/regfree.o;' \ |
|
|
|
|
Makefile |
|
|
|
|
for name in regex/regcomp regex/regerror regex/regexec regex/regfree; do |
|
|
|
|
echo "$name.o: $name.c" >>Makefile |
|
|
|
|
echo " \$(CC) \$(CFLAGS) -o $name.o $name.c \$(DEFS)" >>Makefile |
|
|
|
|
done |
|
|
|
|
CC="%{l_cc}" |
|
|
|
|
CFLAGS="%{l_cflags -O} -c" |
|
|
|
|
%if "%{with_ipv6}" == "yes" |
|
|
|
|
@ -80,7 +83,7 @@ AutoReqProv: no
|
|
|
|
|
case "%{l_target}" in |
|
|
|
|
*-freebsd* ) DEFS="$DEFS -DFREEBSD"; LDFLAGS="$LDFLAGS -lcompat" ;; |
|
|
|
|
*-linux* ) DEFS="$DEFS -DLINUX" ;; |
|
|
|
|
*-solaris* ) DEFS="$DEFS -DSolaris -DMTYPES-DPROGNAME=\\\"spegla\\\"" ;; |
|
|
|
|
*-solaris* ) DEFS="$DEFS -DSolaris -DMTYPES -DNOCDEFS -DPROGNAME=\\\"spegla\\\"" ;; |
|
|
|
|
esac |
|
|
|
|
%{l_make} %{l_mflags -O} \ |
|
|
|
|
CC="$CC" CFLAGS="$CFLAGS" DEFS="$DEFS" LDFLAGS="$LDFLAGS" |
|
|
|
|
|