2001-10-24 08:19:22 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.9 2001/10/24 12:19:22 espie Exp $
|
2001-04-01 16:18:06 -04:00
|
|
|
|
2001-08-31 22:33:59 -04:00
|
|
|
COMMENT= "replacement library for Imlib"
|
2000-12-26 07:52:18 -05:00
|
|
|
|
2001-03-27 06:45:07 -05:00
|
|
|
DISTNAME= gdk-pixbuf-0.10.1
|
2000-12-26 07:52:18 -05:00
|
|
|
CATEGORIES= graphics
|
2001-10-24 08:19:22 -04:00
|
|
|
NEED_VERSION= 1.475
|
2001-08-31 22:33:59 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
|
|
|
MASTER_SITE_SUBDIR= unstable/sources/gdk-pixbuf
|
2000-12-26 07:52:18 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://developer.gnome.org/arch/imaging/gdkpixbuf.html
|
|
|
|
|
2001-05-23 22:27:06 -04:00
|
|
|
LIB_DEPENDS= png.2::graphics/png \
|
2000-12-26 07:52:18 -05:00
|
|
|
tiff.35.::graphics/tiff \
|
2001-10-24 08:19:22 -04:00
|
|
|
gtk.1.2,gdk.1.2::x11/gtk+
|
2000-12-26 07:52:18 -05:00
|
|
|
|
2001-09-13 16:35:34 -04:00
|
|
|
FLAVORS= gnome
|
|
|
|
FLAVOR?=
|
|
|
|
|
2000-12-26 07:52:18 -05:00
|
|
|
MAINTAINER= Tom Knienieder <tom@knienieder.com>
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
CONFIGURE_STYLE= gnu
|
2001-04-01 16:18:06 -04:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} --enable-static --disable-modules
|
2000-12-26 07:52:18 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
2001-09-13 16:35:34 -04:00
|
|
|
.if ${FLAVOR:L:Mgnome}
|
2001-10-24 08:19:22 -04:00
|
|
|
LIB_DEPENDS+= gnome.36,art_lgpl,gnomesupport,gnomeui::x11/gnome/libs
|
2001-09-13 16:35:34 -04:00
|
|
|
CONFIGURE_ARGS+= --with-gnome
|
2001-09-13 23:41:29 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gnome
|
2001-09-13 16:35:34 -04:00
|
|
|
.endif
|
|
|
|
|
2000-12-26 07:52:18 -05:00
|
|
|
pre-patch:
|
|
|
|
@find ${WRKSRC} -name "Makefile.in" | xargs perl -pi -e \
|
|
|
|
's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g ; \
|
|
|
|
s|\$$\(datadir\)/aclocal|\$$\(prefix\)/share/aclocal|g'
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2001-09-13 23:41:29 -04:00
|
|
|
|
|
|
|
# From PostgreSQL port Makefile.
|
|
|
|
.if ${FLAVOR:L:Mgnome} && !defined(NO_SHARED_LIBS)
|
|
|
|
SED_PLIST+=-e '/%%SHARED-gnome%%/r${PKGDIR}/PFRAG.gnome.shared' -e '//d'
|
|
|
|
.elif ${FLAVOR:L:Mgnome} && defined(NO_SHARED_LIBS) && \
|
|
|
|
${NO_SHARED_LIBS:L} == "yes"
|
|
|
|
SED_PLIST+=-e '/%%SHARED-gnome%%/d'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|