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
45
46
47
48
49
50
51
52
53
|
# 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:= openct
PKG_VERSION:= 0.6.20
PKG_RELEASE:= 2
PKG_MD5SUM:= a1da3358ab798f1cb9232f1dbababc21
PKG_DESCR:= drivers for smart card readers
PKG_SECTION:= crypto
PKG_DEPENDS:= libopenct
PKG_URL:= http://www.opensc-project.org/openct/
PKG_SITES:= http://www.opensc-project.org/files/openct/
PKG_SUBPKGS:= OPENCT LIBOPENCT LIBOPENCT_DEV
PKGSD_LIBOPENCT:= crypto token library
PKGSC_LIBOPENCT:= libs
PKGSS_LIBOPENCT:= libltdl libusb
PKGSB_LIBOPENCT:= libtool libusb
PKGSD_LIBOPENCT_DEV:= development files for openct
PKGSC_LIBOPENCT_DEV:= devel
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,OPENCT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBOPENCT,libopenct,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBOPENCT},${PKGSD_LIBOPENCT},${PKGSC_LIBOPENCT}))
$(eval $(call PKG_template,LIBOPENCT_DEV,libopenct-dev,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBOPENCT_DEV},${PKGSC_LIBOPENCT_DEV}))
SUB_INSTALLS-y:=
SUB_INSTALLS-m:=
SUB_INSTALLS-${ADK_PACKAGE_LIBOPENCT_DEV}+= libopenct-dev-install
post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
${INSTALL_DIR} ${IDIR_OPENCT}/etc ${IDIR_OPENCT}/usr/{sbin,bin}
${INSTALL_BIN} ${WRKINST}/usr/sbin/openct-control \
${IDIR_OPENCT}/usr/sbin
${INSTALL_BIN} ${WRKINST}/usr/sbin/ifd* \
${IDIR_OPENCT}/usr/sbin
${INSTALL_BIN} ${WRKINST}/usr/bin/openct-tool \
${IDIR_OPENCT}/usr/bin
${INSTALL_DATA} ${WRKBUILD}/etc/openct.conf \
${IDIR_OPENCT}/etc
${INSTALL_DIR} ${IDIR_LIBOPENCT}/usr/lib
${CP} ${WRKINST}/usr/lib/libopenct.so.* \
${IDIR_LIBOPENCT}/usr/lib
libopenct-dev-install:
${INSTALL_DIR} ${IDIR_LIBOPENCT_DEV}/usr/include/openct
${CP} ${WRKINST}/usr/include/openct/*.h \
${IDIR_LIBOPENCT_DEV}/usr/include/openct
include ${TOPDIR}/mk/pkg-bottom.mk
|