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

Collapse All | Expand All

(-)graphics/pngquant/Makefile (-16 / +14 lines)
Lines 1-13 Link Here
1
# New ports collection makefile for:	pngcquant
1
# Created by: Alex Hayward <xelah@xelah.com>
2
# Date created:				Fri 08 Feb 2002
3
# Whom:					Alex Hayward <xelah@xelah.com>
4
#
5
# $FreeBSD: ports/graphics/pngquant/Makefile,v 1.13 2012/06/12 21:42:31 bapt Exp $
2
# $FreeBSD: ports/graphics/pngquant/Makefile,v 1.13 2012/06/12 21:42:31 bapt Exp $
6
#
7
3
8
PORTNAME=	pngquant
4
PORTNAME=	pngquant
9
PORTVERSION=	1.7.2
5
PORTVERSION=	1.7.3
10
PORTREVISION=	1
11
DISTVERSIONSUFFIX=	-src
6
DISTVERSIONSUFFIX=	-src
12
CATEGORIES=	graphics
7
CATEGORIES=	graphics
13
MASTER_SITES=	http://pngquant.org/
8
MASTER_SITES=	http://pngquant.org/
Lines 20-44 Link Here
20
15
21
LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png
16
LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png
22
17
23
OPTIONS_DEFINE=	OPTIMIZED_CFLAGS OPENMP SSE2 DEBUG DOCS
18
OPTIONS_DEFINE=	OPTIMIZED_CFLAGS OPENMP DEBUG DOCS
19
OPTIONS_DEFINE_i386=	SSE2
24
OPENMP_DESC=	Enable OpenMP support
20
OPENMP_DESC=	Enable OpenMP support
25
SSE2_DESC=	Enable x86 SSE2 optimization
21
SSE2_DESC=	Enable x86 SSE2 optimization
26
22
27
NO_WRKSUBDIR=	yes
23
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
28
24
29
USE_BZIP2=	yes
25
USE_BZIP2=	yes
30
USE_CSTD=	c99
26
USE_CSTD=	c99
31
MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
27
USE_GMAKE=	yes
28
MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \
29
		LDFLAGS="${LDFLAGS}"
32
MAKE_JOBS_SAFE=	yes
30
MAKE_JOBS_SAFE=	yes
33
31
34
CFLAGS+=	`libpng-config --I_opts`
32
CPPFLAGS+=	$$(libpng-config --I_opts)
35
LDFLAGS+=	`libpng-config --ldflags`
33
LDFLAGS+=	$$(libpng-config --ldflags) -lz -lm
36
34
37
MAN1=		pngquant.1
35
MAN1=		pngquant.1
38
PORTDOCS=	CHANGELOG README.md
36
PORTDOCS=	CHANGELOG README.md
39
PLIST_FILES=	bin/pngquant
37
PLIST_FILES=	bin/pngquant
40
38
41
.include <bsd.port.pre.mk>
39
.include <bsd.port.options.mk>
42
40
43
.if empty(PORT_OPTIONS:MDEBUG)
41
.if empty(PORT_OPTIONS:MDEBUG)
44
CFLAGS+=	-DNDEBUG
42
CFLAGS+=	-DNDEBUG
Lines 56-63 Link Here
56
.endif
54
.endif
57
55
58
# SSE2 support is always enabled on amd64
56
# SSE2 support is always enabled on amd64
59
.if ${PORT_OPTIONS:MSSE2} && ${ARCH} == "i386"
57
.if ${PORT_OPTIONS:MSSE2}
60
CFLAGS+=	-DUSE_SSE=1 -msse2
58
CFLAGS+=	-DUSE_SSE=1 -msse2 -mmmx
61
.endif
59
.endif
62
60
63
do-install:
61
do-install:
Lines 69-72 Link Here
69
	${INSTALL_DATA} ${WRKSRC}/README.md ${DOCSDIR}
67
	${INSTALL_DATA} ${WRKSRC}/README.md ${DOCSDIR}
70
.endif
68
.endif
71
69
72
.include <bsd.port.post.mk>
70
.include <bsd.port.mk>
(-)graphics/pngquant/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (pngquant-1.7.2-src.tar.bz2) = 4e8b3378aeb573ed092f555483cdbbec94c5d5d19e709d8b338b2026b2e9a2bc
1
SHA256 (pngquant-1.7.3-src.tar.bz2) = 964f3ae88a5728e6fcf351b980d67ea0be8eb23646683467aa83a442b6a0048c
2
SIZE (pngquant-1.7.2-src.tar.bz2) = 27223
2
SIZE (pngquant-1.7.3-src.tar.bz2) = 27502

Return to bug 172505