1 diff -ruN pcre-5.0-orig/ipkg/libpcre/CONTROL/control pcre-5.0-3/ipkg/libpcre/CONTROL/control
2 --- pcre-5.0-orig/ipkg/libpcre/CONTROL/control 1970-01-01 01:00:00.000000000 +0100
3 +++ pcre-5.0-3/ipkg/libpcre/CONTROL/control 2005-03-08 03:33:59.000000000 +0100
10 +Maintainer: Nico <nthill@free.fr>
11 +Source: http://nthill.free.fr/openwrt/sources/pcre/
12 +Description: a Perl Compatible Regular Expression library
13 diff -ruN pcre-5.0-orig/ipkg/pcre-dev/CONTROL/control pcre-5.0-3/ipkg/pcre-dev/CONTROL/control
14 --- pcre-5.0-orig/ipkg/pcre-dev/CONTROL/control 1970-01-01 01:00:00.000000000 +0100
15 +++ pcre-5.0-3/ipkg/pcre-dev/CONTROL/control 2005-03-08 03:34:14.000000000 +0100
22 +Maintainer: Nico <nthill@free.fr>
23 +Source: http://nthill.free.fr/openwrt/sources/pcre/
24 +Description: a Perl Compatible Regular Expression library (development)
25 diff -ruN pcre-5.0-orig/ipkg/rules pcre-5.0-3/ipkg/rules
26 --- pcre-5.0-orig/ipkg/rules 1970-01-01 01:00:00.000000000 +0100
27 +++ pcre-5.0-3/ipkg/rules 2005-03-08 03:47:50.000000000 +0100
31 +ifneq ($(strip ${IPKG_RULES_INC}),)
32 + include $(IPKG_RULES_INC)
37 +PKG_VERSION := $(shell cat ./ipkg/version)
38 +CURRENT_DIR := $(shell pwd)
39 +INSTALL_DIR = $(CURRENT_DIR)/ipkg-install
41 +I_LIBPCRE := ipkg/libpcre
42 +I_PCRE_DEV := ipkg/pcre-dev
56 +.stamp-configured: $(BUILD_DEPS)
59 + $(TARGET_CONFIGURE_OPTS) \
60 + CFLAGS="$(TARGET_CFLAGS)" \
62 + --target=$(GNU_TARGET_NAME) \
63 + --host=$(GNU_TARGET_NAME) \
64 + --build=$(GNU_HOST_NAME) \
66 + --exec-prefix=/usr \
68 + --datadir=/usr/share \
69 + --includedir=/usr/include \
70 + --infodir=/usr/share/info \
72 + --libexecdir=/usr/lib \
73 + --localstatedir=/var \
74 + --mandir=/usr/share/man \
75 + --sbindir=/usr/sbin \
79 + touch .stamp-configured
82 +.stamp-built: .stamp-configured
85 + CC_FOR_BUILD="$(HOSTCC)" \
86 + LINK_FOR_BUILD="$(HOSTCC)" \
87 + CFLAGS_FOR_BUILD="" \
91 + $(TARGET_CONFIGURE_OPTS) \
92 + CFLAGS="$(TARGET_CFLAGS)" \
97 +$(INSTALL_DIR)/usr/include/pcre.h: .stamp-built
99 + mkdir -p $(INSTALL_DIR)
102 + DESTDIR="$(INSTALL_DIR)" \
106 +configure: .stamp-configured
112 +install: $(INSTALL_DIR)/usr/include/pcre.h
115 +package: $(INSTALL_DIR)/usr/include/pcre.h
117 + mkdir -p $(I_LIBPCRE)/usr/lib
118 + cp -fpR $(INSTALL_DIR)/usr/lib/libpcre*.so.* $(I_LIBPCRE)/usr/lib/
119 + $(STRIP) $(I_LIBPCRE)/usr/lib/lib*.so.*
121 + mkdir -p $(I_PCRE_DEV)/usr/bin
122 + cp -fpR $(INSTALL_DIR)/usr/bin/pcre-config $(I_PCRE_DEV)/usr/bin/
123 + mkdir -p $(I_PCRE_DEV)/usr/include
124 + cp -fpR $(INSTALL_DIR)/usr/include/pcre*.h $(I_PCRE_DEV)/usr/include/
125 + mkdir -p $(I_PCRE_DEV)/usr/lib
126 + cp -fpR $(INSTALL_DIR)/usr/lib/libpcre*.a $(I_PCRE_DEV)/usr/lib/
127 + cp -fpR $(INSTALL_DIR)/usr/lib/libpcre*.so* $(I_PCRE_DEV)/usr/lib/
129 + chmod 0755 ipkg/*/CONTROL/
130 + chmod 0644 ipkg/*/CONTROL/control
132 + perl -pi -e "s/^Arch.*:.*/Architecture: $(TARGET_ARCH)/g" ipkg/*/CONTROL/control
133 +ifneq ($(strip $(PKG_VERSION)),)
134 + perl -pi -e "s/^Vers.*:.*/Version: $(PKG_VERSION)/g" ipkg/*/CONTROL/control
137 + $(IPKG_BUILD) $(I_LIBPCRE) $(IPKG_TARGET_DIR)
138 + $(IPKG_BUILD) $(I_PCRE_DEV) $(IPKG_TARGET_DIR)
145 + rm -rf $(INSTALL_DIR)/usr/bin/pcre*
146 + rm -rf $(INSTALL_DIR)/usr/include/pcre*
147 + rm -rf $(INSTALL_DIR)/usr/lib/libpcre*
148 + rm -rf $(INSTALL_DIR)/usr/lib/pkgconfig/libpcre.pc
149 + rm -rf $(INSTALL_DIR)/usr/share/man/man*/pcre*
150 + rm -rf $(I_LIBPCRE)/usr
151 + rm -rf $(I_PCRE_DEV)/usr
156 + @cat $(I_LIBPCRE)/CONTROL/control
158 + @cat $(I_PCRE_DEV)/CONTROL/control
162 +.PHONY: configure build install package clean control
163 diff -ruN pcre-5.0-orig/ipkg/version pcre-5.0-3/ipkg/version
164 --- pcre-5.0-orig/ipkg/version 1970-01-01 01:00:00.000000000 +0100
165 +++ pcre-5.0-3/ipkg/version 2005-03-08 03:32:54.000000000 +0100