3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=4b148480f82e96d274248e13880ec873
10 PKG_SOURCE_URL
:=ftp
://ftp.cs.tu-berlin.de
/pub
/local
/kbs
/tubmik
/gsm
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-1.0-pl10
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBGSM
,libgsm
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(eval
$(call PKG_template
,GSM_UTILS
,gsm-utils
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
:
25 $(PKG_BUILD_DIR
)/.built
:
26 rm -rf
$(PKG_INSTALL_DIR
)
27 mkdir
-p
$(PKG_INSTALL_DIR
)
28 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
29 $(TARGET_CONFIGURE_OPTS
) \
31 COPTS
="$(TARGET_CFLAGS)" \
32 INSTALL_ROOT
="$(PKG_INSTALL_DIR)" \
37 install -d
-m0755
$(IDIR_LIBGSM
)/usr
/lib
38 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgsm.so.
* $(IDIR_LIBGSM
)/usr
/lib
/
39 $(RSTRIP
) $(IDIR_LIBGSM
)
40 $(IPKG_BUILD
) $(IDIR_LIBGSM
) $(PACKAGE_DIR
)
43 install -d
-m0755
$(IDIR_GSM_UTILS
)/usr
/bin
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(IDIR_GSM_UTILS
)/usr
/bin
/
45 $(RSTRIP
) $(IDIR_GSM_UTILS
)
46 $(IPKG_BUILD
) $(IDIR_GSM_UTILS
) $(PACKAGE_DIR
)
48 $(STAGING_DIR
)/usr
/lib
/libgsm.so
: $(PKG_BUILD_DIR
)/.built
49 mkdir
-p
$(STAGING_DIR
)/usr
/include
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/gsm.h
$(STAGING_DIR
)/usr
/include/
51 mkdir
-p
$(STAGING_DIR
)/usr
/lib
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgsm.a
$(STAGING_DIR
)/usr
/lib
/
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgsm.so
* $(STAGING_DIR
)/usr
/lib
/
56 install-dev
: $(STAGING_DIR
)/usr
/lib
/libgsm.so
60 $(STAGING_DIR
)/usr
/include/gsm.h \
61 $(STAGING_DIR
)/usr
/lib
/libgsm.a \
62 $(STAGING_DIR
)/usr
/lib
/libgsm.so
* \
64 compile-targets
: install-dev
65 clean-targets
: uninstall-dev
68 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
69 rm -f
$(PKG_BUILD_DIR
)/.built