Date:2010-05-31 17:00:22 (13 years 9 months ago)
Author:Xiangfu Liu
Commit:a70cc1ac5ce006e4b882ef065d9ea7dd27f6769e
Message:[fbgrab] new package. fbgrab is a framebuffer screenshot program

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
Files: fbgrab/Makefile (1 diff)
fbgrab/patches/001-modify-makefile-for-openwrt.patch (1 diff)

Change Details

fbgrab/Makefile
1#
2# Copyright (C) 2010 Qi Hardware Inc.
3# Author: Xiangfu Liu <xiangfu@sharism.com>
4#
5# This is free software, licensed under the GNU General Public License v2.
6# See /LICENSE for more information.
7#
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=fbgrab
12PKG_VERSION:=1.0
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://hem.bredband.net/gmogmo/fbgrab/
16
17PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/fbgrab
24    TITLE:=framebuffer screenshot program
25    SECTION:=utils
26    CATEGORY:=Utilities
27    DEPENDS:=+zlib +libpng
28    URL:=http://hem.bredband.net/gmogmo/fbgrab/
29endef
30
31define Package/fbgrab/description
32    FBGrab is a framebuffer screenshot program
33endef
34
35TARGET_LDFLAGS+= -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
36
37define Package/fbgrab/install
38    $(INSTALL_DIR) $(1)/usr/bin
39    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fbgrab $(1)/usr/bin/
40endef
41
42$(eval $(call BuildPackage,fbgrab))
fbgrab/patches/001-modify-makefile-for-openwrt.patch
1diff --git a/Makefile b/Makefile
2index 14c63cb..f4cb0b0 100644
3--- a/Makefile
4@@ -2,15 +2,20 @@
5 ### I think it's not worth to make such a small project
6 ### modular. So this is a simple gnu Makefile...
7 ###
8+STRIP ?= strip
9+INSTALL ?= install
10+
11+CFLAGS := $(CFLAGS) -g -Wall
12
13 fbgrab: fbgrab.c
14- splint +posixlib fbgrab.c
15- gcc -g -Wall fbgrab.c -lpng -lz -o fbgrab
16+ $(CC) $(CFLAGS) $(LDFLAGS) fbgrab.c -lpng -lz -o fbgrab
17+ $(STRIP) fbgrab
18
19 install:
20- strip fbgrab
21- install fbgrab /usr/bin/fbgrab
22- install fbgrab.1.man /usr/man/man1/fbgrab.1
23+ mkdir -p $(DESTDIR)/usr/bin/
24+ mkdir -p $(DESTDIR)/usr/man/man1/
25+ $(INSTALL) fbgrab $(DESTDIR)/usr/bin/fbgrab
26+ $(INSTALL) fbgrab.1.man $(DESTDIR)/usr/man/man1/fbgrab.1
27
28 clean:
29- rm -f fbgrab *~ \#*\#
30\ No newline at end of file
31+ rm -f fbgrab *~ \#*\#

Archive Download the corresponding diff file



interactive