2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/libinklevel
16 PKG_MD5SUM
:=83464cb23fe46a1d1adbe10f08b247be
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libinklevel
26 DEPENDS
:=$(if
$(WITH_PARPORT
), +libieee1284
)
27 TITLE
:=Printers Ink Level Library
28 URL
:=http
://libinklevel.sourceforge.net
/
31 define Package
/libinklevel
/description
32 Libinklevel is a library for checking the ink level of your printer on a system which runs Linux.
35 TARGET_CFLAGS
+= $(FPIC
)
36 TARGET_LIBS
+= $(if
$(WITH_PARPORT
), -lieee1284
)
37 MAKE_ARGS
+= LIBS
="$(TARGET_LIBS)"
39 define Build
/InstallDev
40 $(INSTALL_DIR
) $(1)/usr
/include
42 $(PKG_INSTALL_DIR
)/usr
/include/inklevel.h \
45 $(INSTALL_DIR
) $(1)/usr
/lib
47 $(PKG_INSTALL_DIR
)/usr
/lib
/libinklevel.so
* \
51 define Package
/libinklevel
/install
52 $(INSTALL_DIR
) $(1)/usr
/lib
54 $(PKG_INSTALL_DIR
)/usr
/lib
/libinklevel.so
* \
58 $(eval
$(call BuildPackage
,libinklevel
))