aboutsummaryrefslogtreecommitdiffstats
path: root/misc/krecipes/Makefile
blob: b6d14adb487f9144a24a56f5b094ce4901e85dc9 (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
# ports collection makefile for:    krecipies
# Date created:             19 March 2005
# Whom:                 hank
#
# $FreeBSD$
#

PORTNAME=   krecipes
PORTVERSION=    0.9.1
PORTREVISION=   5
CATEGORIES= misc kde
MASTER_SITES=   SF

MAINTAINER= hank@millerfarm.com
COMMENT=    Recipe database for cooks

USE_KDELIBS_VER=3
USE_AUTOTOOLS=  libtool

OPTIONS=    SQLITE "Support for SQLite backend" on \
        MYSQL "Support for MySQL backend" off \
        POSTGRESQL "Support for PostgreSQL backend" off

.include <bsd.port.pre.mk>

.if defined(WITHOUT_SQLITE)
CONFIGURE_ARGS+=    --without-sqlite
.else
USE_SQLITE= yes
.endif

.if defined(WITH_MYSQL)
RUN_DEPENDS+=   ${LOCALBASE}/lib/plugins/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt-mysql-plugin
.else
CONFIGURE_ARGS+=    --without-mysql
.endif

.if defined(WITH_POSTGRESQL)
RUN_DEPENDS+=   ${LOCALBASE}/lib/plugins/sqldrivers/libqsqlpsql.so:${PORTSDIR}/databases/qt-pgsql-plugin
.else
CONFIGURE_ARGS+=    --without-postgresql
.endif

post-extract:
    @${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${CONFIGURE_SCRIPT}

pre-configure:
.if defined(WITHOUT_SQLITE) && !defined(WITH_MYSQL) && !defined(WITH_POSTGRESQL)
    @${ECHO} "You must have at least one database backend"
    @exit 1
.endif

.include <bsd.port.post.mk>