aboutsummaryrefslogtreecommitdiffstats
path: root/mail/kiltdown/Makefile
blob: 17ff265df467ebdfa86480750da5ca26ca5c73ce (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
# New ports collection makefile for:    kiltdown
# Date Created:             16 Jun 2001
# Whom:                 dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#

PORTNAME=   kiltdown
PORTVERSION=    0.8.045
PORTREVISION=   4
CATEGORIES= mail
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= kiltdown

MAINTAINER= dinoex@FreeBSD.org

LIB_DEPENDS=    db3.3:${PORTSDIR}/databases/db3

USE_X_PREFIX=   yes
USE_QT_VER= 2
USE_GMAKE=  yes
MY_CONFIGURE_ARGS=  -release
MY_CONFIGURE_ARGS+= -qtinc ${X11BASE}/include/qt2 -qtlib ${X11BASE}/lib
MY_CONFIGURE_ARGS+= -dbinc ${LOCALBASE}/include/db3 -dblib ${LOCALBASE}/lib
BUILD_ENV+=     PATH=${PATH}:${X11BASE}/bin

post-patch:
    @${MV} ${WRKSRC}/configs/bsd-generic ${WRKSRC}/configs/bsd-generic.sed
    ${SED} \
     -e "s/SYS_CFLAGS=-pthread/SYS_CFLAGS=${PTHREAD_CFLAGS} ${CFLAGS}/" \
     -e "s/SYS_LDFLAGS=-pthread/SYS_LDFLAGS=${PTHREAD_LIBS} ${LDFLAGS}/" \
        ${WRKSRC}/configs/bsd-generic.sed \
        > ${WRKSRC}/configs/bsd-generic

do-configure:
    (cd ${CONFIGURE_WRKSRC} && \
        ./${CONFIGURE_SCRIPT} ${MY_CONFIGURE_ARGS} )

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/kiltdown/kiltdown ${PREFIX}/bin/

.include <bsd.port.mk>