3 include $(TOPDIR
)/rules.mk
6 PKG_VERSION
:=20040621-cvs
8 PKG_MD5SUM
:=2077e620047404881a65d39c53c9917e
10 PKG_SOURCE_URL
:=ftp
://ftp.amselinux.net
/source
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBAMSEL
,libamsel
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.built
:
22 rm -rf
$(PKG_INSTALL_DIR
)
23 mkdir
-p
$(PKG_INSTALL_DIR
)
24 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
25 $(TARGET_CONFIGURE_OPTS
) \
26 LDIR
=$(PKG_BUILD_DIR
) \
27 PREFIX
="$(PKG_INSTALL_DIR)/usr" \
32 install -d
-m0755
$(IDIR_LIBAMSEL
)/usr
/lib
33 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/* $(IDIR_LIBAMSEL
)/usr
/lib
34 $(RSTRIP
) $(IDIR_LIBAMSEL
)
35 $(IPKG_BUILD
) $(IDIR_LIBAMSEL
) $(PACKAGE_DIR
)
38 $(STAGING_DIR
)/usr
/lib
/libamsel.so
: $(PKG_BUILD_DIR
)/.built
39 mkdir
-p
$(STAGING_DIR
)/usr
/include
40 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/amsel
/compat.h
$(STAGING_DIR
)/usr
/include/
41 mkdir
-p
$(STAGING_DIR
)/usr
/include/compat
42 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/amsel
/compat
/queue.h
$(STAGING_DIR
)/usr
/include/compat
43 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/
44 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libamsel.so
$(STAGING_DIR
)/usr
/lib
/
45 touch
$(STAGING_DIR
)/usr
/lib
/libamsel.so
47 install-dev
: $(STAGING_DIR
)/usr
/lib
/libamsel.so
51 $(STAGING_DIR
)/usr
/include/compat.h \
52 $(STAGING_DIR
)/usr
/include/compat \
53 $(STAGING_DIR
)/usr
/lib
/libamsel.so \
55 compile-targets
: install-dev
56 clean-targets
: uninstall-dev