59087f2b1a
use ${HOMEPAGE} in pkg/DESCR
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.8 2001/09/14 14:41:30 todd Exp $
|
|
|
|
COMMENT= "replacement library for Imlib"
|
|
|
|
DISTNAME= gdk-pixbuf-0.10.1
|
|
CATEGORIES= graphics
|
|
NEED_VERSION= 1.455
|
|
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::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
|
|
|
|
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::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>
|
|
|
|
# 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
|
|
|
|
|