blob: 691d952ae012a397fbee9c3e7e9d7b782225e2f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# New ports collection makefile for: qhacc
# Date created: 28 Dec 1999
# Whom: Will Andrews <andrews@technologist.com>
#
# $FreeBSD$
#
PORTNAME= qhacc
PORTVERSION= 2.9.6
PORTREVISION= 2
CATEGORIES= finance
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple QT-based financial manager
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
USE_QT_VER= 3
USE_X_PREFIX= yes
WANT_GNOME= yes
USE_GNOME= gnometarget
USE_REINPLACE= yes
USE_GMAKE= yes
USE_AUTOCONF_VER= 257
CONFIGURE_ARGS= --with-qt-moc=${QT_PREFIX}/bin \
--with-qt-libs=${QT_PREFIX}/lib
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}"
INSTALLS_SHLIB= yes
QTCPPFLAGS+= ${PTHREAD_CFLAGS}
QTCFGLIBS+= ${PTHREAD_LIBS}
.if defined(WITH_MYSQL)
USE_MYSQL= yes
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500035
CXXFLAGS+= -fpermissive
.endif
.if ${HAVE_GNOME:Mlibxml}!=""
USE_GNOME+= libxml
CONFIGURE_ARGS+= --enable-xml
PLIST_SUB+= LIBXML=""
.else
PLIST_SUB+= LIBXML="@comment "
.endif
.if defined(WITH_MYSQL)
CONFIGURE_ARGS+= --enable-mysql \
--with-mysql-libs="${LOCALBASE}/lib/mysql" \
--with-mysql-includes="${LOCALBASE}/include/mysql"
PLIST_SUB+= MYSQL=""
.else
PLIST_SUB+= MYSQL="@comment "
.endif
.if defined(WITH_PGSQL)
POSTGRESQL_PORT?= databases/postgresql7
LIB_DEPENDS+= pq:${PORTSDIR}/${POSTGRESQL_PORT}
CONFIGURE_ARGS+= --enable-psql
PLIST_SUB+= PGSQL=""
.else
PLIST_SUB+= PGSQL="@comment "
.endif
.if defined(WITH_SQLITE)
LIB_DEPENDS+= sqlite:${PORTSDIR}/databases/sqlite
CONFIGURE_ARGS+= --enable-sqlite \
--with-sqlite-libs="${LOCALBASE}/lib" \
--with-sqlite-includes="${LOCALBASE}/include"
PLIST_SUB+= SQLITE=""
.else
PLIST_SUB+= SQLITE="@comment "
.endif
pre-everything::
@${ECHO_MSG}
@${ECHO_MSG} "QHacc has the following tunable option(s):"
@${ECHO_MSG}
@${ECHO_MSG} " WITHOUT_GNOME=libxml Turns off LibXML support"
@${ECHO_MSG} " WITH_MYSQL=yes Turns on MySQL support"
@${ECHO_MSG} " WITH_PGSQL=yes Turns on PostgreSQL support"
@${ECHO_MSG} " WITH_SQLITE=yes Turns on SQLite support"
@${ECHO_MSG}
post-patch:
@${REINPLACE_CMD} -e \
's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/src/qhacc.in
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's| -O2||g ; \
s| -g||g ; \
s| -pedantic||g ; \
s|contrib docs qm|contrib|g ; \
s|$$(prefix)/plugins|$$(pkglibdir)/plugins|g'
post-install:
${INSTALL_DATA} ${WRKSRC}/qm/*.qm ${PREFIX}/lib/qhacc
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
.for file in accounts accounttypes jobs journals namedtrans preferences \
splits transactions
${INSTALL_DATA} ${WRKSRC}/contrib/easysetup/${file} ${EXAMPLESDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|