3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:= 5988e7aeb0ae4dac8d83561265984cc9
10 PKG_SOURCE_URL
:= ftp
://ftp.rpm.org
/pub
/rpm
/dist/rpm-4.1.x
/ \
11 http
://nthill.free.fr
/openwrt
/sources
/$(PKG_NAME
)/
12 PKG_SOURCE
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_IPK
:= $(PACKAGE_DIR
)/lib
$(PKG_NAME
)_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
16 PKG_IPK_DIR
:= $(PKG_BUILD_DIR
)/ipkg
18 $(DL_DIR
)/$(PKG_SOURCE
):
20 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE
) $(PKG_MD5SUM
) $(PKG_SOURCE_URL
)
22 $(PKG_BUILD_DIR
)/.patched
: $(DL_DIR
)/$(PKG_SOURCE
)
23 $(PKG_CAT
) $(DL_DIR
)/$(PKG_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
24 # $(PATCH) $(PKG_BUILD_DIR) ./patches
25 touch
$(PKG_BUILD_DIR
)/.patched
27 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.patched
28 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
29 $(TARGET_CONFIGURE_OPTS
) \
30 CFLAGS
="$(TARGET_CFLAGS)" \
31 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
32 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
34 --target
=$(GNU_TARGET_NAME
) \
35 --host
=$(GNU_TARGET_NAME
) \
36 --build
=$(GNU_HOST_NAME
) \
42 --datadir=/usr
/share \
43 --includedir=/usr
/include \
44 --infodir=/usr
/share
/info \
46 --libexecdir
=/usr
/lib \
47 --localstatedir
=/var \
48 --mandir=/usr
/share
/man \
52 $(DISABLE_LARGEFILE
) \
56 touch
$(PKG_BUILD_DIR
)/.configured
58 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
59 $(MAKE
) -C
"$(PKG_BUILD_DIR)"
60 touch
$(PKG_BUILD_DIR
)/.built
62 $(STAGING_DIR
)/usr
/lib
/libpopt.so
: $(PKG_BUILD_DIR
)/.built
63 $(MAKE
) -C
"$(PKG_BUILD_DIR)" \
64 DESTDIR
="$(STAGING_DIR)" \
66 rm -f
$(STAGING_DIR
)/usr
/lib
/libpopt.la
68 $(PKG_IPK
): $(STAGING_DIR
)/usr
/lib
/libpopt.so
69 $(SCRIPT_DIR
)/make-ipkg-dir.sh
$(PKG_IPK_DIR
) libpopt.control
$(PKG_VERSION
)-$(PKG_RELEASE
) $(ARCH
)
70 mkdir
-p
$(PKG_IPK_DIR
)/usr
/lib
71 cp
-fp
$(STAGING_DIR
)/usr
/lib
/libpopt.so.
* $(PKG_IPK_DIR
)/usr
/lib
/
72 $(STRIP
) $(PKG_IPK_DIR
)/usr
/lib
/*.so
*
73 mkdir
-p
$(PACKAGE_DIR
)
74 $(IPKG_BUILD
) $(PKG_IPK_DIR
) $(PACKAGE_DIR
)
76 $(IPKG_STATE_DIR
)/info/libpopt.list
: $(PKG_IPK
)
77 $(IPKG
) install $(PKG_IPK
)
79 source
: $(DL_DIR
)/$(PKG_SOURCE
)
80 prepare
: $(PKG_BUILD_DIR
)/.patched
82 install: $(IPKG_STATE_DIR
)/info/libpopt.list
85 -$(MAKE
) -C
"$(PKG_BUILD_DIR)" \
86 DESTDIR
="$(STAGING_DIR)" \