Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=632c818feb36c16769f9f2c21295c82a1c63ef9f
commit 632c818feb36c16769f9f2c21295c82a1c63ef9f Author: crazy <[EMAIL PROTECTED]> Date: Sat May 17 19:10:33 2008 +0200 pngnq-0.5-2-x86_64 * release bump while source changed but the version =) * project moved , updated source/url/up2date * updated autotools patch * removed build() ( not needed since I fixed that mess with the patch this time ) diff --git a/source/apps-extra/pngnq/FrugalBuild b/source/apps-extra/pngnq/FrugalBuild index 31fcb2f..d04938a 100644 --- a/source/apps-extra/pngnq/FrugalBuild +++ b/source/apps-extra/pngnq/FrugalBuild @@ -3,22 +3,19 @@ pkgname=pngnq pkgver=0.5 -pkgrel=1 +pkgrel=2 pkgdesc="A PNG compression utility" -url="http://www.cybertherial.com/pngnq/pngnq.html" +_F_sourceforge_ext="-src.tar.gz" +Finclude sourceforge +url="http://pngnq.sourceforge.net/index.html" depends=('libpng') groups=('apps-extra') archs=('x86_64' 'i686') -up2date="lynx -dump http://www.cybertherial.com/pngnq/pngnq.html|grep 'Current Version'|tr -s ' '|cut -d ' ' -f 5 | sed -e 's/pngnq-//g'" -source=(http://www.cybertherial.com/pngnq/$pkgname-$pkgver-src.tar.gz pngnq-makefile-corrections.patch) -sha1sums=('1ce194a99d0d8abeeffb26e84e07cbb4035910f0' \ - '41cd5fbff2c3f075a27e2e447697615becf4bcf1') +_F_cd_path="$pkgver" # wtf ? +source=($source pngnq-makefile-corrections.patch) +sha1sums=('aa41a0ce7c3baf8f6b2ba8c17b8dc9d0f63b2a43' \ + '93015310a6a09f126927ba7664de6d6f5e4e9865') + -build() { - # lol ? - Fcd $pkgver - Fmkdir usr/bin - Fbuild -} # optimization OK diff --git a/source/apps-extra/pngnq/pngnq-makefile-corrections.patch b/source/apps-extra/pngnq/pngnq-makefile-corrections.patch index 997f828..d4b130e 100644 --- a/source/apps-extra/pngnq/pngnq-makefile-corrections.patch +++ b/source/apps-extra/pngnq/pngnq-makefile-corrections.patch @@ -1,27 +1,36 @@ -diff -Naur 0.5.orig/Makefile 0.5/Makefile ---- 0.5.orig/Makefile 2007-11-11 17:33:55.000000000 +0100 -+++ 0.5/Makefile 2007-11-11 17:35:04.000000000 +0100 -@@ -5,13 +5,13 @@ +diff -Naur 0.5/Makefile 0.5-p/Makefile +--- 0.5/Makefile 2007-11-14 22:03:03.000000000 +0100 ++++ 0.5-p/Makefile 2008-05-17 19:02:34.000000000 +0200 +@@ -27,15 +27,15 @@ + # Change these to suit your system's requirements + BINDIR=/usr/bin + MANDIR=/usr/share/man/man1 +-DOCDIR=/usr/share/doc/pngnq ++DOCDIR=/usr/share/doc/pngnq-$(VERSION) - DISTFILES = LICENSE README pngnq.1 pngnq pngcomp + # Build options + PNGINC = ${shell libpng-config --cflags} + PNGLIB = ${shell libpng-config --ldflags} --PNGINC = ../libpng -+PNGINC = /usr/include - PNGLIB = /usr/lib +-CFLAGS = -O3 -g -Wall -pedantic -I. -D VERSION=\"$(VERSION)\" $(PNGINC) -funroll-loops -fomit-frame-pointer ++CFLAGS += -g -Wall -pedantic -I. -D VERSION=\"$(VERSION)\" $(PNGINC) -funroll-loops -fomit-frame-pointer --ZINC = ../zlib --ZLIB = ../zlib -+ZINC = /usr/include -+ZLIB = /usr/lib +-LDFLAGS = $(PNGLIB) ++LDFLAGS = $(PNGLIB) --CFLAGS = -O3 -g -Wall -pedantic -I. -I$(PNGINC) -I$(ZINC) -funroll-loops -fomit-frame-pointer -std=c99 -+CFLAGS += -Wall -pedantic -I. -I$(PNGINC) -I$(ZINC) -funroll-loops -fomit-frame-pointer -std=c99 + OBJS = pngnq.o rwpng.o neuquant32.o freegetopt/getopt.o + ############################################# +@@ -72,7 +72,9 @@ - LDFLAGS = -L$(PNGLIB) -lpng -L$(ZLIB) -lz -lm - #LDFLAGS = $(PNGLIB)/libpng.a -L$(ZLIB) -lz -lm -@@ -41,3 +41,5 @@ - bindist: all - tar -cz -f ../pngnq-$(VERSION)-$(ARCH).tar.gz $(DISTFILES) - -+install: -+ /usr/bin/install -c -g root -o root -m 755 pngnq $(DESTDIR)/usr/bin + # Install + install: all +- install -t ${BINDIR} pngnq pngcomp +- install -t ${MANDIR} pngnq.1 +- install -d ${DOCDIR} +- install -t ${DOCDIR} README LICENSE README.pngcomp ++ install -d $(DESTDIR)${MANDIR} ++ install -d $(DESTDIR)${DOCDIR} ++ install -d $(DESTDIR)${BINDIR} ++ install -t $(DESTDIR)${BINDIR} pngnq pngcomp ++ install -t $(DESTDIR)${MANDIR} pngnq.1 ++ install -t $(DESTDIR)${DOCDIR} README LICENSE README.pngcomp _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
