- Use new SHARED_LIBS framework

- USE_LIBTOOL and bump PKGNAME where appropriate
This commit is contained in:
bernd 2006-01-02 18:15:52 +00:00
parent 14be5d97f2
commit cff4d80c0d
18 changed files with 82 additions and 103 deletions

View File

@ -1,8 +1,11 @@
# $OpenBSD: Makefile,v 1.3 2003/10/17 06:24:42 grange Exp $
# $OpenBSD: Makefile,v 1.4 2006/01/02 18:15:52 bernd Exp $
COMMENT= "library for the floppy controller emulation"
DISTNAME= lib765-0.3.1.1
PKGNAME= ${DISTNAME}p0
SHARED_LIBS= 765 3.1
MODGNU_SHARED_LIBS= 765 ''
CATEGORIES= devel
HOMEPAGE= http://www.seasip.demon.co.uk/Unix/LibDsk/
@ -18,6 +21,7 @@ PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.seasip.demon.co.uk/Unix/LibDsk/
LIB_DEPENDS= dsk.2::devel/libdsk
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED}

View File

@ -1,2 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.3 2004/09/15 19:38:13 espie Exp $
@lib lib/lib765.so.3.1
@comment $OpenBSD: PFRAG.shared,v 1.4 2006/01/02 18:15:53 bernd Exp $
@lib lib/lib765.so.${LIB765_VERSION}

View File

@ -1,8 +1,10 @@
# $OpenBSD: Makefile,v 1.16 2005/05/24 21:39:04 marcm Exp $
# $OpenBSD: Makefile,v 1.17 2006/01/02 18:15:53 bernd Exp $
COMMENT= "IDL parsing library"
DISTNAME= libIDL-0.8.5
PKGNAME= ${DISTNAME}p0
SHARED_LIBS= IDL-2 0.0
CATEGORIES= devel
HOMEPAGE= http://www.gnome.org/
@ -20,6 +22,7 @@ BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
LIB_DEPENDS= glib-2.0.0.0::devel/glib2
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile_in,v 1.1 2006/01/02 18:15:53 bernd Exp $
--- Makefile.in.orig Mon Jan 2 14:28:57 2006
+++ Makefile.in Mon Jan 2 14:29:44 2006
@@ -280,7 +280,7 @@ BUILT_SOURCES = lexer.c parser.c parser.
libIDL_2_la_SOURCES = parser.c parser.h lexer.c \
ns.c util.c util.h rename.h
-libIDL_2_la_LDFLAGS = -version-info $(LT_VERSION) $(LIBIDL_LIBS) -no-undefined
+libIDL_2_la_LDFLAGS = $(LIBIDL-2_LTVERSION) $(LIBIDL_LIBS) -no-undefined
tstidl_SOURCES = tstidl.c
tstidl_LDADD = libIDL-2.la $(LIBIDL_LIBS)
pkgconfigdir = $(libdir)/pkgconfig

View File

@ -1,69 +0,0 @@
--- ltmain.sh.orig Sun Jan 16 11:16:28 2005
+++ ltmain.sh Mon Apr 4 21:48:13 2005
@@ -1975,9 +1975,12 @@ EOF
if test "$linkmode,$pass" = "prog,link"; then
compile_deplibs="$deplib $compile_deplibs"
finalize_deplibs="$deplib $finalize_deplibs"
- else
- deplibs="$deplib $deplibs"
+ continue
fi
+ if test "$linkmode" = "lib"; then
+ newdependency_libs="$deplib $newdependency_libs"
+ fi
+ deplibs="$deplib $deplibs"
continue
;;
-l*)
@@ -2410,10 +2413,6 @@ EOF
link_static=no # Whether the deplib will be linked statically
if test -n "$library_names" &&
{ test "$prefer_static_libs" = no || test -z "$old_library"; }; then
- if test "$installed" = no; then
- notinst_deplibs="$notinst_deplibs $lib"
- need_relink=yes
- fi
# This is a shared library
# Warn about portability, can't link against -module's on
@@ -5800,40 +5799,6 @@ relink_command=\"$relink_command\""
# Exit here if they wanted silent mode.
test "$show" = : && exit $EXIT_SUCCESS
- $echo "----------------------------------------------------------------------"
- $echo "Libraries have been installed in:"
- for libdir in $libdirs; do
- $echo " $libdir"
- done
- $echo
- $echo "If you ever happen to want to link against installed libraries"
- $echo "in a given directory, LIBDIR, you must either use libtool, and"
- $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
- $echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- $echo " during execution"
- fi
- if test -n "$runpath_var"; then
- $echo " - add LIBDIR to the \`$runpath_var' environment variable"
- $echo " during linking"
- fi
- if test -n "$hardcode_libdir_flag_spec"; then
- libdir=LIBDIR
- eval flag=\"$hardcode_libdir_flag_spec\"
-
- $echo " - use the \`$flag' linker flag"
- fi
- if test -n "$admincmds"; then
- $echo " - have your system administrator run these commands:$admincmds"
- fi
- if test -f /etc/ld.so.conf; then
- $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
- fi
- $echo
- $echo "See any operating system documentation about shared libraries for"
- $echo "more information, such as the ld(1) and ld.so(8) manual pages."
- $echo "----------------------------------------------------------------------"
exit $EXIT_SUCCESS
;;

