source: packages/libs/libinklevel/Makefile

Last change on this file was 32206, checked in by jow, 5 years ago

[packages] normalize PKG_FIXUP - the "libtool" fixup is merely an alias for "autoreconf", so change all occurences to that

File size: 1.3 KB
Line 
1#
2# Copyright (C) 2006-2010 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:=libinklevel
11PKG_VERSION:=0.8.0
12PKG_RELEASE:=3
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/libinklevel
16PKG_MD5SUM:=83464cb23fe46a1d1adbe10f08b247be
17
18PKG_FIXUP:=autoreconf
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/libinklevel
24  SECTION:=libs
25  CATEGORY:=Libraries
26  DEPENDS:=$(if $(WITH_PARPORT), +libieee1284)
27  TITLE:=Printers Ink Level Library
28  URL:=http://libinklevel.sourceforge.net/
29endef
30
31define Package/libinklevel/description
32  Libinklevel is a library for checking the ink level of your printer on a system which runs Linux.
33endef
34
35TARGET_CFLAGS += $(FPIC)
36TARGET_LIBS += $(if $(WITH_PARPORT), -lieee1284)
37MAKE_ARGS += LIBS="$(TARGET_LIBS)"
38
39define Build/InstallDev
40        $(INSTALL_DIR) $(1)/usr/include
41        $(INSTALL_DATA) \
42                $(PKG_INSTALL_DIR)/usr/include/inklevel.h \
43                $(1)/usr/include/
44
45        $(INSTALL_DIR) $(1)/usr/lib
46        $(CP) \
47                $(PKG_INSTALL_DIR)/usr/lib/libinklevel.so* \
48                $(1)/usr/lib/
49endef
50
51define Package/libinklevel/install
52        $(INSTALL_DIR) $(1)/usr/lib
53        $(CP) \
54                $(PKG_INSTALL_DIR)/usr/lib/libinklevel.so* \
55                $(1)/usr/lib/
56endef
57
58$(eval $(call BuildPackage,libinklevel))
Note: See TracBrowser for help on using the repository browser.