- Use SHARED_ONLY

- Use LIBTOOL
- SHARED_LIBS
- Regen patches and PLIST
- Bump PKGNAME
This commit is contained in:
alek 2006-01-03 22:19:26 +00:00
parent 82cee7cf82
commit cced271fc3
5 changed files with 27 additions and 14 deletions

View File

@ -1,12 +1,13 @@
# $OpenBSD: Makefile,v 1.21 2005/02/22 13:53:16 alek Exp $
# $OpenBSD: Makefile,v 1.22 2006/01/03 22:19:26 alek Exp $
COMMENT= "Emacs Lisp-like runtime library"
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
SHARED_ONLY= Yes
VERSION= 0.16.2
DISTNAME= librep-${VERSION}
PKGNAME= ${DISTNAME}p0
PKGNAME= ${DISTNAME}p1
SHARED_LIBS= rep 12.0
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=librep/}
@ -27,9 +28,11 @@ GNU_ARCH= ${MACHINE_ARCH:S/amd64/x86_64/}-unknown-openbsd${OPSYS_VER}
SUBST_VARS= GNU_ARCH VERSION
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} --enable-static
CONFIGURE_ARGS+= --without-gmp
USE_LIBTOOL= Yes
MAKE_FLAGS= rep_LIBTOOL=${LIBTOOL}
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+=${CONFIGURE_SHARED} --enable-static
CONFIGURE_ARGS+=--without-gmp
# Don't try to run aclocal
CONFIGURE_ARGS+=--with-aclocaldir='$${datadir}/aclocal'
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_Makefile_in,v 1.1 2006/01/03 22:19:26 alek Exp $
--- src/Makefile.in.orig Mon Jan 2 23:32:03 2006
+++ src/Makefile.in Mon Jan 2 23:32:21 2006
@@ -57,7 +57,7 @@ all : librep.la $(DL_OBJS) check-dl rep
librep.la : $(OBJS) $(LIBOBJS) $(ALLOCA)
$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) \
- -version-info $(libversion) -export-symbols librep.sym \
+ ${LIBrep_LTVERSION} -export-symbols librep.sym \
-o $@ $^ -rpath $(libdir) $(LIBS) $(GMP_LIBS)
rep : $(REP_OBJS) $(EXTRA_LIBOBJS) librep.la

View File

@ -1,6 +1,6 @@
--- src/numbers.c.orig Tue Nov 14 06:52:02 2000
+++ src/numbers.c Sun Feb 4 10:38:00 2001
@@ -68,7 +68,7 @@ DEFSTRING(domain_error, "Domain error");
--- src/numbers.c.orig Mon Oct 7 09:42:09 2002
+++ src/numbers.c Mon Jan 2 23:17:26 2006
@@ -70,7 +70,7 @@ DEFSTRING(domain_error, "Domain error");
# define LONG_LONG_MIN LONGLONG_MIN
# define LONG_LONG_MAX LONGLONG_MAX
# elif defined (LLONG_MIN)

View File

@ -1,5 +1,5 @@
@comment $OpenBSD: PFRAG.shared,v 1.5 2004/09/15 19:16:08 espie Exp $
@lib lib/librep.so.12.0
@comment $OpenBSD: PFRAG.shared,v 1.6 2006/01/03 22:19:26 alek Exp $
@lib lib/librep.so.${LIBrep_VERSION}
libexec/rep/${VERSION}/${GNU_ARCH}/gdbm.so
libexec/rep/${VERSION}/${GNU_ARCH}/gettext.so
libexec/rep/${VERSION}/${GNU_ARCH}/readline.so

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.5 2004/09/15 19:16:08 espie Exp $
@comment $OpenBSD: PLIST,v 1.6 2006/01/03 22:19:26 alek Exp $
bin/rep
bin/rep-config
bin/rep-remote
@ -62,8 +62,6 @@ libexec/rep/${GNU_ARCH}/libtool
libexec/rep/${GNU_ARCH}/rep_config.h
libexec/rep/${GNU_ARCH}/rules.mk
share/aclocal/rep.m4
share/emacs/
share/emacs/site-lisp/
share/emacs/site-lisp/rep-debugger.el
share/rep/
share/rep/${VERSION}/