aboutsummaryrefslogtreecommitdiff
path: root/graphics/libafterimage/Makefile
blob: b2428bffa5baab299b66b4f8aa0b8e1925654ff8 (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
# Created by: ijliao
# $FreeBSD$

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

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

LICENSE=	LGPL21

LIB_DEPENDS=	libgif.so:${PORTSDIR}/graphics/giflib \
		libjpeg.so:${PORTSDIR}/graphics/jpeg \
		libpng15.so:${PORTSDIR}/graphics/png \
		libtiff.so:${PORTSDIR}/graphics/tiff \
		libfreetype.so:${PORTSDIR}/print/freetype2

USE_BZIP2=	yes
USES=		pkgconfig
USE_XORG=	xext
USE_GNOME=	librsvg2
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-staticlibs --enable-sharedlibs \
		--without-builtin-ungif --without-afterbase \
		--with-x
USE_LDCONFIG=	yes
MAKE_JOBS_UNSAFE=	yes

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

OPTIONS_DEFINE_amd64=	MMX
OPTIONS_DEFINE_i386=	MMX

MMX_CONFIGURE_ENABLE=	mmx-optimization

.include <bsd.port.options.mk>

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

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

post-install:
	(cd ${WRKSRC}/apps && ${INSTALL_MAN} ascompose.man \
		${STAGEDIR}${MANPREFIX}/man/man1/ascompose.1x)

.include <bsd.port.mk>