summaryrefslogtreecommitdiffstats
path: root/freebsd/dependencies/imlib/Makefile
blob: 055b37d14d41620963f13ea3877c64de5f1291bd (plain)
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
# -*-mode: makefile-*-
# Created by: slavek.banko@axis.cz
# $FreeBSD$
#
# TDE port map: dependencies/imlib

PORTSDIR?=/usr/ports
.include <${PORTSDIR}/Mk/bsd.trinity.mk>

PORTNAME=		imlib
COMMENT=		A graphic library for enlightenment package
MASTER_SITE_SUBDIR=	i/${PORTNAME}
PORTVERSION=		1.9.15
PORTREVISION=		17
CATEGORIES=		graphics
MASTER_SITES=		${MASTER_SITE_TDE_DEPS}
DISTNAME=		${PORTNAME}_${PORTVERSION}
DISTSRC=		${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=		TDE/dependencies
PREFIX=			${LOCALBASE}


LIB_DEPENDS+=	\
		libpng.so:graphics/png \
		libtiff.so:graphics/tiff \
		libgif.so:graphics/giflib

# Use gmake for automake build
USES=		gmake
USES+=		autoreconf libtool
USE_XORG=	sm xext x11
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
CONFIGURE_ARGS=	--sysconfdir=${PREFIX}/etc/imlib --disable-modules
CONFIGURE_ENV=	LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15

MAN1=		imlib-config.1 imlib_config.1

pre-configure:
	@${REINPLACE_CMD} -e "s|glib-config|${GLIB_CONFIG}|" ${WRKSRC}/configure
	@${REINPLACE_CMD} -e "s|@SUPPORT_LIBS@|-L${LOCALBASE}/lib @SUPPORT_LIBS@|" ${WRKSRC}/imlib-config.in

post-configure:
	@${FIND} ${WRKSRC} -name "Makefile" -type f | ${XARGS} ${REINPLACE_CMD} -e \
		's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g'

.include <bsd.port.mk>