aboutsummaryrefslogtreecommitdiff
path: root/graphics/libafterimage/Makefile
blob: 4f627ad9f86660d90cc54e01d2296a886f5710e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# ex:ts=8
# New ports collection makefile for:	libAfterImage
# Date created:			Oct 7, 2001
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	libafterimage
PORTVERSION=	1.18
PORTREVISION=	3
CATEGORIES=	graphics
MASTER_SITES=	SF/afterstep/libAfterImage/${PORTVERSION}
DISTNAME=	libAfterImage-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Generic imaging library originally designed for AfterStep

MAKE_JOBS_UNSAFE=	yes

LIB_DEPENDS=	jpeg.11:${PORTSDIR}/graphics/jpeg \
		ungif.5:${PORTSDIR}/graphics/libungif \
		png.6:${PORTSDIR}/graphics/png \
		tiff.4:${PORTSDIR}/graphics/tiff \
		freetype.9:${PORTSDIR}/print/freetype2

USE_BZIP2=	yes
USE_XORG=	xext
USE_GNOME=	gnometarget librsvg2
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS=	--disable-staticlibs --enable-sharedlibs \
		--without-builtin-ungif --without-afterbase \
		--with-x
USE_LDCONFIG=	yes

MAN1=	ascompose.1x
MAN3=	ascmap.3x afterimage.3x ascompose.3x asflip.3x asfont.3x asgrad.3x	\
	asimage.3x asimagexml.3x asmerge.3x asscale.3x astext.3x astile.3x	\
	asview.3x asvisual.3x blender.3x char2uni.3x common.3x export.3x	\
	imencdec.3x import.3x transform.3x ximage.3x

.include <bsd.port.pre.mk>

.if ${MACHINE_CPU:Mmmx}
CONFIGURE_ARGS+=	--enable-mmx-optimization
.else
CONFIGURE_ARGS+=	--disable-mmx-optimization
.endif

post-extract:
	@${LN} -sf ${WRKSRC} ${WRKDIR}/libAfterImage

post-patch:
	@${REINPLACE_CMD} -e 's|CFLAGS="-O3"||g ; \
		 s| malloc\.h | |g ; \
		 s|-lgif|-lungif|g' ${WRKSRC}/configure

post-install:
	${INSTALL_MAN} ${WRKSRC}/apps/ascompose.man \
		${MANPREFIX}/man/man1/ascompose.1x

.include <bsd.port.post.mk>