new url, reported by dumpedcore
[openwrt.git] / openwrt / package / popt / popt-1.7-3.diff
1 diff -ruN popt-1.7-orig/ipkg/libpopt/CONTROL/control popt-1.7-3/ipkg/libpopt/CONTROL/control
2 --- popt-1.7-orig/ipkg/libpopt/CONTROL/control 1970-01-01 01:00:00.000000000 +0100
3 +++ popt-1.7-3/ipkg/libpopt/CONTROL/control 2005-03-08 03:24:11.000000000 +0100
4 @@ -0,0 +1,8 @@
5 +Package: libpopt
6 +Priority: optional
7 +Section: libs
8 +Version: [TBDL]
9 +Architecture: [TBDL]
10 +Maintainer: Nico <nthill@free.fr>
11 +Source: http://nthill.free.fr/openwrt/sources/popt/
12 +Description: a command line option parsing library
13 diff -ruN popt-1.7-orig/ipkg/popt-dev/CONTROL/control popt-1.7-3/ipkg/popt-dev/CONTROL/control
14 --- popt-1.7-orig/ipkg/popt-dev/CONTROL/control 1970-01-01 01:00:00.000000000 +0100
15 +++ popt-1.7-3/ipkg/popt-dev/CONTROL/control 2005-03-08 03:26:21.000000000 +0100
16 @@ -0,0 +1,8 @@
17 +Package: popt-dev
18 +Priority: optional
19 +Section: devel
20 +Version: [TBDL]
21 +Architecture: [TBDL]
22 +Maintainer: Nico <nthill@free.fr>
23 +Source: http://nthill.free.fr/openwrt/sources/popt/
24 +Description: a command line option parsing library (development)
25 diff -ruN popt-1.7-orig/ipkg/rules popt-1.7-3/ipkg/rules
26 --- popt-1.7-orig/ipkg/rules 1970-01-01 01:00:00.000000000 +0100
27 +++ popt-1.7-3/ipkg/rules 2005-03-08 03:50:49.000000000 +0100
28 @@ -0,0 +1,126 @@
29 +#!/usr/bin/make -f
30 +
31 +ifneq ($(strip ${IPKG_RULES_INC}),)
32 + include $(IPKG_RULES_INC)
33 +endif
34 +
35 +##
36 +
37 +PKG_VERSION := $(shell cat ./ipkg/version)
38 +CURRENT_DIR := $(shell pwd)
39 +INSTALL_DIR = $(CURRENT_DIR)/ipkg-install
40 +
41 +I_LIBPOPT := ipkg/libpopt
42 +I_POPT_DEV := ipkg/popt-dev
43 +
44 +BUILD_DEPS := \
45 +
46 +CONFIGURE_OPTS = \
47 + --enable-shared \
48 + --enable-static \
49 +
50 +##
51 +
52 +all: package
53 +
54 +
55 +.stamp-configured: $(BUILD_DEPS)
56 +
57 + rm -rf config.cache
58 + $(TARGET_CONFIGURE_OPTS) \
59 + CFLAGS="$(TARGET_CFLAGS)" \
60 + am_cv_func_iconv=no \
61 + ./configure \
62 + --target=$(GNU_TARGET_NAME) \
63 + --host=$(GNU_TARGET_NAME) \
64 + --build=$(GNU_HOST_NAME) \
65 + --prefix=/usr \
66 + --exec-prefix=/usr \
67 + --bindir=/usr/bin \
68 + --datadir=/usr/share \
69 + --includedir=/usr/include \
70 + --infodir=/usr/share/info \
71 + --libdir=/usr/lib \
72 + --libexecdir=/usr/lib \
73 + --localstatedir=/var \
74 + --mandir=/usr/share/man \
75 + --sbindir=/usr/sbin \
76 + --sysconfdir=/etc \
77 + $(DISABLE_NLS) \
78 + $(CONFIGURE_OPTS) \
79 +
80 + touch .stamp-configured
81 +
82 +
83 +.stamp-built: .stamp-configured
84 +
85 + $(MAKE) \
86 + $(TARGET_CONFIGURE_OPTS) \
87 + CFLAGS="$(TARGET_CFLAGS)" \
88 +
89 + touch .stamp-built
90 +
91 +
92 +$(INSTALL_DIR)/usr/include/popt.h: .stamp-built
93 +
94 + mkdir -p $(INSTALL_DIR)
95 +
96 + $(MAKE) \
97 + DESTDIR="$(INSTALL_DIR)" \
98 + transform="s,x,x," \
99 + install
100 +
101 +
102 +configure: .stamp-configured
103 +
104 +
105 +build: .stamp-built
106 +
107 +
108 +install: $(INSTALL_DIR)/usr/include/popt.h
109 +
110 +
111 +package: $(INSTALL_DIR)/usr/include/popt.h
112 +
113 + mkdir -p $(I_LIBPOPT)/usr/lib
114 + cp -fpR $(INSTALL_DIR)/usr/lib/libpopt*.so.* $(I_LIBPOPT)/usr/lib/
115 + $(STRIP) $(I_LIBPOPT)/usr/lib/lib*.so.*
116 +
117 + mkdir -p $(I_POPT_DEV)/usr/include
118 + cp -fpR $(INSTALL_DIR)/usr/include/popt.h $(I_POPT_DEV)/usr/include/
119 + mkdir -p $(I_POPT_DEV)/usr/lib
120 + cp -fpR $(INSTALL_DIR)/usr/lib/libpopt*.a $(I_POPT_DEV)/usr/lib/
121 + cp -fpR $(INSTALL_DIR)/usr/lib/libpopt*.so* $(I_POPT_DEV)/usr/lib/
122 +
123 + chmod 0755 ipkg/*/CONTROL/
124 + chmod 0644 ipkg/*/CONTROL/control
125 +
126 + perl -pi -e "s/^Arch.*:.*/Architecture: $(ARCH)/g" ipkg/*/CONTROL/control
127 +ifneq ($(strip $(PKG_VERSION)),)
128 + perl -pi -e "s/^Vers.*:.*/Version: $(PKG_VERSION)/g" ipkg/*/CONTROL/control
129 +endif
130 +
131 + $(IPKG_BUILD) $(I_LIBPOPT) $(IPKG_TARGET_DIR)
132 + $(IPKG_BUILD) $(I_POPT_DEV) $(IPKG_TARGET_DIR)
133 +
134 +
135 +clean:
136 +
137 + -$(MAKE) clean
138 + rm -rf .stamp-*
139 + rm -rf $(INSTALL_DIR)/usr/include/popt*
140 + rm -rf $(INSTALL_DIR)/usr/include/libpopt*
141 + rm -rf $(INSTALL_DIR)/usr/share/man/man*/popt*
142 + rm -rf $(I_LIBPOPT)/usr
143 + rm -rf $(I_POPT_DEV)/usr
144 +
145 +
146 +control:
147 +
148 + @cat $(I_LIBPOPT)/CONTROL/control
149 + @echo
150 + @cat $(I_POPT_DEV)/CONTROL/control
151 + @echo
152 +
153 +
154 +.PHONY: configure build install package clean control
155 diff -ruN popt-1.7-orig/ipkg/version popt-1.7-3/ipkg/version
156 --- popt-1.7-orig/ipkg/version 1970-01-01 01:00:00.000000000 +0100
157 +++ popt-1.7-3/ipkg/version 2005-03-08 03:23:49.000000000 +0100
158 @@ -0,0 +1 @@
159 +1.7-3
This page took 0.050488 seconds and 5 git commands to generate.