aboutsummaryrefslogtreecommitdiffstats
path: root/devel/dia2code/Makefile
blob: de001f567b8e72c37828fb9ea524a9ad6d00fc51 (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
# ex:ts=8
# New ports collection makefile for:    dia2code
# Date created:         Mar 7, 2001
# Whom:             Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   dia2code
PORTVERSION=    0.8.1
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org

LIB_DEPENDS=    xml2.5:${PORTSDIR}/textproc/libxml2

XML_CONFIG= ${LOCALBASE}/bin/xml2-config

GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib" \
        XML_CONFIG="${XML_CONFIG}"

MAN1=       dia2code.1

post-patch:
    @${PERL} -pi -e 's|#include <malloc.h>||' ${WRKSRC}/dia2code/dia2code.h

post-install:
    @${INSTALL_MAN} ${WRKSRC}/dia2code.1 ${MANPREFIX}/man/man1

.include <bsd.port.mk>