blob: 75464a4602d290993617a47547da026fbe74431b (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# New ports collection makefile for: gdk-pixbuf
# Date created: 5th October 1999
# Whom: Ade Lovett <ade@lovett.com>
#
# $FreeBSD$
# $MCom: ports/graphics/gdk-pixbuf2/Makefile,v 1.24 2012/08/06 21:13:22 kwm Exp $
PORTNAME= gdk-pixbuf
PORTVERSION= 2.26.3
CATEGORIES= graphics
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= A graphic library for GTK+
BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
LATEST_LINK= gdk-pixbuf2
USE_XZ= yes
USE_GMAKE= yes
USE_XORG= xt xi x11
USE_AUTOTOOLS= libtool
USE_GNOME+= gnomehack glib20 ltverhack
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --enable-introspection=yes --with-x11
MAN1= gdk-pixbuf-csource.1 gdk-pixbuf-query-loaders.1
OPTIONS_DEFINE= JASPER JPEG PNG TIFF NLS
OPTIONS_DEFAULT=JASPER JPEG PNG TIFF NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:M_NLS}
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MJASPER}
LIB_DEPENDS+= jasper:${PORTSDIR}/graphics/jasper
CONFIGURE_ARGS+=--with-libjasper
PLIST_SUB+= JP2=""
.else
PLIST_SUB+= JP2="@comment "
.endif
.if ${PORT_OPTIONS:MJPEG}
LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg
PLIST_SUB+= JPEG=""
.else
CONFIGURE_ARGS+=--without-libjpeg
PLIST_SUB+= JPEG="@comment "
.endif
.if ${PORT_OPTIONS:MPNG}
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png
PLIST_SUB+= PNG=""
.else
CONFIGURE_ARGS+=--without-libpng
PLIST_SUB+= PNG="@comment "
.endif
.if ${PORT_OPTIONS:MTIFF}
LIB_DEPENDS+= tiff:${PORTSDIR}/graphics/tiff
PLIST_SUB+= TIFF=""
.else
CONFIGURE_ARGS+=--without-libtiff
PLIST_SUB+= TIFF="@comment "
.endif
post-install:
@cd ${WRKSRC}/docs/reference/gdk-pixbuf && ${GMAKE} install-man1
.include <bsd.port.mk>
|