openbsd-ports/graphics/gdk-pixbuf/Makefile
brad 620a8c1f2f oops, fix the registered dependencies, gnome-libs was being registered for
the main package which is wrong and fix the PKGNAME for the -gnome
sub-package as well.
2002-03-26 04:14:34 +00:00

71 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.13 2002/03/26 04:14:34 brad Exp $
COMMENT= "GdkPixbuf graphics library"
COMMENT-gnome= "GdkPixbuf graphics library (GNOME Canvas)"
VERSION= 0.10.1
DISTNAME= gdk-pixbuf-${VERSION}
PKGNAME= ${DISTNAME}p1
PKGNAME-gnome= gdk-pixbuf-gnome-${VERSION}p1
CATEGORIES= graphics
NEED_VERSION= 1.500
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= unstable/sources/gdk-pixbuf
HOMEPAGE= http://developer.gnome.org/arch/imaging/gdkpixbuf.html
MAINTAINER= Tom Knienieder <tom@knienieder.com>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PATCH_LIST= ${PORTSDIR}/infrastructure/patches/patch-lt1.3.4-ltconfig \
${PORTSDIR}/infrastructure/patches/patch-lt1.3.4-ltmain_sh \
patch-*
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-static \
--disable-modules \
--disable-mmx
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
FLAVORS= no_gnome
FLAVOR?=
MULTI_PACKAGES=
.if !${FLAVOR:L:Mno_gnome}
MULTI_PACKAGES+= -gnome
.endif
SUBPACKAGE?=
LIB_DEPENDS+= jpeg.62::graphics/jpeg \
png.2::graphics/png \
tiff.35.::graphics/tiff \
gtk.1.2,gdk.1.2::x11/gtk+
.if !defined(PACKAGING) || ${SUBPACKAGE} == "-gnome"
LIB_DEPENDS+= gnome.36,art_lgpl,gnomesupport,gnomeui::x11/gnome/libs
.endif
.if defined(PACKAGING) && ${SUBPACKAGE} == "-gnome"
LIB_DEPENDS+= gdk_pixbuf.2::graphics/gdk-pixbuf
.endif
.if ${MULTI_PACKAGES:M-gnome}
CONFIGURE_ARGS+= --with-gnome
.else
CONFIGURE_ARGS+= --without-gnome
.endif
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>