forked from ports/contrib
fbgrab: 1.0 -> 1.1
This commit is contained in:
parent
56fe14c1df
commit
49bbf955db
@ -1 +1,2 @@
|
||||
7af4d8774684182ed690d5da82d6d234 fbgrab-1.0.tar.gz
|
||||
fc612aef7e9d86ace8b06ed46a84788d Makefile.diff
|
||||
c293ae83dc507768d496e477432ded32 fbgrab-1.1.tar.gz
|
||||
|
33
fbgrab/Makefile.diff
Normal file
33
fbgrab/Makefile.diff
Normal file
@ -0,0 +1,33 @@
|
||||
diff -pruN fbgrab.orig/Makefile fbgrab/Makefile
|
||||
--- fbgrab.orig/Makefile 2013-05-23 22:14:45.000000000 +0200
|
||||
+++ fbgrab/Makefile 2013-08-08 12:24:47.000000000 +0200
|
||||
@@ -3,12 +3,24 @@
|
||||
### modular. So this is a simple gnu Makefile...
|
||||
###
|
||||
|
||||
+.DELETE_ON_ERROR:
|
||||
+.PHONY: install clean all
|
||||
+
|
||||
+CC := gcc
|
||||
+GZIP := gzip
|
||||
+GZIPFLAGS := -k --best --to-stdout
|
||||
+
|
||||
+all: fbgrab fbgrab.1.gz
|
||||
+
|
||||
fbgrab: fbgrab.c
|
||||
- gcc -g -Wall fbgrab.c -lpng -lz -o fbgrab
|
||||
+ $(CC) -g -Wall $(CFLAGS) $(LDFLAGS) $< -lpng -lz -o $@
|
||||
+
|
||||
+fbgrab.1.gz: fbgrab.1.man
|
||||
+ $(GZIP) $(GZIPFLAGS) $< > $@
|
||||
|
||||
-install:
|
||||
- install fbgrab /usr/bin/fbgrab
|
||||
- install fbgrab.1.man /usr/man/man1/fbgrab.1
|
||||
+install: fbgrab fbgrab.1.gz
|
||||
+ install -D -m 0755 fbgrab $(DESTDIR)/usr/bin/fbgrab
|
||||
+ install -D -m 0644 fbgrab.1.gz $(DESTDIR)/usr/man/man1/fbgrab.1.gz
|
||||
|
||||
clean:
|
||||
- rm -f fbgrab *~ \#*\#
|
||||
+ -$(RM) fbgrab fbgrab.1.gz *~ \#*\#
|
@ -1,18 +1,16 @@
|
||||
# Description: framebuffer screenshot program
|
||||
# URL: http://hem.bredband.net/gmogmo/fbgrab/
|
||||
# URL: http://fbgrab.monells.se/
|
||||
# Maintainer: Bartlomiej Palmowski, rotwang at crux dot org dot pl
|
||||
# Depends on: libpng
|
||||
|
||||
name=fbgrab
|
||||
version=1.0
|
||||
release=4
|
||||
source=(http://hem.bredband.net/gmogmo/$name/$name-$version.tar.gz)
|
||||
version=1.1
|
||||
release=1
|
||||
source=(http://$name.monells.se/$name-$version.tar.gz Makefile.diff)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
sed -i '/^#include *< *png[.]h *> */a#include <zlib.h>' fbgrab.c
|
||||
gcc $CFLAGS fbgrab.c -lpng -lz -o fbgrab
|
||||
install -D -m 0755 $name $PKG/usr/bin/$name
|
||||
install -D -m 0644 $name.1.man $PKG/usr/man/man1/$name.1
|
||||
cd $name
|
||||
patch -p1 -i ../Makefile.diff
|
||||
make DESTDIR=$PKG install
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user