1 include $(TOPDIR
)/rules.mk
6 PKG_MD5SUM
:=b074e02d8d63f34cba8ec45c23f63f78
8 PKG_SOURCE_URL
:=http
://dl.sourceforge.net
/sourceforge
/serdisplib
9 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
11 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
14 include $(TOPDIR
)/package
/rules.mk
16 $(eval
$(call PKG_template
,SERDISPLIB
,serdisplib
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
18 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
19 (cd
$(PKG_BUILD_DIR
); \
20 $(TARGET_CONFIGURE_OPTS
) \
21 CFLAGS
="$(TARGET_CFLAGS)" \
22 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
23 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
25 --target
=$(GNU_TARGET_NAME
) \
26 --host
=$(GNU_TARGET_NAME
) \
27 --build
=$(GNU_HOST_NAME
) \
29 --without-libiconv-prefix \
30 --without-libintl-prefix \
35 $(PKG_BUILD_DIR
)/.built
:
36 rm -rf
$(PKG_INSTALL_DIR
)
37 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
/bin
38 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
/lib
39 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src \
40 prefix="$(PKG_INSTALL_DIR)/usr"
41 cp
-fpR
$(PKG_BUILD_DIR
)/src
/testserdisp
$(PKG_INSTALL_DIR
)/usr
/bin
42 cp
-fpR
$(PKG_BUILD_DIR
)/lib
/libserdisp.so
* $(PKG_INSTALL_DIR
)/usr
/lib
46 install -d
-m0755
$(IDIR_SERDISPLIB
)/usr
/bin
47 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/testserdisp
$(IDIR_SERDISPLIB
)/usr
/bin
48 install -d
-m0755
$(IDIR_SERDISPLIB
)/usr
/lib
49 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libserdisp.so
* $(IDIR_SERDISPLIB
)/usr
/lib
50 $(RSTRIP
) $(IDIR_SERDISPLIB
)
51 $(IPKG_BUILD
) $(IDIR_SERDISPLIB
) $(PACKAGE_DIR
)
54 make
-C
$(PKG_BUILD_DIR
) clean
55 rm $(PKG_BUILD_DIR
)/.built