summaryrefslogtreecommitdiff
path: root/package/libnl/Makefile
blob: d7021a844fcab541d95c55155acaab88950cf9ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		libnl
PKG_VERSION:=		1.1
PKG_RELEASE:=		1
PKG_MD5SUM:=		ae970ccd9144e132b68664f98e7ceeb1
PKG_DESCR:=		Netlink library
PKG_SECTION:=		libs
PKG_SITES:=		http://downloads.openwrt.org/sources/

PKG_SUBPKGS:=		LIBNL LIBNL_DEV
PKGSD_LIBNL_DEV:=	header files for netlink library
PKGSC_LIBNL_DEV:=	devel

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,LIBNL,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBNL_DEV,${PKG_NAME}-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBNL_DEV},${PKGSC_LIBNL_DEV}))

SUB_INSTALLS-y:=
SUB_INSTALLS-m:=
SUB_INSTALLS-${ADK_PACKAGE_LIBNL_DEV}+=	libnl-dev-install

post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
	${INSTALL_DIR} ${IDIR_LIBNL}/usr/lib
	${CP} ${WRKINST}/usr/lib/libnl.so* ${IDIR_LIBNL}/usr/lib

libnl-dev-install:
	${INSTALL_DIR} ${IDIR_LIBNL_DEV}/usr/include
	${CP} ${WRKINST}/usr/include/* ${IDIR_LIBNL_DEV}/usr/include

include ${TOPDIR}/mk/pkg-bottom.mk