3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=f1237af0250c59b318bd64a59f5750ea
10 PKG_SOURCE_URL
:=http
://ftp.gnu.org
/gnu
/osip
/ \
11 ftp
://ftp.belnet.be
/mirror
/ftp.gnu.org
/gnu
/osip
/ \
12 ftp
://ftp.mirror.nl
/pub
/mirror
/gnu
/osip
/ \
13 http
://mirror.switch.ch
/ftp
/mirror
/gnu
/osip
/
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 include $(TOPDIR
)/package
/rules.mk
22 $(eval
$(call PKG_template
,LIBOSIP2
,libosip2
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
24 $(PKG_BUILD_DIR
)/.configured
:
25 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
26 $(TARGET_CONFIGURE_OPTS
) \
27 CFLAGS
="$(strip $(TARGET_CFLAGS))" \
28 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
29 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
31 --target
=$(GNU_TARGET_NAME
) \
32 --host
=$(GNU_TARGET_NAME
) \
33 --build
=$(GNU_HOST_NAME
) \
39 --datadir=/usr
/share \
40 --includedir=/usr
/include \
41 --infodir=/usr
/share
/info \
43 --libexecdir
=/usr
/lib \
44 --localstatedir
=/var \
45 --mandir=/usr
/share
/man \
48 $(DISABLE_LARGEFILE
) \
61 $(PKG_BUILD_DIR
)/.built
:
62 rm -rf
$(PKG_INSTALL_DIR
)
63 mkdir
-p
$(PKG_INSTALL_DIR
)
64 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
65 DESTDIR
="$(PKG_INSTALL_DIR)" \
70 install -m0755
-d
$(IDIR_LIBOSIP2
)/usr
/lib
71 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libosip
{,parser
}2.so.
* $(IDIR_LIBOSIP2
)/usr
/lib
/
72 $(RSTRIP
) $(IDIR_LIBOSIP2
)
73 $(IPKG_BUILD
) $(IDIR_LIBOSIP2
) $(PACKAGE_DIR
)
75 $(STAGING_DIR
)/usr
/lib
/libosip2.so
: $(PKG_BUILD_DIR
)/.built
76 mkdir
-p
$(STAGING_DIR
)/usr
/include
77 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/osip
{,parser
}2 $(STAGING_DIR
)/usr
/include/
78 mkdir
-p
$(STAGING_DIR
)/usr
/lib
79 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libosip
{,parser
}2.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
80 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
81 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libosip2.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
84 install-dev
: $(STAGING_DIR
)/usr
/lib
/libosip2.so
88 $(STAGING_DIR
)/usr
/include/osip
{,parser
}2 \
89 $(STAGING_DIR
)/usr
/lib
/libosip
{,parser
}2.
{a
,so
*} \
90 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/libosip2.
pc \