libdnet: cleanup, fix cflags
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8270 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c9e5c91ab8
commit
9dba086dce
@ -43,29 +43,18 @@ define Package/pydnet
|
|||||||
URL:=http://sourceforge.net/projects/libdnet/
|
URL:=http://sourceforge.net/projects/libdnet/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
CONFIGURE_ARGS += \
|
||||||
(cd $(PKG_BUILD_DIR); touch \
|
--enable-shared \
|
||||||
configure.in \
|
--enable-static \
|
||||||
include.m4 \
|
--without-check \
|
||||||
aclocal.m4 \
|
--without-python
|
||||||
Makefile.in \
|
|
||||||
configure \
|
CONFIGURE_VARS += \
|
||||||
);
|
ac_cv_dnet_bsd_bpf=no
|
||||||
$(call Build/Configure/Default, \
|
|
||||||
--enable-shared \
|
|
||||||
--enable-static \
|
|
||||||
--without-check \
|
|
||||||
--without-python \
|
|
||||||
, \
|
|
||||||
ac_cv_dnet_bsd_bpf=no \
|
|
||||||
)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Compile
|
MAKE_FLAGS += \
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
all install
|
||||||
all install
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
mkdir -p $(STAGING_DIR)/usr/bin
|
mkdir -p $(STAGING_DIR)/usr/bin
|
||||||
@ -95,6 +84,7 @@ endef
|
|||||||
define Package/pydnet/install
|
define Package/pydnet/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
cd $(PKG_BUILD_DIR)/python; \
|
cd $(PKG_BUILD_DIR)/python; \
|
||||||
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
$(STAGING_DIR)/usr/bin/hostpython ./setup.py install \
|
$(STAGING_DIR)/usr/bin/hostpython ./setup.py install \
|
||||||
--no-compile --prefix $(PKG_INSTALL_DIR)/usr
|
--no-compile --prefix $(PKG_INSTALL_DIR)/usr
|
||||||
cp -a $(PKG_INSTALL_DIR)/usr/lib/python* $(1)/usr/lib/
|
cp -a $(PKG_INSTALL_DIR)/usr/lib/python* $(1)/usr/lib/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user