o Remove duplicate FLAVORS= and FLAVOR?= declaration.
o Combine two .if ${FLAVOR}s into one. o Pass --without-gnome if not building the gnome flavor to be on the safe side. o Only include gnome shared libraries in the final PLIST if we're on a shared arch. o Remove gnome stuff from default PLIST and PFRAG.shared. ok brad@
This commit is contained in:
parent
e22b10f644
commit
2d16c15b7e
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.6 2001/09/13 20:35:34 todd Exp $
|
||||
# $OpenBSD: Makefile,v 1.7 2001/09/14 03:41:29 heko Exp $
|
||||
|
||||
COMMENT= "replacement library for Imlib"
|
||||
|
||||
@ -32,13 +32,9 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
|
||||
.if ${FLAVOR:L:Mgnome}
|
||||
LIB_DEPENDS+= gnome.36::x11/gnome/libs
|
||||
.endif
|
||||
|
||||
FLAVORS= gnome
|
||||
FLAVOR?=
|
||||
|
||||
.if ${FLAVOR:L} == "gnome"
|
||||
CONFIGURE_ARGS+= --with-gnome
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-gnome
|
||||
.endif
|
||||
|
||||
pre-patch:
|
||||
@ -47,3 +43,13 @@ pre-patch:
|
||||
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
|
||||
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
@comment $OpenBSD: PFRAG.gnome,v 1.1 2001/09/13 20:35:34 todd Exp $
|
||||
@comment $OpenBSD: PFRAG.gnome,v 1.2 2001/09/14 03:41:29 heko Exp $
|
||||
include/gdk-pixbuf/gnome-canvas-pixbuf.h
|
||||
lib/gnomecanvaspixbufConf.sh
|
||||
lib/libgnomecanvaspixbuf.a
|
||||
lib/libgnomecanvaspixbuf.la
|
||||
lib/libgnomecanvaspixbuf.so.1.0
|
||||
%%SHARED-gnome%%
|
||||
|
2
graphics/gdk-pixbuf/pkg/PFRAG.gnome.shared
Normal file
2
graphics/gdk-pixbuf/pkg/PFRAG.gnome.shared
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.gnome.shared,v 1.1 2001/09/14 03:41:29 heko Exp $
|
||||
lib/libgnomecanvaspixbuf.so.1.0
|
@ -1,5 +1,4 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.3 2001/09/13 20:35:34 todd Exp $
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.4 2001/09/14 03:41:29 heko Exp $
|
||||
lib/libgdk_pixbuf.so.2.0
|
||||
lib/libgdk_pixbuf_xlib.so.2.0
|
||||
lib/libgnomecanvaspixbuf.so.1.0
|
||||
DYNLIBDIR(%D/lib)
|
||||
|
@ -1,20 +1,16 @@
|
||||
@comment $OpenBSD: PLIST,v 1.6 2001/09/13 20:35:34 todd Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.7 2001/09/14 03:41:29 heko Exp $
|
||||
bin/gdk-pixbuf-config
|
||||
include/gdk-pixbuf/gdk-pixbuf-features.h
|
||||
include/gdk-pixbuf/gdk-pixbuf-loader.h
|
||||
include/gdk-pixbuf/gdk-pixbuf-xlib.h
|
||||
include/gdk-pixbuf/gdk-pixbuf-xlibrgb.h
|
||||
include/gdk-pixbuf/gdk-pixbuf.h
|
||||
include/gdk-pixbuf/gnome-canvas-pixbuf.h
|
||||
lib/gdk_pixbufConf.sh
|
||||
lib/gdk_pixbuf_xlibConf.sh
|
||||
lib/gnomecanvaspixbufConf.sh
|
||||
lib/libgdk_pixbuf.a
|
||||
lib/libgdk_pixbuf.la
|
||||
lib/libgdk_pixbuf_xlib.a
|
||||
lib/libgdk_pixbuf_xlib.la
|
||||
lib/libgnomecanvaspixbuf.a
|
||||
lib/libgnomecanvaspixbuf.la
|
||||
share/aclocal/gdk-pixbuf.m4
|
||||
share/html/gdk-pixbuf-decl.txt
|
||||
share/html/gdk-pixbuf-sections.txt
|
||||
|
Loading…
Reference in New Issue
Block a user