3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=5988e7aeb0ae4dac8d83561265984cc9
11 ftp
://ftp.rpm.org
/pub
/rpm
/dist/rpm-4.1.x
/ \
12 http
://nthill.free.fr
/openwrt
/sources
/$(PKG_NAME
)/
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 include $(TOPDIR
)/package
/templates.mk
21 $(eval
$(call PKG_template
,LIBPOPT
,libpopt
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 include $(TOPDIR
)/package
/rules.mk
25 COMPILE_TARGETS
+= install-dev
26 CLEAN_TARGETS
+= uninstall-dev
28 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
29 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
30 $(TARGET_CONFIGURE_OPTS
) \
31 CFLAGS
="$(TARGET_CFLAGS)" \
32 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
33 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
35 --target
=$(GNU_TARGET_NAME
) \
36 --host
=$(GNU_TARGET_NAME
) \
37 --build
=$(GNU_HOST_NAME
) \
43 --datadir=/usr
/share \
44 --includedir=/usr
/include \
45 --infodir=/usr
/share
/info \
47 --libexecdir
=/usr
/lib \
48 --localstatedir
=/var \
49 --mandir=/usr
/share
/man \
53 $(DISABLE_LARGEFILE
) \
57 touch
$(PKG_BUILD_DIR
)/.configured
59 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
60 $(MAKE
) -C
$(PKG_BUILD_DIR
)
61 touch
$(PKG_BUILD_DIR
)/.built
63 $(STAGING_DIR
)/usr
/lib
/libpopt.so
: $(PKG_BUILD_DIR
)/.built
64 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
65 DESTDIR
="$(STAGING_DIR)" \
67 rm -f
$(STAGING_DIR
)/usr
/lib
/libpopt.la
69 $(IPKG_LIBPOPT
): $(IDIR_LIBPOPT
)/CONTROL
/control
$(STAGING_DIR
)/usr
/lib
/libpopt.so
70 mkdir
-p
$(IDIR_LIBPOPT
)/usr
/lib
71 cp
-fpR
$(STAGING_DIR
)/usr
/lib
/libpopt.so.
* $(IDIR_LIBPOPT
)/usr
/lib
/
72 $(RSTRIP
) $(IDIR_LIBPOPT
)
73 mkdir
-p
$(PACKAGE_DIR
)
74 $(IPKG_BUILD
) $(IDIR_LIBPOPT
) $(PACKAGE_DIR
)
76 install-dev
: $(STAGING_DIR
)/usr
/lib
/libpopt.so
79 -$(MAKE
) -C
$(PKG_BUILD_DIR
) \
80 DESTDIR
="$(STAGING_DIR)" \