Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jan 2002 12:29:43 +0100 (CET)
From:      Michal Pasternak <doc@lublin.t1.pl>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        doc@safenet.pl
Subject:   ports/34404: NEW PORT: devel/mingw-expat2
Message-ID:  <200201291129.g0TBThr18192@pr93.lublin.sdi.tpnet.pl>

next in thread | raw e-mail | index | archive | help

>Number:         34404
>Category:       ports
>Synopsis:       NEW PORT: devel/mingw-expat2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 29 03:30:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Michal Pasternak
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD pr93.lublin.sdi.tpnet.pl 4.4-STABLE FreeBSD 4.4-STABLE #14: Mon Nov 26 05:27:32 CET 2001 doc@pr93.lublin.sdi.tpnet.pl:/usr/obj/usr/src/sys/DOCUS i386
>Description:

	    Mingw-expat2 allows cross-compilation of applications, which use
	    expat2 XML parser with mingw-gcc.

>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mingw-expat2
#	mingw-expat2/Makefile
#	mingw-expat2/distinfo
#	mingw-expat2/pkg-comment
#	mingw-expat2/pkg-descr
#	mingw-expat2/pkg-plist
#	mingw-expat2/files
#	mingw-expat2/files/patch-aa
#	mingw-expat2/files/patch-ab
#	mingw-expat2/files/patch-ac
#
echo c - mingw-expat2
mkdir -p mingw-expat2 > /dev/null 2>&1
echo x - mingw-expat2/Makefile
sed 's/^X//' >mingw-expat2/Makefile << 'END-of-mingw-expat2/Makefile'
X# New ports collection makefile for:	expat
X# Date created:		Thu Aug 26 14:38:07 CEST 1999
X# Whom:			Dirk Froemberg <dirk@FreeBSD.org>
X# Mingw port:	       	doc@lublin.t1.pl
X#
X# $FreeBSD: ports/textproc/expat2/Makefile,v 1.13 2001/11/26 06:27:49 kuriyama Exp $
X#
X
XPORTNAME=	expat
XPORTVERSION=	1.95.2
XCATEGORIES=	devel
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	expat
XPKGNAMEPREFIX=	mingw-
X
XMAINTAINER=	doc@lublin.t1.pl
X
XBUILD_DEPENDS=	i386-mingw32msvc-as:${PORTSDIR}/devel/mingw-binutils \
X		mingwm10.dll:${PORTSDIR}/devel/mingw-bin-msvcrt \
X		i386-mingw32msvc-gcc:${PORTSDIR}/devel/mingw-gcc
X
XCONFIGURE_ARGS=	--host=i386-mingw32msvc --target=i386-mingw32msvc
XUSE_LIBTOOL=	yes
XUSE_GMAKE=	yes
XPREFIX=		${LOCALBASE}/i386-mingw32msvc
X
XINSTALLS_SHLIB=	yes
X
XSHLIB_MAJOR=	2
X
XMAKE_ARGS=	LIBCURRENT="${SHLIB_MAJOR}"
XPLIST_SUB=	SHLIB_MAJOR="${SHLIB_MAJOR}"
XGMAKE_ENV=	PATH=${LOCALBASE}/i386-mingw32msvc/bin/:${PATH} CC=i386-mingw32msvc-gcc RANLIB=i386-mingw32msvc-ranlib
XCONFIGURE_ENV=	PATH=${LOCALBASE}/i386-mingw32msvc/bin/:${PATH} CC=i386-mingw32msvc-gcc RANLIB=i386-mingw32msvc-ranlib
X
X.include <bsd.port.mk>
END-of-mingw-expat2/Makefile
echo x - mingw-expat2/distinfo
sed 's/^X//' >mingw-expat2/distinfo << 'END-of-mingw-expat2/distinfo'
XMD5 (expat-1.95.2.tar.gz) = 159c8a36523dc37f4cbcd1d6f970ccfb
END-of-mingw-expat2/distinfo
echo x - mingw-expat2/pkg-comment
sed 's/^X//' >mingw-expat2/pkg-comment << 'END-of-mingw-expat2/pkg-comment'
XXML 1.0 parser written in C. Version for Mingw32 cross compiler
END-of-mingw-expat2/pkg-comment
echo x - mingw-expat2/pkg-descr
sed 's/^X//' >mingw-expat2/pkg-descr << 'END-of-mingw-expat2/pkg-descr'
XExpat is an XML 1.0 parser written in C. It aims to be fully
Xconforming. It is currently not a validating XML processor.
X
XThis port allows cross compilation with Mingw32.
X
XWWW: http://sourceforge.net/projects/expat/
END-of-mingw-expat2/pkg-descr
echo x - mingw-expat2/pkg-plist
sed 's/^X//' >mingw-expat2/pkg-plist << 'END-of-mingw-expat2/pkg-plist'
Xinclude/expat.h
Xlib/libexpat.a
END-of-mingw-expat2/pkg-plist
echo c - mingw-expat2/files
mkdir -p mingw-expat2/files > /dev/null 2>&1
echo x - mingw-expat2/files/patch-aa
sed 's/^X//' >mingw-expat2/files/patch-aa << 'END-of-mingw-expat2/files/patch-aa'
X--- lib/expat.h.in.orig	Tue Jan 29 11:57:18 2002
X+++ lib/expat.h.in	Tue Jan 29 11:57:31 2002
X@@ -9,7 +9,7 @@
X #include <stdlib.h>
X 
X #ifndef XMLPARSEAPI
X-#  if defined(__declspec) && !defined(__BEOS__)
X+#  if defined(__declspec) && !defined(__BEOS__) && !defined(__MINGW32__)
X #    define XMLPARSEAPI(type) __declspec(dllimport) type __cdecl
X #  else
X #    define XMLPARSEAPI(type) type
END-of-mingw-expat2/files/patch-aa
echo x - mingw-expat2/files/patch-ab
sed 's/^X//' >mingw-expat2/files/patch-ab << 'END-of-mingw-expat2/files/patch-ab'
X--- xmlwf/Makefile.in.orig	Tue Jan 29 12:01:59 2002
X+++ xmlwf/Makefile.in	Tue Jan 29 12:02:17 2002
X@@ -27,7 +27,7 @@
X CFLAGS= @CFLAGS@ -I$(INCDIR)
X CC = @CC@
X 
X-FILEMAP_OBJ= @FILEMAP_OBJ@
X+FILEMAP_OBJ= win32filemap.c
X OBJS= xmlwf.o xmlfile.o codepage.o $(FILEMAP_OBJ)
X LIBS= -L$(LIBDIR) -lexpat
X 
END-of-mingw-expat2/files/patch-ab
echo x - mingw-expat2/files/patch-ac
sed 's/^X//' >mingw-expat2/files/patch-ac << 'END-of-mingw-expat2/files/patch-ac'
X--- Makefile.in.orig	Tue Jan 29 12:04:40 2002
X+++ Makefile.in	Tue Jan 29 12:05:25 2002
X@@ -76,15 +76,15 @@
X RANLIB = @RANLIB@
X VERSION = @VERSION@
X 
X-SUBDIRS = lib examples xmlwf
X-INSTALLSUBDIRS = lib xmlwf
X+SUBDIRS = lib
X+INSTALLSUBDIRS = lib
X ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
X CONFIG_HEADERS = config.h
X 
X DISTDIR = $(PACKAGE)-$(VERSION)
X DISTRIBUTION = $(DISTDIR).tar.gz
X 
X-default:  lib xmlwf
X+default:  lib
X 
X buildlib: lib
X 
END-of-mingw-expat2/files/patch-ac
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201291129.g0TBThr18192>