summaryrefslogtreecommitdiff
path: root/package/wiringPi/Makefile
blob: 5b6a76d6d8225be91acef653d0372bab6a3301be (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
41
# 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:=		wiringPi
# actually git checkout from 05.12.2014
# 0a9fdeb29d31609ef834f050bdb8a7a65cd35e2b
PKG_VERSION:=		0.1
PKG_RELEASE:=		1
PKG_MD5SUM:=		e1c9430b80476da2c1de5ef71a795a3d
PKG_DESCR:=		GPIO access library for the BCM2835 used in the Raspberry Pi
PKG_SECTION:=		libs/misc
PKG_URL:=		http://wiringpi.com/
PKG_SITES:=		http://openadk.org/distfiles

PKG_SYSTEM_DEPENDS:=    raspberry-pi

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,WIRINGPI,wiringPi,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

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

TARGET_CPPFLAGS+=	-I../wiringPi

do-build:
	(cd $(WRKBUILD); $(MAKE) -C wiringPi)
	(cd $(WRKBUILD); $(MAKE) -C devLib)

wiringPi-install:
	$(INSTALL_DIR) $(IDIR_WIRINGPI)/usr/lib
	$(CP) $(WRKBUILD)/wiringPi/libwiringPi.so* $(IDIR_WIRINGPI)/usr/lib
	$(CP) $(WRKBUILD)/devLib/libwiringPiDev.so* $(IDIR_WIRINGPI)/usr/lib
	(cd $(IDIR_WIRINGPI)/usr/lib; ln -sf libwiringPi.so.2.0 libwiringPi.so)
	(cd $(IDIR_WIRINGPI)/usr/lib; ln -sf libwiringPiDev.so.2.0 libwiringPiDev.so)
	$(CP) $(WRKBUILD)/wiringPi/*.h $(STAGING_TARGET_DIR)/usr/include

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