new MULTI_PACKAGES

This commit is contained in:
espie 2006-11-26 10:40:05 +00:00
parent b4749b23bc
commit e88543e297
8 changed files with 31 additions and 45 deletions

View File

@ -1,12 +1,12 @@
# $OpenBSD: Makefile,v 1.60 2006/11/13 10:08:12 steven Exp $
# $OpenBSD: Makefile,v 1.61 2006/11/26 10:40:05 espie Exp $
COMMENT= "Civilization clone for X11; multiplayer; game server"
COMMENT-main= "Civilization clone for X11; multiplayer; game server"
COMMENT-client= "Freeciv client"
COMMENT-share= "shared data files for Freeciv"
VERSION= 2.0.8
DISTNAME= freeciv-${VERSION}
PKGNAME= freeciv-server-${VERSION}
PKGNAME-main= freeciv-server-${VERSION}p0
PKGNAME-client= freeciv-client-${VERSION}p0
PKGNAME-share= freeciv-share-${VERSION}
CATEGORIES= games
@ -27,8 +27,7 @@ EXTRACT_SUFX= .tar.bz2
PSEUDO_FLAVORS= no_x11
FLAVOR?=
MULTI_PACKAGES= -share
SUBPACKAGE?=
MULTI_PACKAGES= -main -share
MODULES= devel/gettext
WANTLIB= c m z ncurses readline
@ -38,34 +37,28 @@ USE_X11= Yes
MULTI_PACKAGES+=-client
BUILD_DEPENDS+= :pkgconfig-*:devel/pkgconfig
LIB_DEPENDS= gtk-x11-2.0.>=0.5,gdk-x11-2.0.>=0.5,gdk_pixbuf-2.0.>=0.5::x11/gtk+2 \
esd.>=2::audio/esound
CONFIGURE_ARGS= --enable-client=gtk2 \
--disable-sdl-mixer \
--with-esd-prefix=${LOCALBASE}
WANTLIB-client= X11 atk-1.0 fontconfig freetype audiofile \
glib-2.0 gmodule-2.0 gobject-2.0 pango-1.0 \
pangocairo-1.0 pangoft2-1.0 audiofile cairo
.else
CONFIGURE_ARGS= --enable-client=no
.endif
.if defined(PACKAGING)
. if ${SUBPACKAGE} == "-share"
PKG_ARCH= *
MODULES=
LIB_DEPENDS=
WANTLIB=
. elif ${SUBPACKAGE} == "-client"
WANTLIB+= ${WANTLIB-client}
. else
LIB_DEPENDS=
. endif
PKG_ARCH-share= *
LIB_DEPENDS-share=
WANTLIB-share=
RUN_DEPENDS-share=
. if ${SUBPACKAGE} != "-share"
RUN_DEPENDS= :freeciv-share-${VERSION}:games/freeciv,-share
. endif
.endif
WANTLIB-client= ${WANTLIB} \
X11 atk-1.0 fontconfig freetype audiofile \
glib-2.0 gmodule-2.0 gobject-2.0 pango-1.0 \
pangocairo-1.0 pangoft2-1.0 audiofile cairo
LIB_DEPENDS-client=${LIB_DEPENDS} \
gtk-x11-2.0.>=0.5,gdk-x11-2.0.>=0.5,gdk_pixbuf-2.0.>=0.5::x11/gtk+2 \
esd.>=2::audio/esound
RUN_DEPENDS-client= :freeciv-share-${VERSION}:${BUILD_PKGPATH},-share
RUN_DEPENDS-main= :freeciv-share-${VERSION}:${BUILD_PKGPATH},-share
USE_GMAKE= Yes

View File

@ -1,3 +0,0 @@
@comment $OpenBSD: PLIST,v 1.11 2005/07/09 10:36:18 alek Exp $
bin/civserver
@man man/man6/civserver.6

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST-main,v 1.1 2006/11/26 10:40:05 espie Exp $
bin/civserver
@man man/man6/civserver.6

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.39 2006/11/13 11:20:24 steven Exp $
# $OpenBSD: Makefile,v 1.40 2006/11/26 10:42:52 espie Exp $
COMMENT= "GdkPixbuf graphics library"
COMMENT-main= "GdkPixbuf graphics library"
COMMENT-gnome= "GdkPixbuf graphics library (GNOME Canvas)"
VERSION= 0.22.0
DISTNAME= gdk-pixbuf-${VERSION}
PKGNAME= ${DISTNAME}p4
PKGNAME-main= ${DISTNAME}p5
PKGNAME-gnome= gdk-pixbuf-gnome-${VERSION}p0
SHARED_LIBS= gdk_pixbuf 2.0 \
gdk_pixbuf_xlib 2.0 \
@ -42,11 +42,10 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/libpng -I${LOCALBASE}/include"
PSEUDO_FLAVORS= no_gnome
FLAVOR?=
MULTI_PACKAGES=
MULTI_PACKAGES= -main
.if !${FLAVOR:L:Mno_gnome}
MULTI_PACKAGES+= -gnome
.endif
SUBPACKAGE?=
.if ${FLAVOR:L:Mno_gnome}
CONFIGURE_ENV+= ac_cv_path_GNOME_CONFIG=no
@ -57,16 +56,9 @@ LIB_DEPENDS+= jpeg.>=62::graphics/jpeg \
tiff.>=35.::graphics/tiff \
gtk.>=1.2,gdk.>=1.2::x11/gtk+
.if defined(PACKAGING)
. if ${SUBPACKAGE} == "-gnome"
LIB_DEPENDS+= gnome.>=36,art_lgpl,gnomesupport,gnomeui::x11/gnome/libs \
LIB_DEPENDS-gnome= ${LIB_DEPENDS} \
gnome.>=36,art_lgpl,gnomesupport,gnomeui::x11/gnome/libs \
gdk_pixbuf.>=2::graphics/gdk-pixbuf
WANTLIB+= esd ungif ICE audiofile gdk_imlib SM
. endif
.else
. if ${MULTI_PACKAGES:M-gnome}
LIB_DEPENDS+= gnome.>=36,art_lgpl,gnomesupport,gnomeui::x11/gnome/libs
. endif
.endif
WANTLIB-gnome= ${WANTLIB} esd ungif ICE audiofile gdk_imlib SM
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.7 2005/12/26 15:35:02 steven Exp $
@comment $OpenBSD: PFRAG.shared-main,v 1.1 2006/11/26 10:42:52 espie Exp $
@lib lib/libgdk_pixbuf.so.${LIBgdk_pixbuf_VERSION}
@lib lib/libgdk_pixbuf_xlib.so.${LIBgdk_pixbuf_xlib_VERSION}

View File

@ -1,4 +1,5 @@
@comment $OpenBSD: PLIST,v 1.19 2005/09/16 09:51:27 espie Exp $
@comment $OpenBSD: PLIST-main,v 1.1 2006/11/26 10:42:52 espie Exp $
@pkgpath graphics/gdk-pixbuf
@pkgpath graphics/gdk-pixbuf,no_gnome
bin/gdk-pixbuf-config
include/gdk-pixbuf-1.0/