- SHARED_LIBS

- disable some broken FLAVORs
This commit is contained in:
naddy 2006-01-09 23:38:18 +00:00
parent 03feb49bbb
commit 84f89159c9
3 changed files with 47 additions and 20 deletions

View File

@ -1,10 +1,19 @@
# $OpenBSD: Makefile,v 1.7 2004/11/24 00:11:03 espie Exp $
# $OpenBSD: Makefile,v 1.8 2006/01/09 23:38:18 naddy Exp $
COMMENT= "free and complete CORBA-compliant implementation"
DISTNAME= mico-2.3.6
#PKGNAME= # see below
CATEGORIES= devel
# The build framework accommodates only a single shared lib extension.
SHARED_LIBS= mico2.3.6 ${LIB_VERSION} \
micoaux2.3.6 ${LIB_VERSION} \
micocoss2.3.6 ${LIB_VERSION} \
micoir2.3.6 ${LIB_VERSION} \
micox2.3.6 ${LIB_VERSION}
LIB_VERSION= 1.0
HOMEPAGE= http://www.mico.org/
MASTER_SITES= ${HOMEPAGE}
@ -18,6 +27,7 @@ WANTLIB= c m ncurses readline stdc++
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= LIB_VERSION=${LIB_VERSION}
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/admin
@ -25,27 +35,32 @@ FAKE_FLAGS= prefix="${WRKINST}${PREFIX}"
WRKDIST= ${WRKDIR}/mico
NO_REGRESS= Yes
FLAVORS=ssl qt gtk tcl
FLAVORS= ssl # qt gtk tcl
FLAVOR?=
.if ${FLAVOR:L:Mssl}
PKGNAME= ${DISTNAME}p0
CONFIGURE_ARGS+= --with-ssl
WANTLIB+= crypto ssl
.endif
.if ${FLAVOR:L:Mqt}
LIB_DEPENDS+= qt.2::x11/qt2
CONFIGURE_ARGS+= --with-qt
.endif
# XXX no Qt parts built
#.if ${FLAVOR:L:Mqt}
#LIB_DEPENDS+= qt.2::x11/qt2
#CONFIGURE_ARGS+= --with-qt
#.endif
.if ${FLAVOR:L:Mgtk}
LIB_DEPENDS+= gtk.1.2::x11/gtk+
CONFIGURE_ARGS+= --with-gtk
.endif
# XXX no GTK parts built
#.if ${FLAVOR:L:Mgtk}
#LIB_DEPENDS+= gtk.1.2::x11/gtk+
#CONFIGURE_ARGS+= --with-gtk
#.endif
.if ${FLAVOR:L:Mtcl}
LIB_DEPENDS+= tcl.8::lang/tcl
CONFIGURE_ARGS+= --with-tcl
.endif
# XXX wrong dependency
#.if ${FLAVOR:L:Mtcl}
#LIB_DEPENDS+= tcl.8::lang/tcl
#CONFIGURE_ARGS+= --with-tcl
#.endif
pre-build:
cd ${WRKSRC}/idl && ${GMAKE} generate

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-configure,v 1.1 2006/01/09 23:38:18 naddy Exp $
--- configure.orig Mon Jan 9 12:41:55 2006
+++ configure Mon Jan 9 12:42:27 2006
@@ -1774,7 +1774,7 @@ rm -f conftest*
# must not use .so.1.0 here
;;
*bsd*)
- CONF_SOEXT=so.1.0
+ CONF_SOEXT=so.${LIB_VERSION}
;;
*cygwin32*)
have_cdk=yes;

View File

@ -1,8 +1,8 @@
@comment $OpenBSD: PFRAG.shared,v 1.4 2004/09/26 13:05:27 espie Exp $
@comment $OpenBSD: PFRAG.shared,v 1.5 2006/01/09 23:38:18 naddy Exp $
bin/mico-shc++
bin/mico-shld
@lib lib/libmico2.3.6.so.1.0
@lib lib/libmicoaux2.3.6.so.1.0
@lib lib/libmicocoss2.3.6.so.1.0
@lib lib/libmicoir2.3.6.so.1.0
@lib lib/libmicox2.3.6.so.1.0
@lib lib/libmico2.3.6.so.${LIBmico2.3.6_VERSION}
@lib lib/libmicoaux2.3.6.so.${LIBmicoaux2.3.6_VERSION}
@lib lib/libmicocoss2.3.6.so.${LIBmicocoss2.3.6_VERSION}
@lib lib/libmicoir2.3.6.so.${LIBmicoir2.3.6_VERSION}
@lib lib/libmicox2.3.6.so.${LIBmicox2.3.6_VERSION}