View File

@ -1,2 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.5 2004/08/10 08:36:46 espie Exp $
@lib lib/libIDL-2.so.0.0
@comment $OpenBSD: PFRAG.shared,v 1.6 2006/01/02 18:15:53 bernd Exp $
@lib lib/libIDL-2.so.${LIBIDL-2_VERSION}

View File

@ -1,10 +1,12 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/01/18 17:34:15 mbalmer Exp $
# $OpenBSD: Makefile,v 1.2 2006/01/02 18:15:53 bernd Exp $
COMMENT= "general purpose dynamic array"
VERSION= 1.0.1
DISTNAME= Judy-${VERSION}
PKGNAME= libJudy-${VERSION}
PKGNAME= libJudy-${VERSION}p0
SHARED_LIBS= Judy 1.1
MODGNU_SHARED_LIBS= Judy ''
CATEGORIES= devel
HOMEPAGE= http://judy.sourceforge.net/
@ -21,6 +23,9 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=judy/}
CONFIGURE_STYLE= GNU
USE_GMAKE= Yes
USE_LIBTOOL= Yes
FAKE_FLAGS= ${MAKE_FLAGS} DESTDIR=${WRKINST}
EXAMPLESDIR= ${PREFIX}/share/examples/libJudy

View File

@ -1,2 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2005/01/18 17:34:15 mbalmer Exp $
@lib lib/libJudy.so.1.1
@comment $OpenBSD: PFRAG.shared,v 1.2 2006/01/02 18:15:53 bernd Exp $
@lib lib/libJudy.so.${LIBJudy_VERSION}

View File

@ -1,8 +1,11 @@
# $OpenBSD: Makefile,v 1.2 2005/05/30 10:34:00 alek Exp $
# $OpenBSD: Makefile,v 1.3 2006/01/02 18:15:53 bernd Exp $
COMMENT= "library of assorted spiffy things"
DISTNAME= libast-0.6.1
PKGNAME= ${DISTNAME}p0
SHARED_LIBS= ast 2.1
MODGNU_SHARED_LIBS= ast ''
CATEGORIES= devel
HOMEPAGE= http://eterm.sourceforge.net/
@ -20,6 +23,7 @@ MASTER_SITES= http://www.eterm.org/download/
LIB_DEPENDS= Imlib2.2::graphics/imlib2
USE_X11= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2005/05/28 09:06:33 alek Exp $
@lib lib/libast.so.2.1
@comment $OpenBSD: PFRAG.shared,v 1.2 2006/01/02 18:15:53 bernd Exp $
@lib lib/libast.so.${LIBast_VERSION}

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.31 2005/10/30 00:10:40 fgsch Exp $
# $OpenBSD: Makefile,v 1.32 2006/01/02 18:15:53 bernd Exp $
COMMENT= "SGI audiofile library clone"
DISTNAME= audiofile-0.2.6
PKGNAME= lib${DISTNAME}
PKGNAME= lib${DISTNAME}p0
SHARED_LIBS= audiofile 0.2
CATEGORIES= devel audio
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/audiofile/0.2/}
@ -16,12 +17,13 @@ PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m
USE_LIBTOOL= Yes
SEPARATE_BUILD= simple
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
do-regress:
@cd ${WRKBUILD}/test && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} check
@cd ${WRKBUILD}/test && ${MAKE_PROGRAM} ${REGRESS_FLAGS} check
.include <bsd.port.mk>

View File

