View | Details | Raw Unified | Return to bug 55686
Collapse All | Expand All

(-)finance/qhacc/Makefile (-8 / +8 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	qhacc
8
PORTNAME=	qhacc
9
PORTVERSION=	2.9
9
PORTVERSION=	2.9.1
10
PORTREVISION=	2
11
CATEGORIES=	finance
10
CATEGORIES=	finance
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=	${PORTNAME}
12
MASTER_SITE_SUBDIR=	${PORTNAME}
Lines 19-41 Link Here
19
18
20
USE_QT_VER=	3
19
USE_QT_VER=	3
21
USE_X_PREFIX=	yes
20
USE_X_PREFIX=	yes
21
USE_GNOME=	gnometarget libxml
22
USE_REINPLACE=	yes
22
USE_REINPLACE=	yes
23
USE_GMAKE=	yes
23
USE_GMAKE=	yes
24
USE_GNOME=	libxml2
25
GNU_CONFIGURE=	yes
24
GNU_CONFIGURE=	yes
26
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
25
CONFIGURE_ARGS=	--enable-xml=yes \
27
CONFIGURE_ARGS=	--enable-mysql=no \
28
		--with-qt-moc=${QT_PREFIX}/bin \
26
		--with-qt-moc=${QT_PREFIX}/bin \
29
		--with-qt-libs=${QT_PREFIX}/lib
27
		--with-qt-libs=${QT_PREFIX}/lib
30
INSTALLS_SHLIB=	yes
28
INSTALLS_SHLIB=	yes
31
29
32
STRIP=		# none
30
STRIP=		# none
33
31
32
post-extract:
33
	@${CP} -f ${FILESDIR}/xmlplugin.h ${WRKSRC}/plugins/xml
34
34
post-patch:
35
post-patch:
35
	@${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
36
	@${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
36
	@${REINPLACE_CMD} -e 's|/usr/local/|${PREFIX}/lib/|g ; \
37
	@${REINPLACE_CMD} -e 's|#! /bin/sh|#!${LOCALBASE}/bin/bash|g ; \
37
		 s|#! /bin/sh|#!${LOCALBASE}/bin/bash|g' \
38
		 s|/usr/local/q|${PREFIX}/lib/q|g' ${WRKSRC}/src/qhacc.orig
38
			${WRKSRC}/src/qhacc.orig
39
	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
39
	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
40
		's|-O2 -Wall -g||g ; \
40
		's|-O2 -Wall -g||g ; \
41
		 s|contrib docs qm|contrib|g ; \
41
		 s|contrib docs qm|contrib|g ; \
(-)finance/qhacc/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (qhacc-2.9.tar.gz) = 5df88c785d1f30cd60592eabeda4467c
1
MD5 (qhacc-2.9.1.tar.gz) = 67ddb65c89424bf684b1dca998d0a212
(-)finance/qhacc/files/patch-ltmain.sh (-1 / +19 lines)
Lines 1-5 Link Here
1
--- ltmain.sh.orig	Thu Mar 13 01:25:30 2003
1
--- ltmain.sh.orig	Thu Mar 13 01:25:30 2003
2
+++ ltmain.sh	Tue Aug 12 01:49:52 2003
2
+++ ltmain.sh	Mon Aug 18 02:14:24 2003
3
@@ -1043,7 +1043,7 @@
4
 	    # These systems don't actually have a C library (as such)
5
 	    test "X$arg" = "X-lc" && continue
6
 	    ;;
7
-	  *-*-openbsd*)
8
+	  *-*-openbsd* | *-*-freebsd*)
9
 	    # Do not include libc due to us having libc/libc_r.
10
 	    test "X$arg" = "X-lc" && continue
11
 	    ;;
12
@@ -2441,7 +2441,7 @@
13
 	  *-*-netbsd*)
14
 	    # Don't link with libc until the a.out ld.so is fixed.
15
 	    ;;
16
-	  *-*-openbsd*)
17
+	  *-*-openbsd* | *-*-freebsd*)
18
 	    # Do not include libc due to us having libc/libc_r.
19
 	    ;;
20
 	  *)
3
@@ -4210,10 +4210,12 @@
21
@@ -4210,10 +4210,12 @@
4
 	fi
22
 	fi
5
 
23
 
(-)finance/qhacc/files/xmlplugin.h (+52 lines)
Line 0 Link Here
1
/************************* * * * * * * * * * * * * ***************************
2
    Copyright (c) 1999-2003 Ryan Bobko
3
                       ryan@ostrich-emulators.com
4
5
    This program is free software; you can redistribute it and/or modify
6
    it under the terms of the GNU General Public License as published by
7
    the Free Software Foundation; either version 2 of the License, or
8
    (at your option) any later version.
9
10
    This program is distributed in the hope that it will be useful,
11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
    GNU General Public License for more details.
14
15
    You should have received a copy of the GNU General Public License
16
    along with this program; if not, write to the Free Software
17
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.     
18
************************** * * * * * * * * * * * * **************************/
19
20
#ifndef XMLIMPORTER_H
21
#define XMLIMPORTER_H
22
23
#include "localfileplugin.h"
24
25
#include <stdlib.h>
26
#include <tree.h>
27
#include <xmlmemory.h>
28
#include <parser.h>
29
30
class XMLDBPlugin : public LocalFileDBPlugin {
31
 public:
32
	XMLDBPlugin();
33
	virtual ~XMLDBPlugin();
34
35
	virtual bool load( QHacc * eng, const QString& home, QString& error );
36
	virtual bool save( const QString&, bool, QString& );
37
38
	virtual QString description() const;
39
	static QString sdescription();
40
41
	virtual QString understands() const; // what QHACC_HOME keywords do I know?
42
	static QString sunderstands(); // what QHACC_HOME keywords do I know?
43
44
 protected:
45
	void writeTable( QHaccResultSet& data, const char ** lbls, uint lblcnt,
46
									 xmlDocPtr tree, xmlNsPtr ns, const QString& label ) const;
47
	void readTable( QHaccResultSet& data, const char ** lbls,
48
									uint lblcnt, xmlNodePtr cur, xmlDocPtr doc, 
49
									const QString& label ) const;
50
};
51
52
#endif

Return to bug 55686