3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=b074e02d8d63f34cba8ec45c23f63f78
10 PKG_SOURCE_URL
:=@SF
/serdisplib
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 include $(TOPDIR
)/package
/rules.mk
18 $(eval
$(call PKG_template
,SERDISPLIB
,serdisplib
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
21 (cd
$(PKG_BUILD_DIR
); \
22 $(TARGET_CONFIGURE_OPTS
) \
23 CFLAGS
="$(TARGET_CFLAGS)" \
24 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
25 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
26 ac_cv_func_malloc_0_nonnull
=yes \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
36 --datadir=/usr
/share \
37 --includedir=/usr
/include \
38 --infodir=/usr
/share
/info \
40 --libexecdir
=/usr
/lib \
41 --localstatedir
=/var \
42 --mandir=/usr
/share
/man \
45 $(DISABLE_LARGEFILE
) \
53 $(PKG_BUILD_DIR
)/.built
:
54 $(MAKE
) -C
$(PKG_BUILD_DIR
) all
58 install -d
-m0755
$(IDIR_SERDISPLIB
)/usr
/lib
59 cp
-fpR
$(PKG_BUILD_DIR
)/lib
/libserdisp.so.
* $(IDIR_SERDISPLIB
)/usr
/lib
60 $(RSTRIP
) $(IDIR_SERDISPLIB
)
61 $(IPKG_BUILD
) $(IDIR_SERDISPLIB
) $(PACKAGE_DIR
)
63 $(STAGING_DIR
)/usr
/lib
/libserdisp.so
: $(PKG_BUILD_DIR
)/.built
64 mkdir
-p
$(STAGING_DIR
)/usr
/include
65 cp
-fpR
$(PKG_BUILD_DIR
)/include/serdisplib
$(STAGING_DIR
)/usr
/include/
66 mkdir
-p
$(STAGING_DIR
)/usr
/lib
67 cp
-fpR
$(PKG_BUILD_DIR
)/lib
/libserdisp.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
70 install-dev
: $(STAGING_DIR
)/usr
/lib
/libserdisp.so
74 $(STAGING_DIR
)/usr
/include/serdisplib \
75 $(STAGING_DIR
)/usr
/lib
/libserdisp.
{a
,so
*} \
77 compile-targets
: install-dev
78 clean-targets
: uninstall-dev
81 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
82 rm -f
$(PKG_BUILD_DIR
)/.built