@ -1,11 +1,13 @@
$OpenBSD: patch-libaudiofile_Makefile_in,v 1.1 2004/06/20 21:15:08 naddy Exp $
--- libaudiofile/Makefile.in.orig Sun Jun 20 12:54:03 2004
+++ libaudiofile/Makefile.in Sun Jun 20 12:54:42 2004
@@ -115,7 +115,7 @@ libaudiofile_la_SOURCES = \
$OpenBSD: patch-libaudiofile_Makefile_in,v 1.2 2006/01/02 18:15:53 bernd Exp $
--- libaudiofile/Makefile.in.orig Sat Mar 6 08:40:08 2004
+++ libaudiofile/Makefile.in Mon Jan 2 16:27:06 2006
@@ -114,8 +114,8 @@ libaudiofile_la_SOURCES = \
libaudiofile_la_LIBADD = modules/libmodules.la
libaudiofile_la_LDFLAGS = -version-info 0:2:0 -no-undefined \
-libaudiofile_la_LDFLAGS = -version-info 0:2:0 -no-undefined \
- -export-symbols audiofile.exports
+libaudiofile_la_LDFLAGS = $(LIBaudiofile_LTVERSION) -no-undefined \
+ -export-symbols $(srcdir)/audiofile.exports

View File

@ -1,2 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.4 2004/08/09 13:28:31 espie Exp $
@lib lib/libaudiofile.so.0.2
@comment $OpenBSD: PFRAG.shared,v 1.5 2006/01/02 18:15:53 bernd Exp $
@lib lib/libaudiofile.so.${LIBaudiofile_VERSION}

View File

@ -1,8 +1,10 @@
# $OpenBSD: Makefile,v 1.10 2004/11/23 21:34:27 espie Exp $
# $OpenBSD: Makefile,v 1.11 2006/01/02 18:15:53 bernd Exp $
COMMENT= 'dockapp-making standard library for Window Maker'
DISTNAME= libdockapp-0.4.0
PKGNAME= ${DISTNAME}p0
SHARED_LIBS= dockapp 1.0
CATEGORIES= devel
MAINTAINER= Peter Stromberg <wilfried@openbsd.org>
@ -16,11 +18,8 @@ WANTLIB= Xext Xpm
MASTER_SITES= ftp://shadowmere.student.utwente.nl/pub/WindowMaker/
PATCH_LIST= ${PORTSDIR}/infrastructure/patches/patch-lt1.3.0-ltconfig \
${PORTSDIR}/infrastructure/patches/patch-lt1.3.0-ltmain_sh \
patch-*
USE_X11= Yes
USE_LIBTOOL= Yes
NO_REGRESS= Yes
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_Makefile_in,v 1.1 2006/01/02 18:15:53 bernd Exp $
--- src/Makefile.in.orig Mon Jan 2 18:19:24 2006
+++ src/Makefile.in Mon Jan 2 18:19:44 2006
@@ -79,7 +79,7 @@ AUTOMAKE_OPTIONS = no-dependencies
lib_LTLIBRARIES = libdockapp.la
-libdockapp_la_LDFLAGS = -version-info 1:0:0 @X_LIBS@
+libdockapp_la_LDFLAGS = $(LIBdockapp_LTVERSION) @X_LIBS@
include_HEADERS = dockapp.h

View File

@ -1,2 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.2 2004/08/09 13:28:31 espie Exp $
@lib lib/libdockapp.so.1.0
@comment $OpenBSD: PFRAG.shared,v 1.3 2006/01/02 18:15:53 bernd Exp $
@lib lib/libdockapp.so.${LIBdockapp_VERSION}

View File

@ -1,8 +1,11 @@
# $OpenBSD: Makefile,v 1.5 2004/11/23 21:34:27 espie Exp $
# $OpenBSD: Makefile,v 1.6 2006/01/02 18:15:53 bernd Exp $
COMMENT= "library for accessing disks and disk image files"
DISTNAME= libdsk-1.0.0
PKGNAME= ${DISTNAME}p0
SHARED_LIBS= dsk 2.2
MODGNU_SHARED_LIBS= dsk ''
CATEGORIES= devel
HOMEPAGE= http://www.seasip.demon.co.uk/Unix/LibDsk/
@ -21,11 +24,13 @@ MASTER_SITES= http://www.seasip.demon.co.uk/Unix/LibDsk/
LIB_DEPENDS= bz2.10::archivers/bzip2
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
FAKE_FLAGS= ${MAKE_FLAGS} DESTDIR=${WRKINST}
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config
post-install:

View File

@ -1,2 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.3 2004/08/09 13:28:31 espie Exp $
@lib lib/libdsk.so.2.2
@comment $OpenBSD: PFRAG.shared,v 1.4 2006/01/02 18:15:53 bernd Exp $
@lib lib/libdsk.so.${LIBdsk_VERSION}