2005-03-21 10:12:49 +02:00
|
|
|
# $Id$
|
|
|
|
|
2005-03-06 14:30:39 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2005-04-14 09:11:36 +03:00
|
|
|
PKG_NAME:=popt
|
|
|
|
PKG_VERSION:=1.7
|
|
|
|
PKG_RELEASE:=4
|
|
|
|
PKG_MD5SUM:=5988e7aeb0ae4dac8d83561265984cc9
|
2005-03-06 14:30:39 +02:00
|
|
|
|
2005-05-12 21:16:36 +03:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/
|
2005-04-14 09:11:36 +03:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2005-04-18 09:33:29 +03:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
2005-04-14 09:11:36 +03:00
|
|
|
|
2005-04-18 09:33:29 +03:00
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
2005-05-09 12:33:23 +03:00
|
|
|
$(eval $(call PKG_template,LIBPOPT,libpopt,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-04-12 02:15:24 +03:00
|
|
|
|
2005-05-12 21:16:36 +03:00
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
2005-04-18 09:33:29 +03:00
|
|
|
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
|
2005-04-12 02:15:24 +03:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
|
|
|
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
|
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--program-prefix="" \
|
|
|
|
--program-suffix="" \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--includedir=/usr/include \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--sysconfdir=/etc \
|
2005-05-20 00:15:46 +03:00
|
|
|
$(DISABLE_LARGEFILE) \
|
|
|
|
$(DISABLE_NLS) \
|
2005-04-12 02:15:24 +03:00
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
);
|
2005-05-20 00:15:46 +03:00
|
|
|
touch $@
|
2005-04-12 02:15:24 +03:00
|
|
|
|
2005-05-12 21:16:36 +03:00
|
|
|
$(PKG_BUILD_DIR)/.built:
|
2005-05-20 00:15:46 +03:00
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
2005-04-14 09:11:36 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2005-05-20 00:15:46 +03:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
touch $@
|
2005-04-12 02:15:24 +03:00
|
|
|
|
2005-05-12 21:16:36 +03:00
|
|
|
$(IPKG_LIBPOPT):
|
2005-05-20 00:15:46 +03:00
|
|
|
install -d -m0755 $(IDIR_LIBPOPT)/usr/lib
|
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libpopt.so.* $(IDIR_LIBPOPT)/usr/lib/
|
2005-04-18 09:33:29 +03:00
|
|
|
$(RSTRIP) $(IDIR_LIBPOPT)
|
2005-04-14 09:11:36 +03:00
|
|
|
$(IPKG_BUILD) $(IDIR_LIBPOPT) $(PACKAGE_DIR)
|
2005-04-12 02:15:24 +03:00
|
|
|
|
2005-05-20 00:15:46 +03:00
|
|
|
$(STAGING_DIR)/usr/lib/libpopt.so: $(PKG_BUILD_DIR)/.built
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/include/popt.h $(STAGING_DIR)/usr/include/
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libpopt.{a,so*} $(STAGING_DIR)/usr/lib/
|
|
|
|
touch $(STAGING_DIR)/usr/lib/libpopt.so
|
|
|
|
|
2005-04-18 09:33:29 +03:00
|
|
|
install-dev: $(STAGING_DIR)/usr/lib/libpopt.so
|
2005-03-06 14:30:39 +02:00
|
|
|
|
2005-04-18 09:33:29 +03:00
|
|
|
uninstall-dev:
|
2005-05-20 00:15:46 +03:00
|
|
|
rm -rf \
|
|
|
|
$(STAGING_DIR)/usr/include/popt.h \
|
|
|
|
$(STAGING_DIR)/usr/lib/libpopt.{a,so*} \
|
2005-05-09 12:33:23 +03:00
|
|
|
|
|
|
|
compile: install-dev
|
|
|
|
clean: uninstall-dev
|