source: packages/net/phidget21/Makefile @ 12995

Last change on this file since 12995 was 12995, checked in by thepeople, 8 years ago

add phidget package from #4116

File size: 1.8 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=phidget21
11PKG_VERSION:=2.1.4.20080924
12PKG_RELEASE:=1
13
14PKG_SOURCE:=Phidgetlinux_$(PKG_VERSION).tar.gz
15PKG_BUILD_DIR:=$(BUILD_DIR)/Phidgetlinux
16PKG_SOURCE_URL:=http://www.phidgets.com/downloads/libraries/
17PKG_MD5SUM:=635bfbd701b3b7c32e262bcc5130380e
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/phidget21
22  SECTION:=libs
23  CATEGORY:=Libraries
24  TITLE:=Phidget API
25  URL:=http://www.phidgets.com/
26endef
27
28define Package/phidget21/description
29 The Phidget API library.
30endef
31
32define Package/phidget-service
33  SECTION:=misc
34  CATEGORY:=Network
35  TITLE:=Phidget Web Service
36  URL:=http://www.phidgets.com/
37  DEPENDS:=phidget21
38endef
39
40define Package/phidget-service/description
41 The Phidget Web Service.
42endef
43
44define Build/Compile
45        $(MAKE) -C $(PKG_BUILD_DIR)/phidget21 \
46                $(TARGET_CONFIGURE_OPTS) \
47                CFLAGS="$(TARGET_CFLAGS) -static -D_LINUX -I. -Iutils" \
48                all
49        $(MAKE) -C $(PKG_BUILD_DIR)/webservice \
50                $(TARGET_CONFIGURE_OPTS) \
51                CFLAGS="$(TARGET_CFLAGS) -D_LINUX -I. -Iutils" \
52                phidget21internal.h
53        $(MAKE) -C $(PKG_BUILD_DIR)/webservice \
54                $(TARGET_CONFIGURE_OPTS) \
55                LIBS="-lphidget21 -L../phidget21" \
56                CFLAGS="$(TARGET_CFLAGS) -static -D_LINUX -I. -I../phidget21 -I../phidget21/utils" \
57                webservice21
58endef
59
60define Package/phidget21/install
61        $(INSTALL_DIR) $(1)/usr/lib
62        $(INSTALL_BIN) $(PKG_BUILD_DIR)/phidget21/libphidget21.so $(1)/usr/lib/
63endef
64
65define Package/phidget-service/install
66        $(INSTALL_DIR) $(1)/usr/bin
67        $(INSTALL_BIN) $(PKG_BUILD_DIR)/webservice/phidgetwebservice21 $(1)/usr/bin/
68endef
69
70
71$(eval $(call BuildPackage,phidget21))
72$(eval $(call BuildPackage,phidget-service))
Note: See TracBrowser for help on using the repository browser.