summaryrefslogtreecommitdiff
path: root/package/pigpio/Makefile
blob: f1398a4f2e08a8c512539d09fb1bb42fc38b2ad6 (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
36
37
38
39
40
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		pigpio
PKG_VERSION:=		1aa4cca8a69d4f8f8ce198178dbd7f436b4f503c
PKG_GIT:=		hash
PKG_RELEASE:=		1
PKG_HASH:=		9d48aa27bb8c9721f5e78f234834ee447934d9a21aeb0a58f123c7be0bb90126
PKG_DESCR:=		IO library for the raspberry PI
PKG_SECTION:=		libs/misc
PKG_NEEDS:=		c++
PKG_URL:=		http://joan2937.github.io/pigpio/
PKG_SITES:=		https://github.com/joan2937/pigpio.git

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,PIGPIO,pigpio,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIG_STYLE:=		manual
BUILD_STYLE:=		manual
INSTALL_STYLE:=		manual

post-build:
	$(INSTALL_DIR) ${WRKINST}/usr/include/pigpio
	$(CP) ${WRKBUILD}/pigpio.h \
		${WRKINST}/usr/include/pigpio
	$(INSTALL_DIR) ${WRKINST}/usr/lib
	$(CP) ${WRKBUILD}/libpigpio.so \
		${WRKINST}/usr/lib

do-build:
	cd $(WRKBUILD) && CROSS_PREFIX=${TARGET_CROSS} DESTDIR=$(WRKINST) prefix=${WRKINST}/usr ${MAKE}
	
do-install:
	${INSTALL_DIR} ${IDIR_PIGPIO}/usr/lib
	${CP} ${WRKINST}/usr/lib/libpigpio.so ${IDIR_PIGPIO}/usr/lib/

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