summaryrefslogtreecommitdiff
path: root/package/ajstarks-openvg/Makefile
blob: ac3cb0638dc63b47a0901e62f9a668f439eefc15 (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
42
43
44
# 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

# always use tab spaces as separator, no spaces
PKG_NAME:=		ajstarks-openvg
PKG_VERSION:=		a236978e8009c948083bd15b201d8f4ceb3c035d
PKG_GIT:=		hash
PKG_RELEASE:=		2
PKG_DESCR:=		openvg utility library
PKG_BUILDDEP:=		bcm28xx-vc freetype libjpeg-turbo
PKG_SECTION:=		libs/video
PKG_DEPENDS:=		bcm28xx-vc bcm28xx-vc-libs libfreetype libjpeg-turbo
PKG_URL:=		https://github.com/ajstarks/openvg
PKG_SITES:=		https://github.com/ajstarks/openvg.git

PKG_SYSTEM_DEPENDS:=	raspberry-pi raspberry-pi2 raspberry-pi3 raspberry-pi3-64 raspberry-pi3p raspberry-pi3p-64

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,AJSTARKS_OPENVG,ajstarks-openvg,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))

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

do-build:
	${MAKE} -C ${WRKBUILD} library

# please install all files and directories to the package dir


ajstarks-openvg-install:
	$(INSTALL_DIR) $(IDIR_AJSTARKS_OPENVG)/usr/lib
	$(INSTALL_BIN) $(WRKBUILD)/lib*.so \
		$(IDIR_AJSTARKS_OPENVG)/usr/lib

	${INSTALL_DIR} $(STAGING_TARGET_DIR)/usr/include
	$(CP) $(WRKBUILD)/shapes.h $(STAGING_TARGET_DIR)/usr/include
	$(CP) $(WRKBUILD)/fontinfo.h $(STAGING_TARGET_DIR)/usr/include

# please remove ALL above comments, before commiting
include $(ADK_TOPDIR)/mk/pkg-bottom.mk