2005-07-15 18:15:02 +03:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libamsel
|
|
|
|
PKG_VERSION:=20040621-cvs
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_MD5SUM:=2077e620047404881a65d39c53c9917e
|
|
|
|
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.amselinux.net/source/
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_CAT:=bzcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
|
|
|
$(eval $(call PKG_template,LIBAMSEL,libamsel,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
|
2005-11-07 20:12:11 +02:00
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
|
|
|
touch $@
|
|
|
|
|
2005-10-22 15:12:59 +03:00
|
|
|
$(PKG_BUILD_DIR)/.built:
|
2005-07-15 18:15:02 +03:00
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
LDIR=$(PKG_BUILD_DIR) \
|
|
|
|
PREFIX="$(PKG_INSTALL_DIR)/usr" \
|
|
|
|
all install
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(IPKG_LIBAMSEL):
|
|
|
|
install -d -m0755 $(IDIR_LIBAMSEL)/usr/lib
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(IDIR_LIBAMSEL)/usr/lib
|
2005-07-15 18:15:02 +03:00
|
|
|
$(RSTRIP) $(IDIR_LIBAMSEL)
|
|
|
|
$(IPKG_BUILD) $(IDIR_LIBAMSEL) $(PACKAGE_DIR)
|
|
|
|
|
|
|
|
|
|
|
|
$(STAGING_DIR)/usr/lib/libamsel.so: $(PKG_BUILD_DIR)/.built
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/amsel/compat.h $(STAGING_DIR)/usr/include/
|
2005-07-15 18:15:02 +03:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/include/compat
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/amsel/compat/queue.h $(STAGING_DIR)/usr/include/compat
|
2005-07-15 18:15:02 +03:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib/
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libamsel.so $(STAGING_DIR)/usr/lib/
|
2005-07-15 18:15:02 +03:00
|
|
|
touch $(STAGING_DIR)/usr/lib/libamsel.so
|
|
|
|
|
|
|
|
install-dev: $(STAGING_DIR)/usr/lib/libamsel.so
|
|
|
|
|
|
|
|
uninstall-dev:
|
|
|
|
rm -rf \
|
|
|
|
$(STAGING_DIR)/usr/include/compat.h \
|
|
|
|
$(STAGING_DIR)/usr/include/compat \
|
|
|
|
$(STAGING_DIR)/usr/lib/libamsel.so \
|
|
|
|
|
2005-10-22 15:12:59 +03:00
|
|
|
compile-targets: install-dev
|
|
|
|
clean-targets: uninstall-dev
|
2005-07-15 18:15:02 +03:00
|
|
|
|