- Fix build on non-i386 arches by using a common Makefile, there is no need

to it to be MD.
- Do not patch file into existance, place it in files/ instead
- There are no regression tests, so mark it as such
This commit is contained in:
pvalchev 2003-03-02 18:26:41 +00:00
parent 8a0d0886ea
commit 3e0f336e88
4 changed files with 25 additions and 16 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.1.1.1 2003/02/16 14:57:07 markus Exp $
# $OpenBSD: Makefile,v 1.2 2003/03/02 18:26:41 pvalchev Exp $
COMMENT= "UTF8 support library from Plan 9"
VERSION= 2.0
DISTNAME= libutf-${VERSION}
CATEGORIES= devel plan9
MASTER_SITES= http://pdos.lcs.mit.edu/~rsc/software/
MASTER_SITES= ${HOMEPAGE}
HOMEPAGE= http://pdos.lcs.mit.edu/~rsc/software/
MAINTAINER= Markus Friedl <markus@openbsd.org>
EXTRACT_SUFX= .tgz
@ -15,6 +15,10 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
NO_REGRESS= Yes
FAKE_FLAGS= PREFIX=${WRKINST}${PREFIX}
pre-build:
@cp ${FILESDIR}/Make.OpenBSD ${WRKSRC}
.include <bsd.port.mk>

View File

@ -0,0 +1,8 @@
CC=gcc
CFLAGS+=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -O2 -g -c -I. -I$(PREFIX)/include
O=o
AR=ar
ARFLAGS=rvc
NAN=nan64.$O # default, can be overriden by Make.$(SYSNAME)
NAN=nan64.$O
RANLIB=ranlib

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-Make_OpenBSD-386,v 1.1.1.1 2003/02/16 14:57:07 markus Exp $
--- Make.OpenBSD-386.orig Fri Feb 14 18:43:41 2003
+++ Make.OpenBSD-386 Fri Feb 14 18:43:41 2003
@@ -0,0 +1,8 @@
+CC=gcc
+CFLAGS+=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -O2 -g -c -I. -I$(PREFIX)/include
+O=o
+AR=ar
+ARFLAGS=rvc
+NAN=nan64.$O # default, can be overriden by Make.$(SYSNAME)
+NAN=nan64.$O
+RANLIB=ranlib

View File

@ -1,5 +1,14 @@
--- Makefile.orig Thu Feb 13 16:04:23 2003
+++ Makefile Fri Feb 14 18:39:02 2003
--- Makefile.orig Thu Feb 13 08:04:23 2003
+++ Makefile Sun Mar 2 10:49:03 2003
@@ -10,7 +10,7 @@ OBJTYPE!=uname -m | sed 's;i.86;386;; s;
# the gnu rules will mess up bsd but not vice versa,
# hence the gnu rules come first.
-include Make.$(SYSNAME)-$(OBJTYPE)
+include Make.$(SYSNAME)
PREFIX=/usr/local
@@ -61,6 +61,7 @@ install: $(LIB)
$(LIB): $(OFILES)