View | Details | Raw Unified | Return to bug 222517 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-7 / +15 lines)
Lines 2-25 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	pngcrush
4
PORTNAME=	pngcrush
5
PORTVERSION=	1.8.7
5
PORTVERSION=	1.8.13
6
CATEGORIES=	graphics
6
CATEGORIES=	graphics
7
MASTER_SITES=	SF/pmt/${PORTNAME}/old-versions/${PORTVERSION:R}/${PORTVERSION}/
7
MASTER_SITES=	SF/pmt/${PORTNAME}/${PORTVERSION}/ \
8
#		# SF/pmt/${PORTNAME}/${PORTVERSION}/
8
		SF/pmt/${PORTNAME}/old-versions/${PORTVERSION:R}/${PORTVERSION}/
9
DISTNAME=	${PORTNAME}-${PORTVERSION}-nolib
9
DISTNAME=	${PORTNAME}-${PORTVERSION}-nolib
10
10
11
MAINTAINER=	vsasjason@gmail.com
11
MAINTAINER=	vsasjason@gmail.com
12
COMMENT=	Optimizer for PNG files
12
COMMENT=	Optimizer for PNG files
13
13
14
LICENSE=	Pngcrush
15
LICENSE_NAME=	Pngcrush License
16
LICENSE_FILE=	${WRKSRC}/LICENSE
17
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
18
14
LIB_DEPENDS=	libpng.so:graphics/png
19
LIB_DEPENDS=	libpng.so:graphics/png
15
20
16
USES=		tar:xz
21
USES=		localbase:ldflags tar:xz
17
CFLAGS+=	-DPNGCRUSH_COUNT_COLORS -I${LOCALBASE}/include
22
MAKE_ARGS+=	CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" LD="${CC}" \
18
LDFLAGS+=	-L${LOCALBASE}/lib
23
		LDFLAGS="${LDFLAGS}"
19
MAKE_ARGS+=	CC="${CC}" CFLAGS="${CFLAGS}" LD="${CC}" LDFLAGS="${LDFLAGS}"
20
24
21
PLIST_FILES=	bin/pngcrush
25
PLIST_FILES=	bin/pngcrush
22
26
27
post-patch:
28
	@${REINPLACE_CMD} -e '/^LIBS/s|-L$$([[:alnum:]]*) ||g' \
29
		${WRKSRC}/Makefile
30
23
do-install:
31
do-install:
24
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/pngcrush
32
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/pngcrush
25
33
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1477914424
1
TIMESTAMP = 1504041316
2
SHA256 (pngcrush-1.8.7-nolib.tar.xz) = f0cfc0d6f4df67106a184600f891b164875b6be7173111c87bec48a509fac60b
2
SHA256 (pngcrush-1.8.13-nolib.tar.xz) = 3b4eac8c5c69fe0894ad63534acedf6375b420f7038f7fc003346dd352618350
3
SIZE (pngcrush-1.8.7-nolib.tar.xz) = 64556
3
SIZE (pngcrush-1.8.13-nolib.tar.xz) = 66104
(-)files/patch-Makefile (-29 lines)
Lines 1-29 Link Here
1
--- ./Makefile.orig	2013-06-02 13:08:48.000000000 +0300
2
+++ ./Makefile	2013-06-02 13:10:53.000000000 +0300
3
@@ -11,11 +11,11 @@
4
 # macros --------------------------------------------------------------------
5
 
6
 # uncomment these 2 lines only if you are using an external copy of libpng:
7
-PNGINC = ${HOME}/include
8
-PNGLIB = ${HOME}/lib
9
+#PNGINC = ${HOME}/include
10
+#PNGLIB = ${HOME}/lib
11
 # uncomment these 2 lines only if you are using an external copy of zlib:
12
-ZINC = ${HOME}/include
13
-ZLIB = ${HOME}/lib
14
+#ZINC = ${HOME}/include
15
+#ZLIB = ${HOME}/lib
16
 
17
 CC = gcc
18
 LD = gcc
19
@@ -31,8 +31,8 @@
20
 PNGCRUSH  = pngcrush
21
 
22
 # LIBS = -lm
23
-LIBS = -L$(PNGLIB) -lpng -lz -lm
24
-# LIBS = -lpng -lz -lm
25
+#LIBS = -L$(PNGLIB) -lpng -lz -lm
26
+LIBS = -lpng -lz -lm
27
 #LIBS = ${ZLIB}/libz.a -lm
28
 
29
 # uncomment these 4 lines only if you are NOT using an external copy of zlib:

Return to bug 222517