openbsd-ports/graphics/gdk-pixbuf/Makefile
naddy 09dd8fbbb0 * Fix list of required libraries in gdk_pixbufConf.sh; from Nils
Nordman <nino@nforced.com>.
* distinfo
* Use in-tree libtool patches.
ok maintainer
2001-12-10 21:29:16 +00:00

58 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.10 2001/12/10 21:29:16 naddy Exp $
COMMENT= "replacement library for Imlib"
PKGNAME= ${DISTNAME}p1
DISTNAME= gdk-pixbuf-0.10.1
CATEGORIES= graphics
NEED_VERSION= 1.475
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= unstable/sources/gdk-pixbuf
HOMEPAGE= http://developer.gnome.org/arch/imaging/gdkpixbuf.html
LIB_DEPENDS= png.2::graphics/png \
tiff.35.::graphics/tiff \
gtk.1.2,gdk.1.2::x11/gtk+
FLAVORS= gnome
FLAVOR?=
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} --enable-static --disable-modules
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if ${FLAVOR:L:Mgnome}
LIB_DEPENDS+= gnome.36,art_lgpl,gnomesupport,gnomeui::x11/gnome/libs
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>
.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